twigjs/twig.js
JS implementation of the Twig Templating Language observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 98
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 5441
- days_rel: 160
- days_push: 15
- n_releases_24m: 2
Adoption not part of the score
1933 stars · 282 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Twig.js is a pure JavaScript implementation of the Twig PHP templating language, usable in both browsers and Node.js. It supports a subset of Twig syntax and integrates with Express as a view engine.
Use cases
- render twig templates in node.js
- use twig as an express view engine
- render templates in the browser
- share twig templates between php and javascript apps
- compile twig template files to html
When to choose
- you need Twig syntax in a JavaScript environment
- you're building an Express app and prefer Twig templates
- you want browser and server-side rendering with the same template language
When to avoid
- you need full Twig PHP feature parity, since only a subset is supported
- you prefer modern JS templating like Handlebars, EJS, or React components
Facets
library · maturity active
templating web-framework web-development frontend backend browser cross-platform twig template-engine javascript express nodejs
1 source
- readme: https://github.com/twigjs/twig.js · fetched 2026-08-28 · 46d45b6e9030
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| twigjs/twig.js | main | 91 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem