Elestia Open Source Ratings
7.0

Eta

A strong pick. 3rd of 8 template engines.

Eta is a small, fast, TypeScript-native template engine with EJS-style syntax for Node, Deno and the browser. It is a solid modern alternative to EJS for templates you write yourself, but one person maintains it slowly and it has far fewer direct users than EJS or Handlebars.

Best for: TypeScript developers who want EJS-style templates with built-in types, a tiny footprint and faster rendering, on Node, Deno or the browser.

WebsiteGitHubnpm

Scores

Overall7.0

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

For new code with templates you write yourself, Eta is technically better than EJS: faster, smaller, typed and dependency-free. Thin maintenance by one person, a small community and far less direct adoption keep it from being the category default. Pick LiquidJS or Handlebars when users write the templates.

GPT-6.2 Sol: 7.4, likely 6.3 to 8.4

Eta is a strong pick for trusted templates that benefit from embedded JavaScript, built-in layouts, and async rendering. EJS has a larger support ecosystem, more recent maintenance activity, and a simpler path to standard Express view registration. Eta's slower release cadence and the uncertain share of direct adoption keep it below the category leaders for general use.

Needed by many4.8

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Server-side HTML and text templating is a common need in Express-style apps, emails and code generators, but most new frontend work uses component frameworks instead. Eta covers that whole job on several runtimes. Its embedded-JS approach does not suit user-written templates.

GPT-6.2 Sol: 4.5, likely 3.3 to 5.8

Eta fits server-rendered pages, static sites, and generated text across several runtimes. Popular frameworks such as Next.js already handle rendering, which limits demand for a standalone engine. Developer surveys show how widely those frameworks are used and give little direct evidence about demand for standalone templates.

Helps a lot7.4

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Eta is fast, tiny, typed and dependency-free, with layouts, partials, async rendering and better parsing than EJS. Independent benchmarks place it well ahead of EJS, Handlebars, Nunjucks and LiquidJS. Its limits come from its design: no sandbox for user templates, and a smaller ecosystem of docs and examples than EJS, so AI agents may mix in EJS options.

GPT-6.2 Sol: 7.8, likely 6.7 to 8.8

Eta 4.6 has a typed API, async rendering, layouts, blocks, and errors that preserve their original cause. The quickstart's stale module guidance can trip up developers and coding agents. A user also reports that precompilation leaves includes to resolve at runtime. Small independent benchmarks disagree on whether Eta beats EJS, leaving performance dependent on the workload.

Holds up over time6.1

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

The project is not archived. It shipped three releases in the past year, the latest v4.6.0 in April 2026, and it has only 9 open issues. Activity is low, with 10 commits in the last year, and it depends mostly on one unpaid maintainer. Major versions (v2, v3, v4) have brought breaking changes. Tools such as Docusaurus build on it, which helps keep it alive.

  • github commitsLastYear: 10 commits in the last year
  • github releasesLastYear: 3 releases; latest v4.6.0 on 2026-04-25
  • github openIssues/closedIssues: 9 open vs 163 closed issues
  • releasealert.dev/github/bgub/eta: Steady v4.x point releases after the v4.0.0 alpha and beta builds

GPT-6.2 Sol: 6.1, likely 4.9 to 7.4

Eta shipped three releases and recorded ten commits in the past year, with its last release in April 2026. Earlier v4 releases corrected type exports and restored a CommonJS build, while a more recent contributor build fix remains open. The release history points to one principal maintainer, and backup release authority and funding are unclear.

  • github commitsLastYear, releasesLastYear, latestRelease: Ten commits, three releases, and a seven-month release gap.
  • peers: EJS, Handlebars, and LiquidJS had more commits and newer releases.
  • github.com/bgub/eta/releases: v4 updates addressed type resolution and restored CommonJS.
  • github.com/bgub/eta/pull/374: An October fix for building the repository remains open without a review.
  • jsr.io/%40bgub/eta/versions: The same maintainer published the listed JSR releases.
Used widely5.3

