Skip to content
PluginStats

vite-plugin-readable-classnames weekly downloads statistics

By teplostanski · npm · Vite plugins

Make your scoped CSS module class names clear and readable. This plugin automatically adds the module filename and other useful info to class names for easier development.

View on npm Fresh · Dec 6, 2026

vite-plugin-readable-classnames has 39,835 recorded weekly downloads on npm, an increase of 1.7% over the past 30 days, ranking #851 of 3,247 tracked listings.

Weekly downloads
39,835
Official API · Dec 5, 2026
7-day growth
+3.1%
+1.2K weekly downloads
30-day growth
+1.7%
+674 weekly downloads
90-day growth
+66.1%
+15.9K weekly downloads
Rank
#851
▼ 30 in 7 days

About vite-plugin-readable-classnames

<div align='center'> <img src="https://cdn.simpleicons.org/vite/9135FF" alt="Vite" width="24" height="24" /> <h1>vite-plugin-readable-classnames</h1> <p> <samp> <a href="https://vite-plugin-readable-classnames.js.org">docs</a> <span> · </span> <a href="https://npmx.dev/package/vite-plugin-readable-classnames">npmx.dev</a> <span> · </span> <a href="https://github.com/teplostanski/vite-plugin-readable-classnames">github</a> <span> · </span> <a href="https://thanks.teplostanski.me">fund this package</a> </samp> </p>

Open on npmx.dev Open on npmx.dev Open on npmx.dev Open on npmx.dev Open on npmx.dev Open on npmx.dev Github Tests Status Coverage

<p>Make your scoped CSS module class names clear and readable. This plugin automatically adds the module filename and other useful info to class names for easier development.</p> </div>

Installation

npm install -D vite-plugin-readable-classnames
# or
yarn add -D vite-plugin-readable-classnames
# or
pnpm add -D vite-plugin-readable-classnames
# or
bun add -d vite-plugin-readable-classnames
<br>

Documentation for Humans

vite-plugin-readable-classnames.js.org

<br>

Features

  • Framework-agnostic:

    VanillaJS React/Preact Vue ViNext Nuxt Astro

  • Universal:

    • Compatible with both CommonJS and ES Modules
    • Support Vite 2.x
  • Customizable: Flexible configuration through options object

  • Zero Dependencies

<br>

Problem

In React with CSS modules, we're used to class names like SomeComponent__classname_hash. By default, Vite generates names in the format __classname_hash, omitting the component name, which makes debugging more difficult.

If you try to add the component name through the generateScopedName: '[name]__[local]_[hash:base64:5]' configuration, React will add an extra -module suffix, and in Vue, such configuration may lead to build errors.

This plugin solves these problems and ensures predictable, readable class naming in the format ComponentName__classname_hash regardless of the framework.

[!TIP] What are generated class names and where are they visible?

When you use CSS modules, the resulting class names are automatically generated by the bundler (e.g., Vite or Webpack). These names are visible:

  • in the HTML code of the page (through browser DevTools);
  • in the final CSS file;
  • when debugging in the browser as you search for the right element or style.

Readable class names that include the component name help you quickly understand where a style comes from, making debugging and project maintenance easier.

<br>

Usage

import readableClassnames from 'vite-plugin-readable-classnames'

export default defineConfig({
  plugins: [
    readableClassnames()
  ]
})
lineNumber option

The lineNumber option adds the line number where the class is declared in the source file to the class name.

import readableClassnames from 'vite-plugin-readable-classnames'

export default defineConfig({
  plugins: [readableClassnames({ lineNumber: true })],
})

If your CSS file looks like this:

1 .wrapper {
2   /* styles */
3 }
4
5 .container {
6   /* styles */
7 }

The resulting class names will be:

  • SomeComponent__wrapper_abcd1-1
  • SomeComponent__container_abcd2-5

<br>…

Description from the npm listing.

  • vite
  • vite-plugin
  • plugin
  • css
  • scss
  • css module
  • scss module
  • class name
  • class names
  • classname
  • classnames
  • css module name
  • scss module class name

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-readable-classnames weekly downloads on npm, last 90 days: 39,835 weekly downloads as of Dec 5, 2026, +66.1% over 90 days.vite-plugin-readable-classnamesWeekly downloads on npm · Last 90 days39,835downloads / week+66.1% over 90 days15K20K25K30K35K40K45KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-readable-classnames weekly downloads on npm, last 90 days: 39,835 weekly downloads as of Dec 5, 2026, +66.1% over 90 days.

7/30/90-day growth

vite-plugin-readable-classnames weekly downloads growth on npm: +3.1% over 7 days, +1.7% over 30 days, +66.1% over 90 days.vite-plugin-readable-classnamesWeekly downloads growth on npm39,835downloads / week now7-day growth+1,184 weekly downloads+3.1%30-day growth+674 weekly downloads+1.7%90-day growth+15,853 weekly downloads+66.1%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-readable-classnames weekly downloads growth on npm: +3.1% over 7 days, +1.7% over 30 days, +66.1% over 90 days.

Ranking history

vite-plugin-readable-classnames npm ranking history: currently #851 (by weekly downloads).vite-plugin-readable-classnamesnpm ranking · by weekly downloads · Last 90 days#851current rank#760#780#800#820#840#860Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-readable-classnames npm ranking history: currently #851 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 43, #11 (overall #851)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 8, #10 (overall #150)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for vite-plugin-readable-classnames
Date (UTC)Weekly downloadsChange vs. previous
39,835+199
39,636+134
39,502+811
38,691+572
38,119-225
38,344+92
38,252-399
38,651-260
38,911-166
39,077-410
39,487-80
39,567-451
40,018+477
39,541—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-readable-classnames. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.