lightningcss
npmv1.33.0TypeScriptA CSS parser, transformer, and minifier written in Rust
Safe to adopt
Yes — lightningcss scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 52 days ago. 15 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 52 days ago. 15 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 528 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MPL-2.0 — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding lightningcss to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing lightningcss, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 12.0.0
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Dependencies
Declared by lightningcss v1.33.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (35)
Used by
Popular packages that depend on lightningcss.
Native-ESM powered web dev build tool
A utility-first CSS framework for rapidly building custom user interfaces.
Minimizer plugin for webpack
A Metro config for running React Native projects with the Metro bundler
Relationship graph
Dependencies (left) and dependents (right) of lightningcss.
Frequently installed together
A pure JavaScript implementation of Sass.
Tool for transforming styles with JS plugins
Trace the original position through a source map
The Expo SDK
Remap sequential sourcemaps through transformations to point at the original source code
An extremely fast JavaScript and CSS bundler and minifier.
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
TypeScript definitions for node
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Vite DevTools
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset
Generate source maps
Release history
11 releases in the last two years, typically about 45 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.33.0latest | 1 month ago | 502 KB | MPL-2.0 |
| 1.32.0 | 6 months ago | 499 KB | MPL-2.0 |
| 1.31.1 | 7 months ago | 496 KB | MPL-2.0 |
| 1.31.0 | 7 months ago | 496 KB | MPL-2.0 |
| 1.30.2 | 11 months ago | 489 KB | MPL-2.0 |
| 1.30.1 | 1 year ago | 489 KB | MPL-2.0 |
| 1.30.0 | 1 year ago | 489 KB | MPL-2.0 |
| 1.29.3 | 1 year ago | 488 KB | MPL-2.0 |
| 1.29.2 | 1 year ago | 488 KB | MPL-2.0 |
| 1.29.1 | 1 year ago | 488 KB | MPL-2.0 |
| 1.29.0 | 1 year ago | 488 KB | MPL-2.0 |
| 1.28.2 | 1 year ago | 481 KB | MPL-2.0 |
| 1.28.1 | 1 year ago | 481 KB | MPL-2.0 |
| 1.28.0 | 1 year ago | 481 KB | MPL-2.0 |
| 1.27.0 | 2 years ago | 480 KB | MPL-2.0 |
Overview
lightningcss is an npm package that a CSS parser, transformer, and minifier written in Rust. It has 4 known dependents in the graph. The latest version is 1.33.0, released under the MPL-2.0 license.
Who should use it
Teams working in the npm ecosystem who need a CSS parser, transformer, and minifier written in Rust and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MPL-2.0).
Cons
- Large dependency tree (47 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use lightningcss?
Yes — lightningcss scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 52 days ago. 15 releases in the last 2 years.
How do I install lightningcss?
Run `npm install lightningcss` to add lightningcss to your npm project.
How many dependencies does lightningcss have?
lightningcss declares 47 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 528 KB on disk.
What license is lightningcss released under?
lightningcss is distributed under the MPL-2.0 license.
How popular is lightningcss?
npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on lightningcss.
Is lightningcss still maintained?
The most recent release of lightningcss (v1.33.0) was published 1 month ago.
Does lightningcss run install scripts?
No. lightningcss does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.