rollup-plugin-visualizer weekly downloads statistics
By btd · npm · Vite plugins
Visualize and analyze bundle sizes and module dependencies in Rollup, Rolldown, and Vite.
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.
About rollup-plugin-visualizer
Rollup Plugin Visualizer
Visualize and analyze your bundle to quickly see which modules are taking up space.
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

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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Vite plugins plugins
All 20 rollup-plugin-visualizer alternativesData 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.