# tdewolff/minify

Go minifiers for web formats

Repository: https://github.com/tdewolff/minify
Canonical: https://ross.abutalabs.com/products/minify
Homepage: https://go.tacodewolff.nl/minify
Language: Go
License: MIT
License Family: permissive
Topics: minifier, go, html, js, json, xml, svg, css, minify, javascript
Last push: 2026-08-24T19:51:15+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 4487, "days_push": 9, "days_rel": 22, "gap_med": 9.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4138, forks 243 (observed 2026-08-28T04:08:36.258182+00:00)

## What it is
A high-performance minifier package written in Go supporting HTML5, CSS3, JS, JSON, SVG, and XML, with a CLI tool and bindings for Python, JavaScript, and .NET. It associates mimetypes with minification functions so embedded resources like CSS or JS inside HTML are minified too.

## Use cases
- minify html css and js files
- shrink web assets for faster page loads
- compress svg and xml files
- minify json payloads
- build step asset minification for go projects
- fast javascript minification alternative to terser

## When to choose
- you need a fast, dependency-light minifier with a CLI or Go API
- you want to minify multiple web formats including HTML, CSS, JS, JSON, SVG, and XML with one tool
- you need to minify embedded resources (CSS/JS inside HTML) in one pass

## When to avoid
- you need advanced JS transformations like bundling, tree-shaking, or ES module optimization
- you are in a Node.js build pipeline already using esbuild or terser
- you need image or font minification, which is out of scope

## Facets
- artifact type: library
- maturity: active
- function: serialization, cli, developer-tools
- domain: web-development, developer-tools, performance
- platform: go, cli, cross-platform
- tags: minifier, html, css, javascript, json, svg, xml, asset-optimization, web-performance

## Member repositories
- tdewolff/minify (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:36.258182+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-29T18:23:00.558994+00:00, confidence not recorded.
  - readme: https://github.com/tdewolff/minify (fetched 2026-08-28T04:08:36.258182+00:00, sha a400c87a1983)
  - homepage: https://go.tacodewolff.nl/minify (fetched 2026-08-29T09:14:00.923777+00:00, sha 1873f72ab02e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
