madyankin/postcss-modules
PostCSS plugin to use CSS Modules everywhere observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 91
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 3935
- days_rel: n/a
- days_push: 54
- n_releases_24m: 0
Adoption not part of the score
1623 stars · 89 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PostCSS plugin that implements CSS Modules, transforming class names into scoped hashed tokens and exporting a JSON map of the original-to-generated class names. It works anywhere PostCSS runs, including server-side rendering and Node scripts via a module customization loader.
Use cases
- use css modules in server-side rendered apps
- scope css class names to avoid collisions
- import css files in node without a bundler
- export css module class name mappings as
- compose styles across css files
- run css modules in jest or vitest node mode
When to choose
- you need CSS Modules support outside a bundler, such as SSR or Node scripts
- you want a PostCSS plugin you can wire into a custom build pipeline
- you need control over how exported class mappings are saved via getJSON
When to avoid
- you use webpack, Vite, or Rollup where built-in CSS Modules support already exists
- you want runtime-in-browser CSS processing rather than build-time transformation
Facets
plugin · maturity stable
css-framework build-tool templating web-development frontend developer-tools cross-platform css-modules postcss-plugin ssr scoped-css nodejs
1 source
- readme: https://github.com/madyankin/postcss-modules · fetched 2026-08-28 · 1e47b94667e5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| madyankin/postcss-modules | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="madyankin/postcss-modules")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem