twigjs/twig.js
Some data may be outdated — see provenance labels.
JS implementation of the Twig Templating Language observed · 2026-10-01
Health v2 · maintenance only
87/100
- Activity 95
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 5489
- days_rel: 208
- days_push: 34
- n_releases_24m: 2
Adoption not part of the score
1934 stars · 283 forks observed · 2026-10-01
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-10-01 · 46d45b6e9030
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| twigjs/twig.js | main | 87 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem