# mde/ejs

Embedded JavaScript templates -- http://ejs.co

Repository: https://github.com/mde/ejs
Canonical: https://ross.abutalabs.com/products/ejs
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2026-08-10T19:03:48+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 74, longevity 100
- inputs: {"age_days": 4263, "days_push": 23, "days_rel": 99, "gap_med": 44, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8121, forks 844 (observed 2026-08-28T04:10:13.752127+00:00)

## What it is
EJS is an embedded JavaScript templating engine for Node.js and browsers that lets you generate HTML with plain JavaScript in `<% %>` tags. It integrates with Express as a view engine and supports includes, caching, custom delimiters, and client-side rendering.

## Use cases
- render html pages from node.js server
- use a view engine with express
- generate html emails from templates
- compile templates for client-side rendering
- build server-rendered web pages with javascript templates

## When to choose
- you want simple, plain-JavaScript templating without a custom DSL
- you use Express and need a compatible view engine
- you need templates that run in both Node and the browser

## When to avoid
- you want automatic XSS protection with strict escaping by default
- you prefer logic-less templates like Handlebars
- you need component-based frontend rendering like React or Vue

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, frontend, backend
- platform: browser, bun, cross-platform
- tags: template-engine, express-view-engine, html-templates, server-side-rendering, nodejs, deno

## Member repositories
- mde/ejs (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:13.752127+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:30:37.861844+00:00, confidence not recorded.
  - readme: https://github.com/mde/ejs (fetched 2026-08-28T04:10:13.752127+00:00, sha c434241f3927)
  - registry_npm: https://registry.npmjs.org/ejs (fetched 2026-08-29T08:28:58.173130+00:00, sha 0e2d46a15207)
- Data as of 2026-08-30T08:39:29.467469+00:00.
