
Nunjucks
Templating engine for JavaScript, inspired by jinja2, that renders in Node.js and in the browser.
mozilla.github.io/nunjucks/repositorydocs
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
Releases
Adoption
Sources
- 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/mozilla/nunjucks - 2026-11-16: links, Install with
github.com/mozilla/nunjucks/blob/master/README.md - 2026-11-16: First release
registry.npmjs.org/nunjucks - 2026-11-16: Maintainer, Maintained by, License model
github.com/mozilla/nunjucks/blob/master/LICENSE - 2026-11-16: Categories
mozilla.github.io/nunjucks/ - 2026-11-16: Runtime, Install with
mozilla.github.io/nunjucks/getting-started.html - 2026-11-16: Minimum runtime
github.com/mozilla/nunjucks/blob/v3.2.4/package.json - 2026-11-16: Current major version
api.github.com/repos/mozilla/nunjucks/releases - 2026-11-16: Last release
api.github.com/repos/mozilla/nunjucks/releases/latest - 2026-11-16: Contributors
api.github.com/repos/mozilla/nunjucks/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/nunjucks - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nunjucks