pugjs/pug

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 36 minutes ago
Added to GitGenius on September 2nd, 2026
Created on June 23rd, 2010
Open Issues & Pull Requests: 334 (+0)
GitHub issues: Enabled
Number of forks: 1,937
Total Stargazers: 21,848 (+0)
Total Subscribers: 533 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.5 days
Mean response time: 312.6 days
90th percentile: 1231.0 days
Tracked items: 36

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 0% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 27
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,304 days
Stale 30+ days: 27
Stale 90+ days: 26

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Good First Issue (2)
  • bug (1)
  • documentation (1)
  • mixin (1)
  • plugin-request (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Pug is a template engine for Node.js that compiles to HTML with a clean, indentation-based syntax.

Pug solves the problem of writing verbose HTML by offering a more concise syntax where indentation defines nesting and parentheses are optional. The engine parses Pug's whitespace-sensitive format and compiles it directly to HTML, supporting both server-side rendering and client-side template compilation. It includes built-in support for filters, mixins, includes, and template inheritance, allowing developers to write reusable template components and organize complex templates into modular pieces.

Pug suits projects where template readability and maintainability matter more than HTML familiarity. It works well in Node.js applications, Express servers, and static site generators. Teams comfortable with Python-like syntax will find the indentation-based approach natural. Developers who prefer explicit HTML tags or need to work with designers unfamiliar with Pug's syntax should consider alternatives, though the README does not name specific competing engines. The learning curve is moderate for those accustomed to traditional template languages but steeper for developers expecting HTML-like markup.

The project maintains active engagement with its user base through issue responses and pull request reviews. Development includes regular updates to address reported bugs and compatibility concerns. The maintainers respond to feature requests and clarifications about template behavior, indicating ongoing stewardship of the codebase. The project accepts community contributions and processes them with attention to code quality and consistency with the engine's design principles.