Elestia Open Source Ratings
7.1

EJS

A strong pick. 2nd of 8 template engines.

EJS is the most widely used JavaScript template engine. It embeds plain JavaScript in HTML through angle-percent tags. It is a safe, familiar pick for Express-style server rendering and is actively maintained again, but Eta does the same job faster, with built-in types and fewer parsing quirks.

Best for: Node/Express projects that want the simplest, most widely known HTML templating with plain JavaScript inside templates.

GitHubnpm

Scores

Overall7.1

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

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

EJS remains a solid, well-understood choice with active maintenance and the biggest user base in the category. Eta keeps nearly the same syntax but is faster, ships types and is growing much faster. For new work, EJS is a reasonable pick rather than the clear best. Recent major-version churn and a weak Scorecard keep it from the top tier.

GPT-6.2 Sol: 7.7, likely 6.6 to 8.7

EJS is a strong pick for straightforward Express views because it offers direct integration, familiar JavaScript, and active maintenance. Eta has an edge when a new project needs built-in layouts and bundled types. Adoption is still large but losing ground against the catalog baseline, and maintenance concentrated around one person limits confidence over two years.

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 templating is a common but shrinking need now that most new web apps render through component frameworks. EJS is general purpose and not tied to one framework, so it covers the whole category. It is used for HTML pages, emails, code generators and scaffolding tools.

GPT-6.2 Sol: 4.6, likely 3.4 to 5.9

EJS serves teams that render HTML or generate text on the server, and it works outside Express. Express is widely used, but API-only servers and apps with framework-provided rendering often have little need for a separate template engine. The available survey data tracks frameworks, so the share of developers who need EJS-style templates is uncertain.

Helps a lot6.9

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

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

It does the core job well: it escapes output by default, supports includes, caching, custom delimiters, async and client builds, and it is very familiar to AI agents. It has clear limits: no bundled types, no layout or block inheritance, known parsing quirks, and it is roughly 4x slower than Eta in an independent benchmark. Eta offers the same syntax with more features.

GPT-6.2 Sol: 7.7, likely 6.6 to 8.7

Plain JavaScript, documented tags and includes, and compiled-template caching make everyday views easy to write. EJS leaves layouts to partials or add-ons and relies on external TypeScript declarations, while Eta ships types and built-in layout blocks. An independent benchmark used EJS 3.1.10, so it offers limited evidence about v7.0.2 performance. The docs give coding agents clear examples, but their accuracy on v7 is unmeasured.

Holds up over time6.9

Will it still be a good choice in two years?

Claude Opus 5.5: 6.5, likely 5.0 to 8.0

Activity is healthy: 55 commits, 6 releases, the latest in October 2026, and only 6 open issues. The work rests mostly on one long-time maintainer with no visible funding. Four majors in a year with late release notes show some churn risk. Its huge installed base makes abandonment unlikely to go unnoticed.

  • github commitsLastYear / releasesLastYear: 55 commits, 6 releases, v7.0.2 on 2026-10-18
  • github.com/mde/ejs/issues/806: Users asked for v6 and v7 release notes for months; the maintainer added them in October 2026
  • github.com/mde/ejs/releases: v4.0.1 through v7.0.2 shipped within about a year

GPT-6.2 Sol: 7.2, likely 6.0 to 8.4

EJS logged 55 commits and six releases in the past year, ahead of Handlebars and Pug on commit activity. A user got a same-day answer when the v5 changes were unclear, and v7 now documents migration steps for Express and CLI users. Recent release work centers on one maintainer, and release access and funding are unclear, which widens the two-year estimate.

Used widely8.4

How many use it, and is that growing?

Claude Opus 5.5: 8.5, likely 7.5 to 9.0

It leads the category with about 240M downloads per 4 weeks and 1.53M dependent repositories, more than Handlebars. Many of those downloads come through tooling and generators. Its growth ratio of 2.67 is below the 4.1 median and far below Eta's 8.1, so it is losing share of new choices.

  • npm downloadsLast4Weeks: 239.6M vs 89.6M a year ago, ratio 2.67, below the 4.1 median
  • dependents.repos: 1,532,080 repos, the most among peers
  • peers Eta: Eta grew 8x year over year from a smaller base

