FindSoftware

minify

Go library and command-line tool that minifies HTML, CSS, JavaScript, JSON, SVG and XML.

minify is a Go library and command-line tool that minifies HTML, CSS, JavaScript, JSON, SVG and XML. The library associates media types with minifier functions, so CSS and JavaScript embedded in an HTML file are minified along with it, and a user can add minifiers for other types. The command-line tool is a separate build of the same library, installed through go install, a prebuilt binary, Homebrew, apt, scoop or Docker. Python and JavaScript bindings are published as separate packages on PyPI and npm.

Worth knowing

The library includes HTTP middleware that minifies responses as they are served, based on the Content-Type header or the file extension. The README says these results should preferably be cached, because the processing happens on the fly for each request.

Identity

Status
Active
Maintainer
Taco de Wolff5
Maintained by
Individual
First release
20156

Rendering and deploy

Runs as
Dev only4
Install with
go get34

Releases

Current major version
26
Last release
2026-10-267

Adoption

GitHub stars
4,1492
Contributors
518

Why these figures do not compare

Sources

  1. 2026-10-28: links
    go.tacodewolff.nl/minify
  2. 2026-10-28: links, Written in, License, GitHub stars
    api.github.com/repos/tdewolff/minify
  3. 2026-10-28: links, Categories, Install with
    github.com/tdewolff/minify/blob/master/README.md
  4. 2026-10-28: Runs as, Install with
    github.com/tdewolff/minify/blob/v2.24.24/cmd/minify/README.md
  5. 2026-10-28: License model, Maintainer
    raw.githubusercontent.com/tdewolff/minify/v2.24.24/LICENSE
  6. 2026-10-28: First release, Current major version
    api.github.com/repos/tdewolff/minify/releases
  7. 2026-10-28: Last release
    api.github.com/repos/tdewolff/minify/releases/latest
  8. 2026-10-28: Contributors
    api.github.com/repos/tdewolff/minify/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON