# Nunjucks: 5.2 out of 10

Reasonable, with limits. 7th of 8 in [Template engines](https://elestia.ai/opensource/templates/index.md).

Nunjucks is a capable Jinja2-style template engine with inheritance, macros and async rendering. It has had no npm release since April 2023 (3.2.4), and a planned 4.x rewrite is still in alpha. It is fine to keep where it already runs. For new work, a more active peer such as LiquidJS or Eta is usually the safer pick, unless you need Jinja syntax.

**Best for:** Teams that need Jinja2-compatible syntax in JavaScript, or that already use Nunjucks with Eleventy or the GOV.UK Design System.

## Scores

- **Overall: 5.2** (likely 4.2 to 6.3)
  - Claude Opus 5.5 (4.5): It is still a capable engine and the main Jinja2-style option in JavaScript. However, releases stalled in 2023, the maintainer group never formed, and Eleventy forked it. Actively maintained peers such as LiquidJS and Eta do the job with fewer risks for new projects. A new release or the stable 4.x rewrite would raise the score.
  - GPT-6.2 Sol (5.9): Nunjucks earns its place when Jinja-style inheritance or existing component macros are central to the project. For new projects with flexibility on syntax, EJS has a stronger maintenance record for straightforward Node.js views, and LiquidJS offers bundled types and more active development. The long upstream release gap weighs heavily, and uncertainty about a maintenance handover keeps the range wide.
- **Needed by many: 4.8** (likely 3.7 to 6.0)
  - Claude Opus 5.5 (5.0): Server-side templating is a common but shrinking need, because many web apps now render with components instead. Nunjucks serves static-site generators, email and code-generation templates, and teams that want Jinja syntax. That is a sizeable group but far from most developers.
  - GPT-6.2 Sol (4.6): Nunjucks serves teams rendering pages, HTML fragments, or text from data. It works across Node.js frameworks and is particularly relevant when teams want Jinja-style layouts. Developer surveys give context on web stacks but leave the share of teams using standalone template engines uncertain.
- **Helps a lot: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.0): Its feature set is among the richest in the category: inheritance, macros, async and autoescape. The documentation is solid. Speed is middling in benchmarks, and types come only from a separate @types package. Known bugs, such as circular-reference crashes and CSP problems in the browser build, have gone unfixed for years.
  - GPT-6.2 Sol (7.5): Version 3.2.4 handles reusable layouts well with inheritance, macros, custom filters, and precompilation. Callback-based async rendering and separately installed TypeScript declarations add friction, and one small benchmark put Nunjucks behind EJS and Eta. The range reflects limited performance coverage and sparse evidence on diagnostic quality and AI-generated template correctness.
- **Holds up over time: 3.2** (likely 2.1 to 4.4)
  - Claude Opus 5.5 (3.0): There were 3 commits and no releases in the last year. The last npm version is from 2023, and the Scorecard 'Maintained' check scores 1. The 2025 maintenance proposal drew volunteers but no confirmed new maintainers. Eleventy, its biggest consumer, forked it for v4. A promised release in October 2026 had not appeared by this review.
  - GPT-6.2 Sol (3.4): Upstream shipped three commits in the past year, with 83 pull requests open and no release since April 2023. A public maintenance proposal and active downstream use give the template language a path forward, while upstream release ownership and funding remain unclear. EJS and LiquidJS both shipped recently and show substantially more activity.
- **Used widely: 5.8** (likely 4.7 to 6.8)
  - Claude Opus 5.5 (6.0): It has about 19.7M downloads per 4 weeks and 68.7k dependent repositories. That is tens of thousands of direct users, comparable to Pug and well behind EJS and Handlebars. Downloads grew 3.4x against a 4.1x median, so it is losing share, while Eta (8x) is gaining fast.
  - GPT-6.2 Sol (5.5): ecosyste.ms found 68,715 dependent repositories and 2,944 npm packages, well below Pug and ahead of LiquidJS and Eta in observed repository use. Four-week downloads grew 3.38× year over year, below the catalog median of 4.1×, so Nunjucks lost ground by that measure. Eleventy pulls it in automatically, and the dependency index covers only part of GitHub, leaving the number of direct choices uncertain.
- **Vouched for: 6.5** (likely 5.5 to 7.5)
  - Claude Opus 5.5 (5.0): Eleventy and the GOV.UK Design System build on it, and Mozilla created it. Those are real production backers. Eleventy now ships its own fork instead of upstream, which weakens the current endorsement. There are few current independent write-ups, and 2026 comparisons point new projects elsewhere.
  - GPT-6.2 Sol (8.0): The GOV.UK Design System depends on Nunjucks, the NHS documents its macros for production services, and Eleventy 3.1.8 uses upstream 3.2.4. These are concrete commitments from separate teams. The range reflects the concentration in design systems and static sites, along with limited survey evidence on Nunjucks satisfaction or retention.
- **Safe: 5.5** (likely 4.4 to 6.6)
  - Claude Opus 5.5 (5.0): Only two moderate XSS advisories have been published, and the 2023 one was fixed quickly. With no release since 2023, though, any new fix cannot reach users. A 2026 urlize XSS report is still open. The Scorecard is 4.7, with no security policy and no branch protection. The licence is permissive and the dependency count is small.
  - GPT-6.2 Sol (6.0): Both known moderate XSS advisories are fixed in 3.2.4, with the latest fix available by public disclosure. The permissive BSD-2-Clause licence and three direct dependencies keep the dependency footprint small. The 4.7 OpenSSF Scorecard, missing security policy and branch protection, and documented manual publishing leave future patch response uncertain. The engine also lacks a sandbox for untrusted templates.

## Good

- Full Jinja2-style feature set: block inheritance, macros, includes, filters and autoescaping.
- Supports async filters and async rendering, which many simple engines lack.
- Very wide existing use, about 69k dependent repositories, and many tutorials and examples that AI agents have learned from.
- Permissive BSD-2-Clause licence and only three runtime dependencies.

## Bad

- No npm release since April 2023, and users in open issues are asking for one.
- Maintenance rests on one collaborator with little time. The 2025 plan to form a maintainer group has not led to a formal handover.
- No bundled TypeScript types, and the build tooling is dated (PhantomJS, old webpack).
- An XSS report about the urlize filter (2026) is still open, and Eleventy v4 moved to its own fork.

## The numbers

- Downloads, 4 weeks: 20M
- In a year: ×3.4
- GitHub stars: 9k
- Commits, 12 months: 3
- Last npm release: Apr 2023
- Advisories, 24 months: 0
- Licence: BSD-2-Clause
- GitHub: https://github.com/mozilla/nunjucks
- npm: https://www.npmjs.com/package/nunjucks

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
