FindSoftware

EJS

Templating language that generates HTML from plain JavaScript written inside templates, for Node.js and the browser.

EJS is a templating language that writes HTML with plain JavaScript. Templates hold JavaScript between scriptlet tags, and output tags insert values escaped or unescaped. The library compiles a template to a JavaScript function, which it caches, and runs on Node.js or in the browser. In the browser, a prebuilt script compiles and renders template strings, while loading template files needs the Node.js entry point. EJS installs from npm, ships a command-line tool, and complies with the Express view system, so an Express app can use it as its view engine.

Worth knowing

The README states that EJS is effectively a JavaScript runtime, so giving end users unrestricted access to the render method is an unsafe way to use it. Escaping covers HTML content and quoted attributes by default, and the README says other output contexts need their own escape function.

Identity

Status
Active
Maintainer
Matthew Eernisse1
Maintained by
Individual
First release
20114

Rendering and deploy

Install with
npm13

Releases

Current major version
76
Last release
2026-10-187

Adoption

GitHub stars
8,1312
npm downloads a week
59,644,1179
Contributors
1238
Dependent repositories
1,532,08010
Dependent packages
15,04110

Why these figures do not compare

Sources

  1. 2026-11-08: links, Maintainer, Categories, License, Install with
    ejs.co/
  2. 2026-11-08: links, Written in, GitHub stars
    api.github.com/repos/mde/ejs
  3. 2026-11-08: links, Runtime, Install with
    ejs.co/docs/
  4. 2026-11-08: First release
    registry.npmjs.org/ejs
  5. 2026-11-08: Minimum runtime
    github.com/mde/ejs/blob/main/README.md
  6. 2026-11-08: Current major version
    api.github.com/repos/mde/ejs/releases?per_page=40
  7. 2026-11-08: Last release
    api.github.com/repos/mde/ejs/releases/latest
  8. 2026-11-08: Contributors
    api.github.com/repos/mde/ejs/contributors?per_page=1
  9. 2026-11-08: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/ejs
  10. 2026-11-08: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/ejs

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON