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.
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.
- github.com/crafter999/template-engine-benchmarks: Speed lead over peers
- github commitsLastYear: Low activity from essentially one maintainer
- dependents.repos: Direct adoption far below EJS and Handlebars
- pkgpulse.com/guides/handlebars-vs-ejs-vs-eta-server-side-template-engines-2026: Recommended for TypeScript-first projects
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.
- github.com/bgub/eta/releases/tag/v4.6.0: Current stable release expands layout and tag customization.
- eta.js.org/docs/4.x.x/resources/express: Documents the adapter needed to use Express view registration.
- ejs.co: EJS documents direct Express view-engine support.
- github latestRelease, commitsLastYear, dependents, peers: Eta's maintenance activity and indexed adoption are below EJS and Handlebars.
- raw.githubusercontent.com/meta/docusaurus/v3.10.2/packages/docusaurus/package.json: A major downstream framework contributes installs independently of direct selection.
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.
- github description: Runs on Node, Deno and the browser
- pkgpulse.com/guides/handlebars-vs-ejs-vs-eta-server-side-template-engines-2026: Positioned for server-rendered HTML and performance-critical or TypeScript-first projects
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.
- 2025.stateofjs.com/en-US/libraries/meta-frameworks: Survey shows substantial use of frameworks that handle rendering.
- eta.js.org/docs/4.x.x/api/overview: Documents rendering from strings and files, including a browser build.
- lume.land/plugins/eta: Shows Eta used for static pages and layouts.
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.
- github.com/crafter999/template-engine-benchmarks: Third-party benchmark: Eta 16ms vs EJS 71ms vs Handlebars 325ms
- eta.js.org/docs/2.x.x/about/eta-vs-ejs: Whitespace control and parsing fixes over EJS
- pkgpulse.com/guides/handlebars-vs-ejs-vs-eta-server-side-template-engines-2026: TypeScript-native, about 3KB, fastest of the three compared
- npm hasTypes: Types bundled
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.
- github.com/bgub/eta/releases/tag/v4.6.0: Adds block and capture helpers, their async variants, and custom tag types.
- github.com/bgub/eta/blob/v4.6.0/package.json: Declares types and both ESM and CommonJS for the main entry point.
- eta.js.org/docs/4.x.x/intro/quickstart: Still describes v4 as ESM-only.
- github.com/bgub/eta/pull/306: A merged contribution preserves the cause of runtime errors.
- github.com/bgub/eta/issues/359: A user reports that includes remain unresolved when bundling precompiled templates.
- github.com/crafter999/template-engine-benchmarks: A small 2026 benchmark reports faster rendering than EJS and Handlebars.
- github.com/itsarnaud/template-engine-bench: Another benchmark reports Eta behind EJS on most tested templates.
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 43.6 million downloads versus 5.4 million a year earlier.
- dependents, peers: 15,007 indexed repositories and 177 packages depend on Eta.
- raw.githubusercontent.com/meta/docusaurus/v3.10.2/packages/docusaurus/package.json: Stable Docusaurus pulls in Eta 2.x by default.
- github.com/acacode/swagger-typescript-api/blob/main/package.json: The Swagger client generator pulls in Eta 3.x.
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.
- github.com/bgub/eta: Projects that use Eta include Docusaurus and swagger-typescript-api
- github.com/crafter999/template-engine-benchmarks: Independent speed benchmark
- pkgpulse.com/guides/handlebars-vs-ejs-vs-eta-server-side-template-engines-2026: Third-party guide recommends it for TypeScript-first or performance-critical work
- hackerNews/bluesky: No HN stories or Bluesky posts
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.
- docusaurus.io/docs/api/docusaurus-config#ssrtemplate: Documents Eta as the template engine for the rendered HTML shell.
- raw.githubusercontent.com/meta/docusaurus/v3.10.2/packages/docusaurus/package.json: The stable Docusaurus release depends on Eta 2.x.
- raw.githubusercontent.com/meta/docusaurus/main/pnpm-workspace.yaml: The Docusaurus development branch lists Eta 4.6.
- github.com/fastify/point-of-view#eta: Fastify's view plugin documents direct Eta integration.
- lume.land/plugins/eta: Lume maintains an optional Eta plugin for pages and layouts.
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.
- npm dependencies, license, advisories last24Months, scorecard: Zero runtime dependencies, MIT, zero recent advisories, and no Scorecard result.
- github.com/bgub/eta/blob/v4.6.0/.github/workflows/release-please.yml: GitHub Actions builds, tests, and publishes with npm provenance.
- github.com/bgub/eta/releases/tag/v2.0.0: The January 28 release contains the security fixes.
- osv.dev/vulnerability/GHSA-xrh7-m5pp-39r6: The January 31 XSS advisory lists 2.0.0 as patched.
- github.com/advisories/GHSA-mf6x-hrgr-658f: The January 30 code injection advisory lists 2.0.0 as patched.
- eta.js.org/docs/4.x.x/intro/security: Documents that rendering a template executes JavaScript.
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.