How many use it, and is that growing?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Downloads rose about 8x in a year, above the 4.1 median, to about 43.6M per 4 weeks. Much of that likely comes from tools that depend on it, not from direct choice. Its 15k dependent repos are close to LiquidJS but about 100 times fewer than EJS or Handlebars. It has almost no Hacker News or Bluesky attention.

  • npm downloadsLast4Weeks: 43.6M, up from 5.4M a year ago (ratio about 8.1 vs median 4.1)
  • dependents.repos: 15,007 repos vs 1.5M for EJS and 1.26M for Handlebars
  • github stars: 1,769 stars
  • github.com/bgub/eta: README lists Docusaurus and swagger-typescript-api as users, which accounts for transitive installs

GPT-6.2 Sol: 5.6, likely 4.4 to 6.8

Four-week downloads rose 8.1× year over year, ahead of the 4.1× catalog baseline and every listed peer. Docusaurus and Swagger TypeScript API install Eta through their own dependency trees, so the share of that growth driven by direct choices remains uncertain. The roughly 15,000 indexed dependent repositories put Eta near LiquidJS and well behind EJS, Handlebars, and Pug.

Vouched for5.9

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

Well-known tools build on it, such as Docusaurus and swagger-typescript-api. Independent benchmarks and 2026 comparison guides rate it well. It does not appear in developer surveys, and user discussion is sparse, so the validation is real but thin.

GPT-6.2 Sol: 6.7, likely 5.5 to 7.9

Docusaurus uses Eta for its HTML shell, and its main branch has moved to 4.6 while the stable release still uses 2.x. Fastify and Lume both support Eta as a template option. These are credible integrations, with limited survey or production evidence specific to Eta 4.6.

Safe7.5

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has zero dependencies and an MIT licence. Its two 2023 advisories (XSS through Express options, and code injection) were fixed in v2 by no longer reading Express settings, and none have appeared since. There is no Scorecard data, and releases rest on a single maintainer. As with any embedded-JS engine, a template is code, so untrusted templates are unsafe.

  • advisories: 2 HIGH advisories in 2023, none in the last 24 months
  • npm dependencies: 0 dependencies
  • scorecard: No OpenSSF Scorecard available
  • eta.js.org/docs/2.x.x/examples/express: Since v2, Eta ignores Express settings to prevent vulnerabilities

GPT-6.2 Sol: 8.0, likely 6.9 to 9.0

Eta is MIT licensed, has zero runtime dependencies, and uses a release workflow that tests the build and publishes with provenance. Version 2.0.0 fixed both high-severity advisories before their public disclosure dates, and the bundle records no advisories in the last two years. Eta executes template code with the application's privileges, so template authors must be trusted. The missing OpenSSF Scorecard and unclear backup release authority limit confidence in the publishing safeguards.

Good

  • Zero dependencies and about 3KB gzipped, with types bundled.
  • Independent benchmarks show it rendering several times faster than EJS and much faster than Handlebars, Nunjucks and LiquidJS.
  • Syntax is close to EJS, so migrating is easy, and it fixes EJS quirks such as left whitespace trimming and quote parsing.
  • Works the same on Node, Deno (also on JSR) and in the browser, with layouts, partials and async support.

Bad

  • Templates run arbitrary JavaScript, so it is unsafe for templates written by users; LiquidJS or Handlebars suit that better.
  • Development rests mostly on one maintainer, with only about 10 commits in the last year.
  • Much of the download count likely comes from tools that install it, such as Docusaurus and swagger-typescript-api, not from direct choice.
  • Its community is small: few tutorials, Q&A threads or discussions compared with EJS and Handlebars.

The numbers

npm downloads, 4 weeks
44M ×8.1 in a year
GitHub stars
1.8k
Commits, 12 months
10
npm version
4.6.0 Apr 2026
Versions, 12 months
3
Advisories, 24 months
0 of 2 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (bgub/eta), npm (eta), OSV and the OpenSSF Scorecard.

Template engines

  1. 7.3LiquidJS
  2. 7.1EJS
  3. 7.0Eta
  4. 6.5Handlebars
  5. 6.3Edge.js
  6. 5.3Pug
  7. 5.2Nunjucks
  8. 4.6mustache.js
Compare all 8 on six scores