Skip to content
PluginStats

rollup-plugin-stats weekly downloads statistics

By relative-ci (5 listings) · npm · Vite plugins

Vite/Rolldown/Rollup plugin to generate bundle stats JSON file

View on npm Fresh · Dec 6, 2026

rollup-plugin-stats has 421,844 recorded weekly downloads on npm, an increase of 7.5% over the past 30 days, ranking #422 of 3,247 tracked listings.

Weekly downloads
421,844
Official API · Dec 5, 2026
7-day growth
+20.4%
+71.6K weekly downloads
30-day growth
+7.5%
+29.6K weekly downloads
90-day growth
+96.3%
+207K weekly downloads
Rank
#422
▲ 9 in 7 days

About rollup-plugin-stats

rollup-plugin-stats

npm Socket Badge ci

Vite compatibility Rolldown compatibility Rollup compatibility

Vite/Rolldown/Rollup plugin to generate bundle stats JSON file

Install

npm install --dev rollup-plugin-stats

or

pnpm add --save-dev rollup-plugin-stats

or

yarn add --dev rollup-plugin-stats

Configure

Vite
// vite.config.mjs
import { defineConfig } from 'vite';
import pluginStats from 'rollup-plugin-stats';

export default defineConfig({
  // your vite config
  plugins: [
    // add it as the last plugin
    pluginStats(),
  ],
});
Rollup
// rollup.config.mjs
import { defineConfig } from 'rollup';
import pluginStats from 'rollup-plugin-stats';

export default defineConfig({
  // your rollup config
  plugins: [
    // add it as the last plugin
    pluginStats(),
  ],
});
// rollup.config.js
const { defineConfig } = require('rollup');
const pluginStats = require('rollup-plugin-stats');

module.exports = defineConfig({
  // your rollup config
  plugins: [
    // add it as the last plugin
    pluginStats(),
  ],
});
Rolldown
// rolldown.config.js
import { defineConfig } from 'rolldown';
import pluginStats from 'rollup-plugin-stats';

export default defineConfig({
  // your rolldown config
  plugins: [
    // add it as the last plugin
    pluginStats(),
  ],
});
Options
  • fileName - the JSON filepath relative to the build folder or absolute(default: stats.json)
  • write - format and write the stats to disk(default: fs.write(filename, JSON.stringify(stats, null, 2)))
  • stats
    • source - output asset/chunk/module source (default false)
    • map - output chunk map property (default: false)
    • excludeAssets - exclude matching assets: string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>
    • excludeModules - exclude matching modules: string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>

Development setup

Use the project node version
nvm use
Install dependencies
npm install
Prepare
npm run prepare

Related projects

bundle-stats

Analyze bundle stats(bundle size, assets, modules, packages) and compare the results between different builds. Support for webpack, rspack, vite, rolldown and rollup.

rollup-plugin-webpack-stats

Generate vite/rollup/rolldown stats JSON file with a bundle-stats webpack supported structure.

:cyclone: relative-ci.com
Automated bundle analysis, reviews and monitoring - Quickly identify and fix bundle regressions before shipping to production.

:rocket: Get started

Description from the npm listing.

  • vite
  • rolldown
  • rollup
  • vite-plugin
  • rolldown-plugin
  • rollup-plugin
  • bundle-stats

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

rollup-plugin-stats weekly downloads on npm, last 90 days: 421,844 weekly downloads as of Dec 5, 2026, +96.3% over 90 days.rollup-plugin-statsWeekly downloads on npm · Last 90 days421,844downloads / week+96.3% over 90 days0100K200K300K400K500KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
rollup-plugin-stats weekly downloads on npm, last 90 days: 421,844 weekly downloads as of Dec 5, 2026, +96.3% over 90 days.

7/30/90-day growth

rollup-plugin-stats weekly downloads growth on npm: +20.4% over 7 days, +7.5% over 30 days, +96.3% over 90 days.rollup-plugin-statsWeekly downloads growth on npm421,844downloads / week now7-day growth+71,579 weekly downloads+20.4%30-day growth+29,601 weekly downloads+7.5%90-day growth+206,979 weekly downloads+96.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
rollup-plugin-stats weekly downloads growth on npm: +20.4% over 7 days, +7.5% over 30 days, +96.3% over 90 days.

Ranking history

rollup-plugin-stats npm ranking history: currently #422 (by weekly downloads).rollup-plugin-statsnpm ranking · by weekly downloads · Last 90 days#422current rank#400#410#420#430#440#450#460#470Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
rollup-plugin-stats npm ranking history: currently #422 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 3, #19 (overall #59)
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 rollup-plugin-stats
Date (UTC)Weekly downloadsChange vs. previous
421,844+4.2K
417,602+35.6K
382,000+39.8K
342,194+24.8K
317,366-12.9K
330,304-16K
346,300-4K
350,265-6.7K
356,953-32.1K
389,046-32K
421,056-23.7K
444,770+2.9K
441,866-13.5K
455,376—

Similar npm Vite plugins plugins

All 20 rollup-plugin-stats alternatives

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/rollup-plugin-stats. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.