FindSoftware

Nunjucks

Templating engine for JavaScript, inspired by jinja2, that renders in Node.js and in the browser.

Nunjucks is a templating engine for JavaScript that fills template files with data. Its template language has block inheritance, autoescaping, macros and asynchronous control, and the project describes the language as essentially a port of jinja2. It runs on Node.js, and in the browser a script tag loads either the full compiler or a smaller build that only renders templates precompiled ahead of time.

Worth knowing

Nunjucks does not sandbox execution, so user-defined templates, or user content placed into template definitions, are unsafe. On the server that can expose data or run code; in the browser it can open cross-site scripting, which a strong content security policy can mitigate. Templates written for jinja2 may need changes, because the language differs in a few places.

Identity

Status
Active
Maintainer
James Long4
Maintained by
Individual4
First release
20123

Rendering and deploy

Install with
npm, script tag26

Releases

Current major version
38
Last release
2023-04-199

Adoption

GitHub stars
9,0061
npm downloads a week
4,928,99911
Contributors
12010
Dependent repositories
68,71512
Dependent packages
2,94412

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/mozilla/nunjucks
  2. 2026-11-16: links, Install with
    github.com/mozilla/nunjucks/blob/master/README.md
  3. 2026-11-16: First release
    registry.npmjs.org/nunjucks
  4. 2026-11-16: Maintainer, Maintained by, License model
    github.com/mozilla/nunjucks/blob/master/LICENSE
  5. 2026-11-16: Categories
    mozilla.github.io/nunjucks/
  6. 2026-11-16: Runtime, Install with
    mozilla.github.io/nunjucks/getting-started.html
  7. 2026-11-16: Minimum runtime
    github.com/mozilla/nunjucks/blob/v3.2.4/package.json
  8. 2026-11-16: Current major version
    api.github.com/repos/mozilla/nunjucks/releases
  9. 2026-11-16: Last release
    api.github.com/repos/mozilla/nunjucks/releases/latest
  10. 2026-11-16: Contributors
    api.github.com/repos/mozilla/nunjucks/contributors?per_page=1
  11. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/nunjucks
  12. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nunjucks

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON