# pugjs/pug

Pug – robust, elegant, feature rich template engine for Node.js

Repository: https://github.com/pugjs/pug
Canonical: https://ross.abutalabs.com/products/pug
Homepage: https://pugjs.org
Language: JavaScript
License Family: other
Last push: 2026-03-13T15:12:43+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 72, release rhythm 74, longevity 100
- inputs: {"age_days": 5916, "days_push": 173, "days_rel": 173, "gap_med": 0, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 21852, forks 1936 (observed 2026-08-28T04:11:32.137596+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: templating, web-framework, parser
- domain: web-development, frontend, backend, web-design
- platform: browser
- tags: template-engine, html-templating, haml-inspired, server-side-rendering, pug, nodejs, javascript

## Member repositories
- pugjs/pug (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.137596+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-29T16:57:46.937439+00:00, confidence not recorded.
  - readme: https://github.com/pugjs/pug (fetched 2026-08-28T04:11:32.137596+00:00, sha c047f33be34f)
  - homepage: https://pugjs.org (fetched 2026-08-29T07:56:30.385953+00:00, sha 44136fa355b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
