# oyvindeh/ucss

Find unused and duplicate CSS

Repository: https://github.com/oyvindeh/ucss
Canonical: https://ross.abutalabs.com/products/ucss
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2017-01-26T10:08:08+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5143, "days_push": 3506, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1609, forks 61 (observed 2026-08-28T04:05:10.816756+00:00)

## What it is
uCSS is a Node.js tool that crawls websites or local HTML files to find unused and duplicate CSS selectors, with match counts per rule. It works both as a command line tool and as a library, and supports config-driven crawling with login, whitelists, and exclusions.

## Use cases
- find unused CSS selectors on my website
- detect duplicate CSS rules in a stylesheet
- crawl a site to see which CSS rules are never used
- audit CSS usage across pages behind a login
- find dead links while crawling a site
- count how often each CSS rule matches

## When to choose
- you want to identify unused or duplicate CSS selectors across a site or HTML codebase
- you need a CLI or Node library for CSS usage analysis
- you need to crawl authenticated pages with a config file

## When to avoid
- you want to automatically remove unused CSS from a stylesheet (use UnCSS instead)
- you need detection of JavaScript-toggled rules, inline styles, or internal style sheets
- you need a actively maintained tool with recent updates

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: web-scraping, parser, developer-tools
- domain: web-development, frontend, developer-tools
- platform: cli, cross-platform
- tags: css-analysis, unused-css, duplicate-selectors, css-audit, crawler, nodejs

## Member repositories
- oyvindeh/ucss (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.816756+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-30T03:51:19.232722+00:00, confidence not recorded.
  - readme: https://github.com/oyvindeh/ucss (fetched 2026-08-28T04:05:10.816756+00:00, sha a131c433550b)
  - registry_npm: https://registry.npmjs.org/ucss (fetched 2026-08-29T11:23:43.021295+00:00, sha 77bb01905794)
- Data as of 2026-08-30T08:39:29.467469+00:00.
