csstree/csstree
A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 70
- Release rhythm 61
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 42.5
- age_days: 3652
- days_rel: 181
- days_push: 181
- n_releases_24m: 5
Adoption not part of the score
2118 stars · 129 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CSSTree is a JavaScript tool set for CSS that includes a fast, detailed parser (CSS to AST), AST walker, generator (AST to CSS), and lexer for syntax validation based on W3C specs and browser implementations. It is designed for efficiency and spec compliance, focusing on CSS analysis and source-to-source transformation tasks.
Use cases
- parse css into an ast
- validate css declaration values against w3c syntaxes
- traverse and transform css ast nodes
- generate css from an ast
- build a css minifier or optimizer
- analyze css in a build tool or framework compiler
When to choose
- you need a fast, spec-compliant CSS parser with adjustable detail level
- you need tolerant error handling that preserves invalid content for later processing
- you are building CSS analysis, transformation, or minification tooling
- you need to validate CSS values against W3C and vendor-specific syntaxes
When to avoid
- you only need simple string-level CSS minification without AST manipulation
- you need a full CSS linter with style rules out of the box
- you work in a non-JavaScript ecosystem
Facets
library · maturity stable
parser serialization developer-tools web-development frontend parsers cross-platform css ast lexer walker code-generator w3c-specs css-validation source-to-source-transform nodejs javascript
2 sources
- readme: https://github.com/csstree/csstree · fetched 2026-08-28 · e885c91a1eac
- homepage: https://csstree.github.io/docs/ · fetched 2026-08-29 · 382e48eed095
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| csstree/csstree | main | 73 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem