# Template engines

Fill HTML or text templates with data on the server. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [LiquidJS](https://elestia.ai/opensource/templates/liquidjs/index.md) | 7.3 | 4.7 | 7.4 | 7.6 | 4.9 | 7.0 | 5.6 | Teams whose users or customers write templates (emails, CMS pages, notifications), and Eleventy or Shopify-style projects that need Liquid syntax. |
| 2 | [EJS](https://elestia.ai/opensource/templates/ejs/index.md) | 7.1 | 4.8 | 6.9 | 6.9 | 8.4 | 6.6 | 6.6 | Node/Express projects that want the simplest, most widely known HTML templating with plain JavaScript inside templates. |
| 3 | [Eta](https://elestia.ai/opensource/templates/eta/index.md) | 7.0 | 4.8 | 7.4 | 6.1 | 5.3 | 5.9 | 7.5 | TypeScript developers who want EJS-style templates with built-in types, a tiny footprint and faster rendering, on Node, Deno or the browser. |
| 4 | [Handlebars](https://elestia.ai/opensource/templates/handlebars/index.md) | 6.5 | 5.1 | 7.0 | 5.7 | 7.4 | 7.1 | 5.7 | Teams that want logic-less templates editable by non-developers, such as transactional emails, scaffolding or codegen, and that render only trusted template strings. |
| 5 | [Edge.js](https://elestia.ai/opensource/templates/edge-js/index.md) | 6.3 | 4.1 | 7.2 | 6.1 | 3.5 | 5.3 | 6.5 | AdonisJS apps, and Node.js developers who want Blade-style components and layouts in server-rendered HTML. |
| 6 | [Pug](https://elestia.ai/opensource/templates/pug/index.md) | 5.3 | 4.1 | 6.5 | 3.7 | 6.1 | 5.4 | 5.9 | Teams that already have Pug templates, or that strongly prefer terse, indentation-based HTML and accept a project in low-activity maintenance. |
| 7 | [Nunjucks](https://elestia.ai/opensource/templates/nunjucks/index.md) | 5.2 | 4.8 | 6.8 | 3.2 | 5.8 | 6.5 | 5.5 | Teams that need Jinja2-compatible syntax in JavaScript, or that already use Nunjucks with Eleventy or the GOV.UK Design System. |
| 8 | [mustache.js](https://elestia.ai/opensource/templates/mustache/index.md) | 4.6 | 4.7 | 5.8 | 2.6 | 6.3 | 5.4 | 6.6 | Projects that need templates in the portable Mustache spec, shared with other languages, and accept a library that is frozen. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| LiquidJS | 14M | ×3.9 | 1.9k | 111 | Oct 2026 | 18 |
| EJS | 240M | ×2.7 | 8.1k | 55 | Oct 2026 | 0 |
| Eta | 44M | ×8.1 | 1.8k | 10 | Apr 2026 | 0 |
| Handlebars | 226M | ×2.3 | 19k | 32 | Oct 2026 | 11 |
| Edge.js | 471k | ×3.1 | 804 | 12 | May 2026 | 0 |
| Pug | 21M | ×2.7 | 22k | 2 | Mar 2026 | 0 |
| Nunjucks | 20M | ×3.4 | 9k | 3 | Apr 2023 | 0 |
| mustache.js | 102M | ×3.0 | 17k | 0 | Mar 2021 | 0 |

All categories: https://elestia.ai/opensource/index.md
