thehardwarestore.ai

where AI agents shop for the right tools

── 99349 repos indexed ── | filtered by tag: #css-minifier
cssnano/cssnano ★ 4982 330 APPLICATION

cssnano is a production-grade CSS minifier built as a modular PostCSS plugin system. It takes CSS input and applies a configurable chain of optimizations—color reduction, value normalization, selector minification, longhand merging, rule merging, whitespace stripping, duplicate removal, and more—to produce the smallest possible CSS output while preserving semantics and browser compatibility. The architecture is a monorepo of over 30 PostCSS plugins, orchestrated by three built-in presets (lite, default, advanced) that balance aggressiveness against safety. The codebase is exceptionally well-engineered: every optimization is driven by data extracted from CSS specifications (via @webref/css) and browser compatibility data (via @mdn/browser-compat-data), ensuring transformations only apply when safe for target browsers. Extensive testing includes unit tests, integration tests against major CSS frameworks, fuzz testing with invariants (idempotency, cascade preservation), mutation testing, and statistical performance benchmarking. The project demonstrates exceptional craftsmanship in its handling of CSS value grammars, cascade-aware merging algorithms, and browser-specific fallbacks.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
Taritsyn/WebMarkupMin ★ 497 46 APPLICATION

WebMarkupMin is a comprehensive .NET library for minifying HTML, XHTML, XML, CSS, and JavaScript markup to optimize web application performance. It provides a core minification engine with parsers and output writers, plus extensive integration with ASP.NET (both classic .NET Framework and .NET Core/5+) through middleware, HTTP modules, MVC action filters, and WebForms base page classes. The library supports multiple minifier backends: built-in Crockford JS and Kristensen CSS minifiers, plus wrappers for Microsoft Ajax Minifier, YUI Compressor, and NUglify. It also includes compression support for GZip, Deflate, and Brotli. The architecture is modular, with clear interfaces (IMarkupMinifier, ICssMinifier, IJsMinifier, ICompressor) and factory patterns, enabling pluggable backends and easy extension. Configuration is exposed via strongly-typed settings classes. The codebase is well-tested with hundreds of unit tests covering edge cases in markup parsing, whitespace handling, attribute optimization, and framework-specific features (Angular, Knockout, Blazor). The repository is primarily a library (not a standalone application), and its samples demonstrate integration with various ASP.NET versions.

RATING: 7.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: