BundlePhobia is a tool that helps you find the cost of adding a npm package to your bundle.
Best Import Cost Alternatives ranked by AI · updated Aug 2026
β Update queued β the AI is re-ranking this list. The page will refresh shortly.
This page is already up to date.
Import Cost is an open-source editor extension that displays the size of imported JavaScript and TypeScript packages inline. It is aimed at developers reviewing dependencies during coding, with estimates for bundled and compressed imports.
Top 6 Import Cost alternatives
bundlejs is a browser-based tool for estimating the bundled size of JavaScript and npm packages. It is aimed at developers comparing dependencies,...
Pros
- Quickly compares bundled and compressed package sizes
- Shows the effect of selected imports and tree-shaking
- Runs in the browser without requiring a local project
Cons
- Less suitable than full bundle analyzers for inspecting an application build
- Results can differ from a project's exact bundler configuration
- Provides less project-level history and budget enforcement than Size Limit
Webpack Bundle Analyzer is a plugin that provides an interactive zoomable treemap of the contents of your bundle.
Pros
- Visual representation of bundle
- Identifies dependencies
Cons
- Requires integration with Webpack
- May be overwhelming for beginners
Source Map Explorer analyzes JavaScript bundles using the source maps.
Pros
- Identifies code bloat
- Visualizes dependency tree
Cons
- Focused on JavaScript bundles
- Requires source maps
Package Phobia
Package Phobia
Package Phobia measures the install and publish size of npm packages. It is for JavaScript developers assessing dependency weight, with historical package-size...
Pros
- Measures install size in addition to compressed package size
- Useful for spotting heavy dependencies before adding them
- Offers historical size data for many npm packages
Cons
- Does not model tree-shaken application bundles as closely as bundlejs
- Focuses on package and install size rather than rendered bundle impact
- Provides fewer import-level comparisons than Bundlephobia
Size Limit
Alexey Kachkaev and contributors
Size Limit is an open-source JavaScript performance tool for measuring and enforcing bundle-size budgets. It is aimed at teams and libraries that...
Pros
- Enforces size budgets in CI rather than only displaying estimates
- Can measure real project entry points and configured builds
- Supports plugins for common bundlers and use cases
Cons
- Requires local configuration and CI integration
- More setup-intensive than bundlejs's browser workflow
- Less convenient for quick package-to-package comparisons
Free, open source
How good are these alternatives?
Your feedback helps us improve the AI rankings.
β Thanks for your feedback!
Know a better alternative? π
Suggest a product and our AI will verify it's a real alternative to Import Cost before adding it to the list.