Skip to content
PluginStats

vite-bundle-analyzer weekly downloads statistics

By nonzzz (2 listings) · npm · Vite plugins

a modern vite bundle analyzer tool

View on npm Fresh · Dec 6, 2026

vite-bundle-analyzer has 931,514 recorded weekly downloads on npm, an increase of 21.9% over the past 30 days, ranking #301 of 3,247 tracked listings.

Weekly downloads
931,514
Official API · Dec 5, 2026
7-day growth
+16.2%
+129.8K weekly downloads
30-day growth
+21.9%
+167.3K weekly downloads
90-day growth
+44.3%
+286K weekly downloads
Rank
#301
▲ 8 in 7 days

About vite-bundle-analyzer

<p align="center"> <img src="https://socialify.git.ci/nonzzz/vite-bundle-analyzer/image?font=KoHo&language=1&logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F65625612%3Fs%3D200%26v%3D4&name=1&owner=1&pattern=Circuit%20Board&theme=Auto" alt="vite-bundle-analyzer" width="640" height="320" /> </p> <p align="center"> <a href="https://npmjs.com/package/vite-bundle-analyzer"> <img src="https://img.shields.io/npm/v/vite-bundle-analyzer.svg"> </a> <a href="https://npmjs.com/package/vite-bundle-analyzer"> <img src="https://img.shields.io/npm/dm/vite-bundle-analyzer.svg"> </a> <a href='https://github.com/sindresorhus/awesome'> <img src='https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg' alt='Awesome'> </a> </p> <p align="center"> <img src="https://cdn.jsdelivr.net/gh/nonzzz/vite-bundle-analyzer@latest/imgs/now.gif" width="640" height="320" /> </p>

Vite Bundle Analyzer

A bundle analyzer for Vite, Rollup, and Rolldown that visualizes bundle size with an interactive treemap.

[!WARNING] Vite enables minification by default. The parsed size may appear larger than actual size because bundle info from Rollup isn't compressed. Rolldown support is experimental.

Installation

npm install vite-bundle-analyzer -D
# or
yarn add vite-bundle-analyzer -D
# or
pnpm add vite-bundle-analyzer -D

Usage

Plugins only work during the build phase.

Vite
import { defineConfig } from 'vite'
import { analyzer } from 'vite-bundle-analyzer'

export default defineConfig({
  plugins: [
    analyzer()
  ]
})
Rollup
import { adapter } from 'vite-bundle-analyzer'
import { analyzer } from 'vite-bundle-analyzer'

export default {
  plugins: [
    adapter(analyzer())
  ]
}
Rolldown Plugin (Experimental)
import { unstableRolldownAdapter } from 'vite-bundle-analyzer'
import { analyzer } from 'vite-bundle-analyzer'

export default {
  plugins: [
    unstableRolldownAdapter(analyzer())
  ]
}

Configuration

OptionTypeDefaultDescription
analyzerMode'server' | 'static' | 'json' | function'server'Analysis output mode
fileNamestring | function'stats'Output filename (without extension)
reportTitlestring'Vite Bundle Analyzer'Report page title
gzipOptionsRecord<string, any>{}Gzip compression options (see zlib module)
brotliOptionsRecord<string, any>{}Brotli compression options
analyzerPortnumber | 'auto'8888Server port
openAnalyzerbooleantrueAuto-open browser (server/static mode only)
defaultSizes'stat' | 'gzip' | 'brotli''stat'Default size metric
summarybooleantrueShow summary in console
enabledbooleantrueEnable/disable plugin
includestring | RegExp | Array<string | RegExp>[]Include patterns
excludestring | RegExp | Array<string | RegExp>[]Exclude patterns
pathFormatter(path: string, defaultWd: string) => stringundefinedFormatting Paths

CLI

npx vite-bundle-analyzer

# With options
npx vite-bundle-analyzer --help

# If you're using rolldown-vite pls using the following command

npx vite-bundle-analyzer -e=rolldown-vite

Common Issues

Empty Chunk Sizes

If chunk sizes appear empty, check for plugins that break source maps (e.g., @vitejs/plugin-legacy). The analyzer relies on source maps for accurate size calculation.

Vite-based Frameworks

For frameworks built on Vite (VitePress, Remix, Qwik), use analyzerMode: 'server' for accurate results due to multiple build instances.

Static Mode Without Server

When analyzerMode: 'static' and openAnalyzer: false, no development server is created.

API Integration

import { SSE, createServer, injectHTMLTag, openBrowser, renderView } from 'vite-bundle-analyzer'

// Create custom server
const server = createServer()
server.get('/', async (c) => {
  const html = await renderView(data, { title: 'Custom Analyzer', mode: 'stat' })
  c.res.writeHead(200, { 'Content-Type': 'text/html' })
  c.res.write(html)
  c.res.end()
})
server.listen(3000)

Debug

# Vite
vite build --debug

# Environment variable
ANALYZE_DEBUG=true npm run build

Related

Contributors…

Description from the npm listing.

  • vite
  • rollup
  • rollup-plugin
  • vite-plugin
  • visualizer
  • treemap
  • bundle-analyzer
  • rollup-bundle-analyzer

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-bundle-analyzer weekly downloads on npm, last 90 days: 931,514 weekly downloads as of Dec 5, 2026, +44.3% over 90 days.vite-bundle-analyzerWeekly downloads on npm · Last 90 days931,514downloads / week+44.3% over 90 days0200K400K600K800K1MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-bundle-analyzer weekly downloads on npm, last 90 days: 931,514 weekly downloads as of Dec 5, 2026, +44.3% over 90 days.

7/30/90-day growth

vite-bundle-analyzer weekly downloads growth on npm: +16.2% over 7 days, +21.9% over 30 days, +44.3% over 90 days.vite-bundle-analyzerWeekly downloads growth on npm931,514downloads / week now7-day growth+129,842 weekly downloads+16.2%30-day growth+167,335 weekly downloads+21.9%90-day growth+285,964 weekly downloads+44.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-bundle-analyzer weekly downloads growth on npm: +16.2% over 7 days, +21.9% over 30 days, +44.3% over 90 days.

Ranking history

vite-bundle-analyzer npm ranking history: currently #301 (by weekly downloads).vite-bundle-analyzernpm ranking · by weekly downloads · Last 90 days#301current rank#290#295#300#305#310#315Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-bundle-analyzer npm ranking history: currently #301 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 16, #1 (overall #301)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 3, #1 (overall #41)
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-bundle-analyzer
Date (UTC)Weekly downloadsChange vs. previous
931,514+12.5K
919,033+49.5K
869,534+64.6K
804,955+13.7K
791,241-2.3K
793,557-7.8K
801,326-346
801,672+1K
800,671-34.7K
835,333-45.1K
880,421-20.7K
901,078+6.9K
894,205+14.4K
879,853—

Similar npm Vite plugins plugins

All 20 vite-bundle-analyzer 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/vite-bundle-analyzer. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.