BiV

the bundle impact visualizer.

Install BiV

$ npm i -g @mzeng062102/biv

Paste this code snippet into your terminal and press enter.

What can BiV do?

Visualize Dependency Impact

See exactly how your dependencies affect bundle size across commits. Track changes and identify bloated packages instantly.

biv react
biv react
react@18.2.0
Bundle: 142.3 kB
Gzipped: 42.1 kB
-12% vs previous

Post-Build Reports

Automatically generate detailed reports showing size contributions after every build. Perfect for CI/CD pipelines and team reviews.

biv --local
biv --local
Total dependencies: 24
Largest: lodash (524 kB)
Report saved: biv-report.json
3 packages updated

Terminal Bundle Analysis

Quick bundle size insights right in your terminal. No context switching, no extra tools needed. Just instant feedback.

biv express
biv express
express@4.18.2
Bundle: 1.2 MB
Gzipped: 345.2 kB
Dependencies: 30
popular

Current Commands

Check local dependencies

local
biv --local
Found 24 dependencies in package.json
react@18.2.0, lodash@4.17.21, axios@1.6.0, ...

Returns the number of dependencies, their names, and versions from your package.json file.

Analyze specific package

popular
biv [package_name]
Fetching size data for react...
Bundle: 142.3 kB | Gzipped: 42.1 kB

Returns bundled and gzipped file sizes for the specified package. Includes version info and dependency count.

Get package information

info
biv info <package>
Package: react
Current version: 18.2.0
Last updated: 2024-06-14
Description: React is a JavaScript library for building user interfaces

Displays detailed information about a specific package including current version, last updated date, and description.

Show top dependencies

analysis
biv top [n]
Top 5 dependencies by size:
1. lodash: 524.0 kB
2. react: 142.3 kB
3. axios: 32.0 kB
biv top 5 --json summary.json
biv top 10 --csv report.csv
Summary file created: summary.json

Displays the top n dependencies by size. Use --json or --csv followed by a filename to export the results to a file in the current directory.

Compare commits

soon
biv --compare main..feature

Compare bundle size impact between branches or commits. Coming in v2.0

Ready to visualize your bundle?

Install BiV in one command and start analyzing your dependencies today.