# purifycss/purifycss

Remove unused CSS. Also works with single-page apps.

Repository: https://github.com/purifycss/purifycss
Canonical: https://ross.abutalabs.com/products/purifycss
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2020-10-17T03:45:35+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4117, "days_push": 2146, "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 9850, forks 379 (observed 2026-08-28T04:10:37.485321+00:00)

## What it is
PurifyCSS is a JavaScript library and CLI that statically analyzes content (HTML, JS, PHP, etc.) to detect which CSS selectors are actually used, then outputs only the used CSS. It works with CSS frameworks and single-page apps, and integrates with Grunt, Gulp, and Webpack.

## Use cases
- remove unused css from my project
- purge unused bootstrap styles
- reduce css bundle size
- clean up css for a single-page app
- find which css selectors are unused
- minify and purify css at build time

## When to choose
- you use a large CSS framework like Bootstrap and only need a fraction of its selectors
- you want a standalone library, CLI, or build-tool plugin to strip unused CSS
- your app dynamically constructs class names in JavaScript

## When to avoid
- you need a tool with active development and modern ecosystem support (last release 2020)
- you use modern bundler-native solutions like PurgeCSS or Tailwind's built-in purging
- your CSS classes are generated entirely at runtime with no static trace

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, build-tool, cli
- domain: web-development, frontend, developer-tools
- platform: cli, cross-platform
- tags: css-optimization, unused-css, purgecss, static-analysis, single-page-apps, nodejs

## Member repositories
- purifycss/purifycss (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:37.485321+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-29T17:20:54.135900+00:00, confidence not recorded.
  - readme: https://github.com/purifycss/purifycss (fetched 2026-08-28T04:10:37.485321+00:00, sha 9fa3dc05a0f6)
  - registry_npm: https://registry.npmjs.org/purifycss (fetched 2026-08-29T08:20:35.558971+00:00, sha afdd1444100d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
