# wilsonzlin/minify-html

Extremely fast and smart HTML + JS + CSS minifier, available for Rust, Deno, Java, Node.js, Python, Ruby, and WASM

Repository: https://github.com/wilsonzlin/minify-html
Canonical: https://ross.abutalabs.com/products/minify-html
Language: Rust
License: MIT
License Family: permissive
Last push: 2025-11-18T08:13:02+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 52, release rhythm 53, longevity 100
- inputs: {"age_days": 2986, "days_push": 288, "days_rel": 312, "gap_med": 1, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1169, forks 68 (observed 2026-08-28T04:03:51.155738+00:00)

## What it is
minify-html is an extremely fast HTML minifier written in Rust that also minifies inline JS and CSS via oxc and lightningcss. It is available as a library for Rust, Node.js, Python, Ruby, Java, and Deno, as WASM, and as a CLI tool called minhtml.

## Use cases
- minify html files for production
- compress inline javascript and css in html
- batch minify a directory of html files
- faster alternative to html-minifier
- minify html with templating syntax
- reduce page weight for faster load times

## When to choose
- you need very fast minification of large volumes of HTML
- you want better compression than html-minifier
- you need bindings for multiple languages or a CLI
- your HTML contains templating syntax or minor invalid markup

## When to avoid
- you need to minify standalone JS or CSS files rather than HTML
- you require highly configurable, plugin-based minification options

## Facets
- artifact type: library
- maturity: active
- function: compression, parser
- domain: web-development, frontend, performance
- platform: rust, python, jvm, ruby, wasm, cli, cross-platform
- tags: html-minifier, css-minifier, js-minifier, minification, bindings, nodejs, deno

## Member repositories
- wilsonzlin/minify-html (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.155738+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-30T06:28:44.787737+00:00, confidence not recorded.
  - readme: https://github.com/wilsonzlin/minify-html (fetched 2026-08-28T04:03:51.155738+00:00, sha 553ca2d9b13e)
  - registry_crates: https://crates.io/api/v1/crates/minify-html (fetched 2026-08-29T12:34:35.535569+00:00, sha 61afe9165c4a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
