# t32k/stylestats

StyleStats is a library to collect CSS statistics.

Repository: https://github.com/t32k/stylestats
Canonical: https://ross.abutalabs.com/products/stylestats
Language: CSS
License: MIT
License Family: permissive
Topics: stylestats, css
Last push: 2018-05-02T08:34:27+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": 4572, "days_push": 3045, "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 1808, forks 62 (observed 2026-08-28T04:05:39.302134+00:00)

## What it is
StyleStats is a Node.js library and CLI tool that collects statistics about CSS stylesheets, such as size, rules, selectors, simplicity, and cohesion metrics. It presents the results in a readable table and can be used to audit CSS quality.

## Use cases
- analyze css file statistics
- measure css complexity and simplicity
- audit stylesheet size and gzipped size
- find selectors with too many identifiers
- track css quality metrics in ci
- compare css files before and after refactoring

## When to choose
- you want quick quantitative metrics on CSS files from the command line
- you need to audit CSS quality (simplicity, cohesion, selector depth) in a Node.js project
- you want JSON or table output of stylesheet statistics for reporting

## When to avoid
- you need active maintenance or support for modern Node.js versions (last release 2018)
- you need linting or style enforcement rather than statistics (use stylelint instead)
- you need a visual CSS report or browser-based analysis tool

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, cli, analytics
- domain: web-development, frontend, developer-tools, analytics
- platform: cli, cross-platform
- tags: css-statistics, css-analysis, stylesheet-metrics, css-quality, code-analysis, nodejs

## Member repositories
- t32k/stylestats (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:39.302134+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:21:24.160492+00:00, confidence not recorded.
  - readme: https://github.com/t32k/stylestats (fetched 2026-08-28T04:05:39.302134+00:00, sha 5f88c0e4d7a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
