# leeoniya/dropcss

An exceptionally fast, thorough and tiny unused-CSS cleaner

Repository: https://github.com/leeoniya/dropcss
Canonical: https://ross.abutalabs.com/products/dropcss
Language: HTML
License: MIT
License Family: permissive
Topics: remove, purge, clean, unused, css, styles, optimization
Last push: 2023-08-24T19:27:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2723, "days_push": 1105, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2127, forks 64 (observed 2026-08-28T04:06:16.961846+00:00)

## What it is
DropCSS is a tiny (~10 KB), exceptionally fast Node.js library that removes unused CSS by taking HTML and CSS as input and returning only the selectors actually used in the markup. It uses custom optimized HTML and CSS parsers and offers a shouldDrop hook for whitelisting selectors.

## Use cases
- remove unused css from a project
- purge css selectors not present in html
- clean up bloated stylesheets before deployment
- reduce css file size for faster page loads
- keep only css used by my markup
- inline critical css for a static page

## When to choose
- you have well-formed HTML and CSS and want a fast, minimal purge tool
- you need fine-grained control over which selectors are dropped via a whitelist hook
- you want a tiny dependency with no heavy build pipeline

## When to avoid
- your HTML or CSS is malformed or relies on implied tags like html/head/body/tbody
- you need full CSS spec compliance including complex escaping rules
- you want selector regrouping and rule merging - pair it with clean-css, csso, or cssnano instead

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, parser, developer-tools
- domain: web-development, frontend, performance
- platform: cli, browser
- tags: css-purge, unused-css, css-optimizer, minification, nodejs

## Member repositories
- leeoniya/dropcss (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:16.961846+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-30T02:52:29.122796+00:00, confidence not recorded.
  - readme: https://github.com/leeoniya/dropcss (fetched 2026-08-28T04:06:16.961846+00:00, sha c75344b19e37)
- Data as of 2026-08-30T08:39:29.467469+00:00.
