Package
css-tree
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 88.1m
- +116% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 6 months ago
- v3.2.1
- GitHub stars
- 2.1k
- 130 forks
- Open issues / PRs
- 53 / 25
- Contributors
- 31
- Commits, last 52 weeks
- 18
Downloads
Last week 2026-09-15 to 2026-09-21
88,124,974 downloads last week, 395,611,442 in the last month. The 12-month change of +116% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 221 in total
- Latest version
- 3.2.1, 5 Mar 20266 months ago
- First published
- 12 Sept 2016
- Last push to GitHub
- 16 Sept 20268 days before the snapshot
- Repository archived
- No
- Open issues
- 53
- Open pull requests
- 25
- Commits, last 52 weeks
- 18
- Dependents on npm
- 1,177
Major versions
- v3 first release 3.0.0, 11 Sept 2024
- v2 first release 2.0.0, 3 Dec 2021
- v1 first release 1.0.0, 27 Oct 2020
Recent releases
| Version | Published |
|---|---|
| 3.2.1 | 5 Mar 2026 |
| 3.2.0 | 5 Mar 2026 |
| 3.1.0 | 6 Dec 2024 |
| 3.0.1 | 2 Nov 2024 |
| 3.0.0 | 11 Sept 2024 |
| 2.3.1 | 14 Dec 2022 |
| 2.3.0 | 30 Nov 2022 |
| 2.2.1 | 14 Aug 2022 |
| 2.2.0 | 10 Aug 2022 |
| 2.1.0 | 27 Feb 2022 |
| 2.0.4 | 17 Dec 2021 |
| 2.0.3 | 15 Dec 2021 |
| 2.0.2 | 10 Dec 2021 |
| 2.0.1 | 4 Dec 2021 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0
- Runtimes
- -
- Unpacked size (npm)
- 1.3 MB
- Dependencies (2)
mdn-datasource-map-js
npm install css-tree- jsDelivr
https://cdn.jsdelivr.net/npm/css-tree@3.2.1/ - unpkg
https://unpkg.com/css-tree@3.2.1/ - esm.sh
https://esm.sh/css-tree@3.2.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| inline-style-parser | 33.9m | - | 2 months ago | ESM + CommonJS | - |
| @eslint/css-tree | 2.1m | - | 7 days ago | ESM + CommonJS | - |
| lightningcss | 113.9m | - | 2 months ago | ESM + CommonJS | css-tree vs lightningcss |
| scss-tokenizer | 1.4m | - | 4 years ago | - | - |
| @npmcli/query | 3.8m | - | 4 months ago | CommonJS | - |
| esprima | 85m | - | 8 years ago | CommonJS | - |
| snapdragon | 9.5m | - | 5 years ago | CommonJS | - |
| postcss-value-parser | 84.1m | - | 4 years ago | CommonJS | - |
Indexability: Indexed.