Elestia Open Source Ratings
5.3

Pug

Reasonable, with limits. 6th of 8 template engines.

Pug, formerly Jade, is a mature template engine for Node.js. It has indentation-based syntax, mixins and template inheritance. It still works and is installed widely. But development has nearly stopped: 2 commits and 1 small release in the last year, and no answer from maintainers on the project-status issue. Keep it where it already runs; for new work, EJS, Eta or LiquidJS are safer picks.

Best for: Teams that already have Pug templates, or that strongly prefer terse, indentation-based HTML and accept a project in low-activity maintenance.

WebsiteGitHubnpm

Scores

Overall5.3

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Pug still works well and has a distinctive, concise syntax. But it is in near-dormant maintenance, ships no types, and is losing share. For new projects, EJS or Eta (HTML-like) and LiquidJS or Nunjucks (inheritance-heavy) are better maintained. Keep it where it runs; pick something else for new work.

  • github commitsLastYear: 2 commits
  • github.com/pugjs/pug/issues/3395: Community considers it effectively unmaintained
  • peers Eta downloads: Eta grew 8x vs Pug's 2.7x

GPT-6.2 Sol: 6.5, likely 5.4 to 7.6

Pug is a reasonable choice for a new Node.js project when the team specifically wants indentation-based templates with layout inheritance. EJS is an easier default for most teams because it keeps familiar HTML and has seen more recent maintenance. Pug's March patch and working framework integrations support continued use, but the sparse release cadence and below-median download growth make its outlook less certain.

  • pugjs.org/language/inheritance.html: Pug supports shared layouts with overridable blocks.
  • ejs.co: EJS embeds JavaScript in ordinary HTML templates.
  • expressjs.com/en/guide/using-template-engines: Express documents Pug as a supported view engine.
  • github.com/pugjs/pug/releases: The latest main package release is a narrow patch.
  • github.commitsLastYear, npm.versionsLastYear, and peers: EJS has more recent releases and substantially more commits.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Pug's year-over-year download growth trails the catalog baseline.
Needed by many4.1

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Server-side HTML templating is a clear but shrinking need, because most new web apps render with component frameworks. Pug's indentation syntax narrows its appeal further, to developers who want a non-HTML syntax. It targets Node.js, though it can also compile templates for the browser.

GPT-6.2 Sol: 4.2, likely 3.1 to 5.4

Pug fits Node.js projects that render HTML pages, fragments, or emails on the server. Its HTML-oriented syntax appeals to a subset of teams doing that work. Developer surveys show the size of the Node.js ecosystem, but they offer little direct evidence about demand for Pug-style templates.

Helps a lot6.5

How well does it do the job for those who need it?

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

Pug has a rich feature set: mixins, inheritance, includes, filters, conditionals and iteration. It compiles to fast JavaScript functions. It ships no types, its tooling is dated, and its whitespace-sensitive syntax causes errors. Eta and LiquidJS now offer comparable features with more active development and better TypeScript support.

GPT-6.2 Sol: 7.5, likely 6.4 to 8.6

Pug 3.0.4 has reusable mixins, named layout blocks, and a documented compile-and-cache API. Users value its layout features, and one independent benchmark found it fast across several render cases. Community TypeScript declarations leave template data loosely typed, and a user reports trouble with optional chaining. The benchmark covers a limited set of workloads, and evidence on AI-generated Pug code is sparse.

Holds up over time3.7

Will it still be a good choice in two years?

Claude Opus 5.5: 2.5, likely 1.5 to 4.0

The repository had 2 commits and 1 patch release (3.0.4, March 2026) in the last year. The OpenSSF Maintained check scores 0. The status issue opened in 2022 has had no maintainer reply, users have started forks, and no v4 is planned. It is not archived and still gets the occasional fix, so it is not fully abandoned.

GPT-6.2 Sol: 4.8, likely 3.6 to 6.2

Pug shipped a targeted fix in March 2026, but the repository recorded two commits and the main npm package had one release over the past year. Several fixes are still awaiting merge, the 4.0 milestone has no due date, and EJS and Handlebars have much more recent commit activity. Pug documents paid support through Tidelift, but the amount of funded work and the number of active release maintainers are unclear.

Used widely6.1

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

About 20.6M downloads in 4 weeks and 231k dependent repositories show wide installed use. Much of that comes from old Express apps and transitive installs. The yearly ratio of 2.7 is below the 4.1 median, so its share is shrinking. Pug sits well behind EJS and Handlebars, and Eta has grown far faster.

  • npm downloadsLast4Weeks vs downloadsSame4WeeksYearAgo: 20.6M vs 7.6M: ratio 2.7, below median 4.1
  • dependents repos: 231k repos; EJS has 1.5M and Handlebars 1.26M
  • bluesky posts: Only 2 posts, little current attention

GPT-6.2 Sol: 6.6, likely 5.5 to 7.7

Ecosyste.ms found about 231,000 dependent repositories, close to mustache.js and well behind EJS and Handlebars. Four-week downloads rose from 7.59 million to 20.65 million, a 2.72× increase against the catalog's 4.1× median, so Pug lost relative ground. Build automation and indirect installs inflate download counts, while dependent counts include older projects and cover only part of GitHub.

  • dependents: 231,297 repositories and 5,864 npm packages.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Downloads grew 2.72× against the 4.1× catalog median.
  • peers: Mustache.js is near Pug's repository count, while EJS and Handlebars each exceed one million.
  • github.stars and bluesky.posts: 21,817 accumulated stars and two recent Bluesky posts linking to the repository.
Vouched for5.4

Who stands behind it being good?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

Pug has a long production history and direct support in Express. But current independent endorsements are scarce: no Hacker News stories, almost no Bluesky attention, and comparison articles mostly list it as a legacy option. Most of its validation is old.

GPT-6.2 Sol: 6.8, likely 5.6 to 7.9

Express uses Pug in its template-engine guide, Fastify supports it through its view plugin, and Forward Email pins 3.0.4 in its service. User reports and an independent benchmark give some evidence of practical value. Recent Pug-specific satisfaction data and public production reports are sparse, so the integrations carry most of the score.

Safe5.9

How safe is it to depend on?

Claude Opus 5.5: 5.5, likely 4.5 to 7.0

There are two moderate code-injection advisories, from 2021 and 2024. Both were patched, but both are tied to compile options and show that the code generator needs care. The OpenSSF Scorecard is weak at 3.9, with dependency pinning, token permissions and SAST all at 0. Few people maintain it, which slows any future fixes. It lists 8 direct dependencies, including a JS parser stack, and an MIT licence.

GPT-6.2 Sol: 6.3, likely 5.1 to 7.5

Pug is MIT-licensed and 3.0.4 includes fixes for both listed advisories, which shipped by or shortly after public disclosure. Applications should keep templates and compiler options under their own control. Eight direct dependencies and a 3.9 OpenSSF Scorecard weigh on the score, especially the weak review and workflow permission checks. GitHub Actions posted the latest release and npm lists one human collaborator and a bot, leaving some uncertainty about publishing safeguards.

Good

  • Its compact, indentation-based syntax removes closing tags and cuts down on HTML boilerplate.
  • Mixins, includes, blocks with template inheritance, and filters cover most layout needs without extra libraries.
  • It is stable and battle-tested, with over 230k dependent repositories, and Express supports it directly.
  • It has a small direct dependency list and an MIT licence on npm.

Bad

  • Maintenance has nearly stopped: 2 commits in the last year, no v4, and no maintainer answer on the status issue.
  • It ships no TypeScript types, and editor tooling is thin compared with HTML-like engines.
  • Whitespace-sensitive syntax has a learning curve, and pasting plain HTML into templates is awkward.
  • Downloads grew more slowly than the median across all rated projects, so it is losing ground.

The numbers

npm downloads, 4 weeks
21M ×2.7 in a year
GitHub stars
22k
Commits, 12 months
2
npm version
3.0.4 Mar 2026
Versions, 12 months
1
Advisories, 24 months
0 of 2 ever
OpenSSF Scorecard
3.9 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (pugjs/pug), npm (pug), OSV and the OpenSSF Scorecard.

Template engines

  1. 7.3LiquidJS
  2. 7.1EJS
  3. 7.0Eta
  4. 6.5Handlebars
  5. 6.3Edge.js
  6. 5.3Pug
  7. 5.2Nunjucks
  8. 4.6mustache.js
Compare all 8 on six scores