</>PackageGraphPackageGraph

lightningcss

npmv1.33.0TypeScript

A 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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

528 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

Apache-2.0

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.

Dev (35)

@babel/parser 7.21.4@babel/traverse 7.21.4@codemirror/lang-css ^6.0.1@codemirror/lang-javascript ^6.1.2@codemirror/lint ^6.1.0@codemirror/theme-one-dark ^6.1.0@mdn/browser-compat-data ~8.0.7@napi-rs/cli ^2.14.0autoprefixer ^10.5.4caniuse-lite ^1.0.30001806codemirror ^6.0.1cssnano ^7.0.6esbuild ^0.19.8flowgen ^1.21.0jest-diff ^27.4.2json-schema-to-typescript ^11.0.2markdown-it-anchor ^8.6.6markdown-it-prism ^2.3.0markdown-it-table-of-contents ^0.6.0napi-wasm ^1.0.1node-fetch ^3.1.0parcel ^2.8.2patch-package ^6.5.0path-browserify ^1.0.1postcss ^8.3.11posthtml-include ^1.7.4posthtml-markdownit ^1.3.1posthtml-prism ^1.0.4process ^0.11.10puppeteer ^12.0.1recast ^0.22.0sharp ^0.33.5typescript ^5.7.2util ^0.12.4uvu ^0.5.6

Used by

Popular packages that depend on lightningcss.

Relationship graph

Dependencies (left) and dependents (right) of lightningcss.

Frequently installed together

Release history

11 releases in the last two years, typically about 45 days apart.

Recent versions of lightningcss
VersionPublishedSizeLicense
1.33.0latest1 month ago502 KBMPL-2.0
1.32.06 months ago499 KBMPL-2.0
1.31.17 months ago496 KBMPL-2.0
1.31.07 months ago496 KBMPL-2.0
1.30.211 months ago489 KBMPL-2.0
1.30.11 year ago489 KBMPL-2.0
1.30.01 year ago489 KBMPL-2.0
1.29.31 year ago488 KBMPL-2.0
1.29.21 year ago488 KBMPL-2.0
1.29.11 year ago488 KBMPL-2.0
1.29.01 year ago488 KBMPL-2.0
1.28.21 year ago481 KBMPL-2.0
1.28.11 year ago481 KBMPL-2.0
1.28.01 year ago481 KBMPL-2.0
1.27.02 years ago480 KBMPL-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.