Your bundles are bloated.

That one lodash import just added 72KB to your production build. BundlePhobia catches oversized dependencies, duplicate packages, and tree-shaking failures before your users pay the price.

$ clawhub install bundlephobia click to copy
$ bundlephobia scan
📦 BundlePhobia v1.0.0
 
Scanning 23 files...
 
  src/utils/date.ts:3
    ✗ [OD-001] moment.js detected — 290KB minified
    → Use date-fns (7KB) or dayjs (2KB) instead
 
  src/index.ts:1
    ✗ [TS-003] import * as _ from 'lodash' — prevents tree-shaking
    → Use named imports: import { debounce } from 'lodash-es'
 
  package.json
    ✗ [DD-002] Both axios and node-fetch installed
    → Pick one HTTP client, remove the other
 
  webpack.config.js
    ✗ [BC-001] No splitChunks configuration
    → Add optimization.splitChunks for code splitting
 
  ───────────────────────────────────────
  Score: 42/100 (Grade: F)  |  4 critical  2 high  3 medium

The average npm install pulls in 1,300+ transitive dependencies.

Bloated bundles kill load times, drain mobile batteries, and tank your Lighthouse score. Every unnecessary kilobyte is a user who bounced. BundlePhobia scans your entire dependency tree, flags the worst offenders, and tells you exactly how to fix them.

90+
Detection patterns
5
Categories
JS/TS
Focused analysis
100%
Local — no upload

Everything you need to ship lighter bundles

🚨

Oversized Dep Detection

Flags known heavyweight packages like moment.js, lodash, and faker. Suggests modern, lightweight alternatives with exact size comparisons so you can swap without guessing.

📋

Duplicate Package Finder

Detects when you've installed overlapping packages that do the same thing — like axios alongside node-fetch, or date-fns alongside dayjs. Pick one, drop the rest.

🌳

Tree-Shaking Analysis

Catches namespace imports, barrel file re-exports, and CommonJS requires that prevent bundlers from eliminating dead code. Ensures every import is tree-shakeable.

⚙️

Bundle Config Audit

Reviews your webpack, Vite, Rollup, and esbuild configs for missing optimizations. Flags absent code splitting, missing minification, and suboptimal chunk strategies.

🪝

Pre-Commit Hooks

Block bundle-bloating imports before they land in main. Integrates with Lefthook to scan every commit and reject changes that push your bundle over budget.

📏

Size Budget Enforcement

Set hard byte limits per entry point, chunk, or total bundle. Fail builds that exceed your budget. Keep your team honest and your bundles lean across every release.

How BundlePhobia compares

Feature bundlesize size-limit webpack-bundle-analyzer depcheck bundlephobia.com BundlePhobia CLI
Oversized dep detection (visual only) (per-package) Full project scan
Duplicate package finder (partial) Cross-category
Tree-shaking analysis Import-level
Bundle config audit webpack/Vite/Rollup
Size budgets Per-entry & total
Pre-commit hooks
SARIF / CI output
Offline / local (web only)

Simple, transparent pricing

Start scanning for free. Upgrade when your bundles demand it.

Free
$0
  • 5 files per scan
  • All 90+ detection patterns
  • Single project scanning
  • Community support
Install Free
Team
$39/mo
  • Everything in Pro
  • Size budget enforcement
  • SARIF output
  • CI integration
  • Bundle policy config
  • Priority support

Get notified about updates

No spam. One email per week max. Unsubscribe anytime.

Every kilobyte your users download is a choice you made

Install BundlePhobia in 30 seconds. Find every oversized dependency, duplicate package, and tree-shaking failure in your project.

$ clawhub install bundlephobia click to copy