GPT-6.2 Sol: 8.2, likely 7.1 to 9.3

Ecosyste.ms tracks 1.53 million dependent repositories, the most in the peer set, even though EJS has fewer stars than Handlebars and Pug. Four-week downloads rose from 89.6 million to 239.6 million, or 2.67×, below the 4.1× catalog baseline and behind every listed peer except Handlebars. Automated installs and dependencies pulled in by other tools make it hard to tell how many new projects choose EJS directly.

  • dependents: 1.53 million tracked repositories and 15,041 npm packages.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Downloads grew 2.67× against the 4.1× baseline.
  • github.stars and peers: EJS leads in tracked dependent repositories and trails several peers in stars.
  • bluesky.posts and hackerNews.stories: Four Bluesky links and zero matched Hacker News stories.
  • sailsjs.com/documentation/concepts/views/view-engines: Sails selects EJS as its default view engine.
  • 11ty.dev/docs/languages/ejs: Older Eleventy versions bundled EJS.
Vouched for6.6

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

Many tools build on it, such as Express view setups, scaffolding generators, and Eleventy support. Independent guides keep recommending it for Express apps. There is no current survey data and almost no social discussion, so most of its validation comes from long-standing use rather than fresh endorsements.

GPT-6.2 Sol: 7.1, likely 5.9 to 8.3

Express documents first-class support, Sails uses EJS by default, and Fastify's official view plugin supports it. Yeoman uses EJS 7 in development, while Eleventy's optional plugin still documents EJS 3. Independent evidence about production use and developer satisfaction specifically on v7 is limited.

Safe6.6

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.0 to 7.5

It has zero dependencies, an Apache-2.0 licence, no advisories in 24 months, and a v6 prototype-pollution mitigation that is on by default. Older versions had critical RCE and template-injection advisories, and the engine executes JavaScript by design. The Scorecard is weak at 4.1, with no code review, no branch protection, no signed releases, and unpinned dependencies.

  • advisories: 5 total, 0 in last 24 months; critical ones in 2017 and 2022
  • scorecard: 4.1 overall; Code-Review, Branch-Protection and Signed-Releases all 0
  • security.snyk.io/package/npm/ejs: No known vulnerabilities in 4.x and later, including 7.0.2
  • npm dependencies: 0 runtime dependencies

GPT-6.2 Sol: 6.7, likely 5.5 to 7.8

EJS has zero runtime dependencies and a permissive Apache-2.0 license. The two most recent advisories have fixes in older releases, and the bundle records no advisories in the past 24 months. EJS runs templates as JavaScript, so templates must come from trusted authors. GitHub releases use Actions, but npm publish access is unclear and Scorecard flags weak release signing, code review, branch protection, and workflow token permissions.

Good

  • The syntax is just HTML plus JavaScript, so developers and AI coding agents write correct templates right away.
  • It has zero runtime dependencies, and v6 added a prototype-pollution mitigation that is on by default.
  • It has the largest installed base in its category, with about 1.5M dependent repositories, and it plugs straight into Express and many static site generators.
  • Development is active again: 55 commits and 6 releases in the last year, plus cleaner ESM/CJS packaging for Vite, Bun and Deno.

Bad

  • It shipped four major versions (v4 to v7) in about a year, and users had to ask for the v6 and v7 release notes, which arrived months late.
  • It has no bundled TypeScript types; you need the separate @types/ejs package.
  • It is several times slower than Eta in an independent 2026 benchmark, and it has known parsing quirks, such as a literal close tag inside a string breaking the template.
  • There is no built-in layout or block inheritance, and nothing keeps heavy logic out of views.

The numbers

npm downloads, 4 weeks
240M ×2.7 in a year
GitHub stars
8.1k
Commits, 12 months
55
npm version
7.0.2 Oct 2026
Versions, 12 months
6
Advisories, 24 months
0 of 5 ever
OpenSSF Scorecard
4.1 out of 10, Nov 2026
Licence
Apache-2.0

Read on 21 November 2026 from GitHub (mde/ejs), npm (ejs), 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