kangax/html-minifier

Javascript-based HTML compressor/minifier (with Node.js support)

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 45 minutes ago
Added to GitGenius on September 13th, 2026
Created on February 5th, 2010
Open Issues & Pull Requests: 107 (+0)
GitHub issues: Enabled
Number of forks: 577
Total Stargazers: 5,035 (+0)
Total Subscribers: 93 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 342.9 days
Mean response time: 789.0 days
90th percentile: 2338.0 days
Tracked items: 47

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 98% 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: 43
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,732 days
Stale 30+ days: 43
Stale 90+ days: 43

Recent activity

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

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

HTMLMinifier is a JavaScript-based HTML minifier with Node.js support that compresses HTML markup by removing unnecessary characters while preserving functionality.

The tool solves the problem of reducing HTML file sizes to improve page load performance. It works by parsing HTML and applying configurable minification rules that strip whitespace, remove optional tags, collapse boolean attributes, and eliminate other redundant markup. The approach is highly configurable, allowing developers to choose which optimizations to apply based on their specific needs.

HTMLMinifier suits projects where file size reduction matters and developers need fine-grained control over minification behavior. It works well in build pipelines for static sites and applications where HTML is generated or served. The README indicates the tool has been integrated into multiple ecosystems through Grunt, Gulp, Koa, and Express wrappers, suggesting it fits naturally into common JavaScript build workflows. The README compares it to Will Peavy's minifier, htmlcompressor.com, and the minimize library, showing it typically achieves smaller output sizes across a range of real-world websites.

The README contains a prominent notice that this version is no longer maintained and directs users toward HTML Minifier Next for current development, new features, and security fixes. This is a critical factor for adoption: the original project has been superseded and is not receiving updates.