# Nunjucks

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


Source: https://findsoftware.frbit.cloud/nunjucks/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://mozilla.github.io/nunjucks/
- repository: https://github.com/mozilla/nunjucks
- docs: https://mozilla.github.io/nunjucks/

### Identity

- status: active
- maintainer: James Long
- maintainerType: individual
- parent: unknown
- firstRelease: 2012
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: node 6
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, script tag

### License

- licenseModel: open-source
- license: BSD-2-Clause

### Releases

- currentMajor: 3
- latestReleaseDate: 2023-04-19

### Adoption

- githubStargazers: 9006
- packagistDownloads: not applicable
- npmWeeklyDownloads: 4928999
- contributors: 120
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 68715
- dependentPackages: 2944

### Sources

- urls: https://api.github.com/repos/mozilla/nunjucks (read 2026-11-16)
- urls: https://api.github.com/repos/mozilla/nunjucks (read 2026-11-16)
- urls: https://github.com/mozilla/nunjucks/blob/master/README.md (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/nunjucks (read 2026-11-16)
- maintainer: https://github.com/mozilla/nunjucks/blob/master/LICENSE (read 2026-11-16)
- maintainerType: https://github.com/mozilla/nunjucks/blob/master/LICENSE (read 2026-11-16)
- language: https://api.github.com/repos/mozilla/nunjucks (read 2026-11-16)
- category: https://mozilla.github.io/nunjucks/ (read 2026-11-16)
- runtime: https://mozilla.github.io/nunjucks/getting-started.html (read 2026-11-16)
- runtimeMin: https://github.com/mozilla/nunjucks/blob/v3.2.4/package.json (read 2026-11-16)
- installMethod: https://github.com/mozilla/nunjucks/blob/master/README.md (read 2026-11-16)
- installMethod: https://mozilla.github.io/nunjucks/getting-started.html (read 2026-11-16)
- license: https://api.github.com/repos/mozilla/nunjucks (read 2026-11-16)
- licenseModel: https://github.com/mozilla/nunjucks/blob/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/mozilla/nunjucks/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/mozilla/nunjucks/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/mozilla/nunjucks (read 2026-11-16)
- contributors: https://api.github.com/repos/mozilla/nunjucks/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/nunjucks (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nunjucks (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nunjucks (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
