Elestia Open Source Ratings
5.2

Nunjucks

Reasonable, with limits. 7th of 8 template engines.

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.

WebsiteGitHubnpm

Scores

Overall5.2

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 4.5, likely 3.5 to 5.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, likely 4.8 to 7.0

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 many4.8

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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.

  • category job: Server templating is used mainly in SSGs, emails and classic server apps
  • 11ty.dev/docs/languages/nunjucks: One of Eleventy's main template languages

GPT-6.2 Sol: 4.6, likely 3.4 to 5.9

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 lot6.8

How well does it do the job for those who need it?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 6.4 to 8.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 time3.2

Will it still be a good choice in two years?

Claude Opus 5.5: 3.0, likely 2.0 to 4.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, likely 2.2 to 4.8

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.

  • github commitsLastYear, openPullRequests, latestRelease: Three commits, 83 open pull requests, and an April 2023 release.
  • github.com/mozilla/nunjucks/issues/1484: Maintainer and users discuss a possible handover and basic upkeep.
  • github.com/11ty/nunjucks/releases: Eleventy is developing a separate fork.
  • peers EJS and LiquidJS commitsLastYear and latestPublishedAt: Both peers shipped in October 2026 and had at least 55 commits.
Used widely5.8

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 19.7M vs 5.85M, ratio 3.38, below the 4.1 median
  • dependents repos: 68,715 repos, 2,944 packages
  • peers: Pug has 231k dependent repos, Eta 15k, LiquidJS 13.7k
  • bluesky posts: 0 posts, little current buzz

GPT-6.2 Sol: 5.5, likely 4.4 to 6.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.

  • dependents repos and packages, peers dependentRepos: 68,715 repositories and 2,944 packages in the index.
  • npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo, medianDownloadsRatio: 19.75 million versus 5.85 million, or 3.38× against 4.1×.
  • github stars, bluesky posts, hackerNews top: 9,009 stars, zero sampled Bluesky links, and an HN match about a Java engine.
  • github.com/11ty/buildawesome/releases/tag/v3.1.8: Eleventy 3.1.8 reinstated the upstream npm dependency.
Vouched for6.5

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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, likely 7.0 to 9.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.

Safe5.5

How safe is it to depend on?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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.

  • advisories: 2 moderate XSS advisories, none in last 24 months
  • scorecard score: 4.7; Security-Policy 0, Branch-Protection 0
  • github.com/mozilla/nunjucks/issues: Open urlize XSS report from April 2026
  • npm dependencies / license: 3 dependencies, BSD-2-Clause

GPT-6.2 Sol: 6.0, likely 4.7 to 7.2

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

npm downloads, 4 weeks
20M ×3.4 in a year
GitHub stars
9k
Commits, 12 months
3
npm version
3.2.4 Apr 2023
Versions, 12 months
0
Advisories, 24 months
0 of 2 ever
OpenSSF Scorecard
4.7 out of 10, Nov 2026
Licence
BSD-2-Clause

Read on 21 November 2026 from GitHub (mozilla/nunjucks), npm (nunjucks), OSV and the OpenSSF Scorecard.

Template engines

  1. 7.3LiquidJS
  2. 7.1EJS
  3. 7.0Eta
  4. 6.5Handlebars
  5. 6.3Edge.js
  6. 5.3Pug
  7. 5.2Nunjucks
  8. 4.6mustache.js
Compare all 8 on six scores