Nunjucks
Jinja2-inspired JavaScript template engine with template inheritance, blocks, macros, asynchronous filters and control structures, running in Node and the browser for server rendering and email or static templates.
Nunjucks at mozilla.github.io/nunjucks is a free BSD-2-Clause Jinja2-inspired JS template engine, npm 3.2.4 Node 6.9.0+, templates extend base layout through overridable blocks, macros define reusable parameterized snippets, filters transform values in pipeline, if and for control structures, async filters supported, templates loaded from files or strings, runs Node and browser for SSR email and static generation, BSD two-clause conditions, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Nunjucks free?
Nunjucks: Nunjucks is free open-source software under the BSD-2-Clause License; the nunjucks package latest 3.2.4 on npm declares Node 6.9.0 or above. It follows the Jinja2 template model: templates extend a base layout through blocks that child templates override, macros define reusable parameterized snippets, filters transform values in the pipeline, and if, for and other control structures shape the output. The engine supports asynchronous filters and loads templates from files or strings, and it can run in Node as well as in the browser, which keeps one template syntax usable for server rendering, email messages and static generation. BSD-2-Clause permits use and redistribution with the two-clause conditions; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Nunjucks free?
It depends on the licence. Nunjucks is released under the BSD 2-Clause License.
How much does Nunjucks cost?
Nunjucks is free open-source software under the BSD-2-Clause License; the nunjucks package latest 3.2.4 on npm declares Node 6.9.0 or above. It follows the Jinja2 template model: templates extend a base layout through blocks that child templates override, macros define reusable parameterized snippets, filters transform values in the pipeline, and if, for and other control structures shape the output. The engine supports asynchronous filters and loads templates from files or strings, and it can run in Node as well as in the browser, which keeps one template syntax usable for server rendering, email messages and static generation. BSD-2-Clause permits use and redistribution with the two-clause conditions; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Nunjucks's current pricing?
On Nunjucks's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Nunjucks?
A base layout defines blocks, child templates extend it and override those blocks, macros and filters build reusable snippets and value transforms, control structures shape output, and the engine loads templates from files or strings in Node or the browser.
How does pricing work?
The engine installs free under BSD-2-Clause with no seat license; template loaders and integrations follow their own terms, and commercial support would be outside the open-source project.
How does Nunjucks compare with other tools in Dev Workflow & Productivity?
Nunjucks is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Nunjucks | Open source | Nunjucks is free open-source software under the BSD-2-Clause License; the nunjucks package latest 3.2.4 on npm declares Node 6.9.0 or above. It follows the Jinja2 template model: templates extend a base layout through blocks that child templates override, macros define reusable parameterized snippets, filters transform values in the pipeline, and if, for and other control structures shape the output. The engine supports asynchronous filters and loads templates from files or strings, and it can run in Node as well as in the browser, which keeps one template syntax usable for server rendering, email messages and static generation. BSD-2-Clause permits use and redistribution with the two-clause conditions; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Handlebars | Open source | Handlebars is free open-source software released under the MIT License; the handlebars package latest 4.7.10 on npm declares Node 0.4.7 or above. A template written with {{ }} expressions is compiled into a render function that takes a data object and produces a string: helper functions format or compute values, partials reuse repeated markup blocks, block helpers wrap sections with custom behavior, and subexpressions pass one helper's result into another. The engine ships a precompiler that can compile templates to JavaScript ahead of time for browser delivery, and it remains a common engine inside bundlers, SSR setups and static site generators. The template syntax stays close to the data shape and avoids embedding full program control flow in markup. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| LiquidJS | Open source | LiquidJS is free open-source software released under the MIT License; the liquidjs package latest 10.30.1 on npm requires Node 16 or above. It implements the Liquid template language in JavaScript: tags control output and flow, filters transform strings, numbers and collections in a pipeline, conditionals and loops walk data, and reusable snippets are composed through the template model. The parser targets compatibility with Liquid used by Shopify themes, Jekyll and GitHub Pages, and it ships TypeScript types so templates can be rendered in Node, the browser or a CLI. The project separates parsing from rendering and lets pluggable loaders provide template source. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Nunjucks: Nunjucks is released under the BSD 2-Clause License. Check the official site for any hosted plan.
Open source does not always mean every hosted version is free.
Key pricing: Nunjucks is free open-source software under the BSD-2-Clause License; the nunjucks package latest 3.2.4 on npm declares Node 6.9.0 or above. It follows the Jinja2 template model: templates extend a base layout through blocks that child templates override, macros define reusable parameterized snippets, filters transform values in the pipeline, and if, for and other control structures shape the output. The engine supports asynchronous filters and loads templates from files or strings, and it can run in Node as well as in the browser, which keeps one template syntax usable for server rendering, email messages and static generation. BSD-2-Clause permits use and redistribution with the two-clause conditions; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Handlebars
Logic-light JavaScript template engine that compiles {{ }} templates into render functions, with helpers, partials, block helpers and subexpressions, widely used in front-end bundlers, server-side rendering and static site generators.
LiquidJS
JavaScript implementation of the Liquid templating language, compatible with Shopify, Jekyll and GitHub Pages Liquid, providing tags, filters, conditionals, loops, macros and TypeScript support for Node, browser and CLI rendering.
Tool Information
- Official Websitemozilla.github.io
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
