pugjs/pug
Pug – robust, elegant, feature rich template engine for Node.js observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 72
- Release rhythm 74
- Longevity 100
Flags: no_license
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: 0
- age_days: 5916
- days_rel: 173
- days_push: 173
- n_releases_24m: 2
Adoption not part of the score
21852 stars · 1936 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Pug is a high-performance, feature-rich template engine for Node.js and browsers, heavily influenced by Haml, that compiles indentation-based templates to HTML. It is a mature, widely used library distributed as a set of npm packages.
Use cases
- render html templates in a node.js express app
- write cleaner html with an indentation-based template language
- generate static html pages from templates
- server-side render views for a web application
- migrate from haml or jade to a maintained template engine
- compile templates for use in the browser
When to choose
- you want a concise, whitespace-sensitive template syntax instead of verbose html
- you are building a Node.js web app (e.g., Express) and need view templating
- you need a mature, battle-tested engine with a large ecosystem and long track record
When to avoid
- your team prefers plain HTML templates with minimal syntax (consider Handlebars or EJS)
- you need React/Vue-style component-based frontend rendering
- you dislike significant-whitespace syntax or want HTML-valid template files
Facets
library · maturity stable
templating web-framework parser web-development frontend backend web-design browser template-engine html-templating haml-inspired server-side-rendering pug nodejs javascript
2 sources
- readme: https://github.com/pugjs/pug · fetched 2026-08-28 · c047f33be34f
- homepage: https://pugjs.org · fetched 2026-08-29 · 44136fa355b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pugjs/pug | main | 78 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem