Skip to content
PluginStats

rollup-plugin-visualizer weekly downloads statistics

By btd · npm · Vite plugins

Visualize and analyze bundle sizes and module dependencies in Rollup, Rolldown, and Vite.

View on npm Fresh · Dec 6, 2026

rollup-plugin-visualizer has 12,685,264 recorded weekly downloads on npm, an increase of 16.2% over the past 30 days, ranking #132 of 3,247 tracked listings.

Weekly downloads
12,685,264
Official API · Dec 5, 2026
7-day growth
+11.9%
+1.3M weekly downloads
30-day growth
+16.2%
+1.8M weekly downloads
90-day growth
+46.2%
+4M weekly downloads
Rank
#132
Among tracked npm listings

About rollup-plugin-visualizer

Rollup Plugin Visualizer

Visualize and analyze your bundle to quickly see which modules are taking up space.

NPM Version Node.js CI

Sharing reports

Generate raw-data JSON to share as an attachment:

visualizer({ template: "raw-data", filename: "stats.json" });

The static report viewer lets you choose or drop that file, select a diagram, and generate a complete link. Open the result or copy it. The index does not navigate automatically.

To print a report link directly during a build:

visualizer({ output: "link", template: "treemap", open: false });

File output remains the default. Link output supports treemap, treemap-v2, sunburst, flamegraph, network, and treemap-3d. It ignores filename, rejects emitFile: true, and creates no report file or asset. open: true opens the report link. Links use the bundler's info logger, so keep info logs enabled. Markdown, list, and raw-data still use file output.

Reports are encoded in the URL fragment and processed locally. The application does not upload files or save reports in browser storage. Links contain report data, are not encrypted, and may remain in logs, history, clipboards, or wherever you share them. The viewer uses native gzip in current desktop browsers; no compression polyfill is bundled. 3D treemap requires WebGL 2.

The index generates the complete link for a supported report within its processing budgets, without a GitHub-specific cutoff. Destination sites and browsers may impose their own limits. Input JSON, decompressed binary, and reconstructed text each have a 64 MiB budget; count and depth limits also apply. Use file output if a report exceeds sharing budgets. Generate current raw-data JSON if an old file's structure is unsupported. See the sharing design for the wire contract and processing limits.

Hosting the viewer

npm run build produces the complete static application in dist/viewer/, with real template directories and relative assets. Host that directory through HTTP(S); no report backend is needed. For local verification, run npx playwright install --with-deps chromium firefox webkit, then npm run test:browser after building to check the viewer and treemap inspector.

The Pages workflow validates and deploys that directory on master updates or manual dispatch. First set Settings → Pages → Source to GitHub Actions. Deploy and verify the viewer before releasing plugin link output. Npm publication is separate. The index uses its own deployment URL; plugin links target the project's GitHub Pages address. See GitHub's custom workflow instructions for setup.

Screenshots

pic

Installation

npm install --save-dev rollup-plugin-visualizer

or via yarn:

yarn add --dev rollup-plugin-visualizer

Requirements

This package requires Node.js >= 22.

Usage

Import the plugin:

import { visualizer } from "rollup-plugin-visualizer";

Or in CommonJS:

const { visualizer } = require("rollup-plugin-visualizer");
Rollup (rollup.config.js)
import { visualizer } from "rollup-plugin-visualizer";

export default {
  plugins: [
    // Keep it last.
    visualizer(),
  ],
};
Rolldown (rolldown.config.ts)
import { defineConfig, type RolldownPlugin } from "rolldown";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig({
  plugins: [visualizer() as RolldownPlugin],
});
Vite (vite.config.js)
import { visualizer } from "rollup-plugin-visualizer";

export default {
  plugins: [visualizer()],
};
Vite + TypeScript (vite.config.ts)
import { defineConfig, type PluginOption } from "vite";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig({
  plugins: [visualizer() as PluginOption],
});
SvelteKit (vite.config.js)
import { visualizer } from "rollup-plugin-visualizer";

export default {
  plugins: [
    visualizer({
      emitFile: true,
      filename: "stats.html",
    }),
  ],
};

SvelteKit may run Vite multiple times, so you can get 2-3 generated files in .svelte-kit/output (check Vite logs for exact locations).
You can also generate raw JSON reports and merge them with the CLI.

Understanding The Report

  • Blue marks project files (including files generated by your build tool).
  • Green marks dependencies.
  • This is determined by whether a file path starts with node_modules.
  • All chart layouts refresh when the window is resized.
Sunburst

The circular view is useful for spotting large chunks of code. Clicking an arc zooms into that section and enlarges nested arcs for inspection.

Flamegraph

This is a top-down version of the sunburst view and should feel familiar if you use other JavaScript performance tooling.

Treemap

This rectangular hierarchical view makes large modules easy to find quickly. It can also reveal repeated modules, because repeated content tends to show similar structure and relative size.

Treemap v2

Select template: "treemap-v2" for a treemap with a docked dependency inspector:

visualizer({ template: "treemap-v2" });
```…

Description from the npm listing.

  • rollup-plugin
  • rolldown-plugin
  • vite-plugin
  • bundle-analyzer
  • bundle-analysis
  • bundle-size
  • dependency-graph
  • visualizer
  • network
  • treemap
  • sunburst
  • diagram

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-visualizer weekly downloads on npm, last 90 days: 12,685,264 weekly downloads as of Dec 5, 2026, +46.2% over 90 days.rollup-plugin-visualizerWeekly downloads on npm · Last 90 days12,685,264downloads / week+46.2% over 90 days4M6M8M10M12M14MSep 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-visualizer weekly downloads on npm, last 90 days: 12,685,264 weekly downloads as of Dec 5, 2026, +46.2% over 90 days.

7/30/90-day growth

rollup-plugin-visualizer weekly downloads growth on npm: +11.9% over 7 days, +16.2% over 30 days, +46.2% over 90 days.rollup-plugin-visualizerWeekly downloads growth on npm12,685,264downloads / week now7-day growth+1,346,369 weekly downlo…+11.9%30-day growth+1,772,201 weekly downlo…+16.2%90-day growth+4,010,303 weekly downlo…+46.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
rollup-plugin-visualizer weekly downloads growth on npm: +11.9% over 7 days, +16.2% over 30 days, +46.2% over 90 days.

Ranking history

rollup-plugin-visualizer npm ranking history: currently #132 (by weekly downloads).rollup-plugin-visualizernpm ranking · by weekly downloads · Last 90 days#132current rank#130#131#132#133#134#135Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 25, 2026 – Dec 6, 2026 · 12 observations · Updated Dec 5, 2026pluginstats.com
rollup-plugin-visualizer npm ranking history: currently #132 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 1, #4 (overall #4)
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 (128)
Recent weekly downloads observations for rollup-plugin-visualizer
Date (UTC)Weekly downloadsChange vs. previous
12,685,264+86.5K
12,598,802+391.6K
12,207,242+419.3K
11,787,963+124.6K
11,663,376+234.6K
11,428,774+96.3K
11,332,465-6.4K
11,338,895-24.3K
11,363,147-236K
11,599,115-268.5K
11,867,633-66.2K
11,933,872+9.7K
11,924,207-25.2K
11,949,394—

Similar npm Vite plugins plugins

All 20 rollup-plugin-visualizer 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-visualizer. First seen Nov 25, 2026; last successful collection Dec 6, 2026. See the methodology.