Npm Package Bundle Size Reference
Explore the approximate sizes of popular npm packages using this searchable reference. Find packages by name or category, compare their reported sizes, and understand their typical use cases when choosing dependencies for JavaScript projects.
Compare npm package bundle sizes
Bundle sizes
| Package | Minified | Gzipped | Install size | Use case |
|---|---|---|---|---|
| lodash 4.18.1 · Utility | ~70 KB | ~25 KB | ~1.3 MB | Utility functions for arrays, objects, strings, and collections. |
| axios 1.21.0 · HTTP & API | ~57 KB | ~21 KB | ~2.1 MB | HTTP requests and API communication. |
| dayjs 1.11.23 · Date & time | ~7 KB | ~3 KB | ~666 KB | Date parsing, formatting, manipulation, and comparison. |
| moment 2.31.0 · Date & time | ~61 KB | ~20 KB | ~4.3 MB | Date and time manipulation with extensive locale support. |
| react 19.3.1 · UI | ~8 KB | ~3 KB | ~175 KB | Building component-based user interfaces. |
| react-dom 19.3.1 · UI | ~210 KB | ~65 KB | ~7.7 MB | React DOM rendering and browser integration (sizes for react-dom/client). |
| zustand 5.0.16 · State management | ~0.8 KB | ~0.5 KB | ~94 KB | Lightweight state management for React applications. |
| zod 4.6.7 · Validation | ~377 KB | ~87 KB | ~5.9 MB | TypeScript-first schema declaration and validation. |
| prettier 3.9.10 · Formatting | ~79 KB | ~26 KB | ~9.5 MB | Opinionated code formatting during development; not shipped to browsers. |
What Is an NPM Package Bundle Size Reference?
An NPM Package Bundle Size Reference is a directory of npm packages and their approximate sizes. It helps developers evaluate JavaScript dependencies before adding them to a project, particularly when performance, download time, and application loading speed matter.
Package size can refer to different measurements, including minified size, minified and gzipped size, or total unpacked package size. These measurements are not interchangeable, and the actual impact on a production application depends on the package version, imported features, tree-shaking, and build configuration.
How to Use the NPM Package Bundle Size Reference
Search for Packages: Enter a package name or category in the search field to find relevant npm packages.
Filter by Category: Choose a category, such as Utility, Date & Time, UI, or Validation, to narrow the results.
Review Approximate Size: Check the displayed size and its measurement, such as minified, gzipped, or unpacked.
Compare Use Cases: Read each package's description to understand its purpose and whether it fits your project requirements.
Copy the Package List: Click Copy Package List to copy the listed package information for reference.
Example: Comparing NPM Package Sizes
The reference includes popular packages used in JavaScript and React projects.
lodash — Utility: Approximately 24 KB minified. Provides functions for working with arrays, objects, strings, and collections.
axios — HTTP & API: Approximately 14 KB minified. Handles HTTP requests and API communication.
dayjs — Date & Time: Approximately 7 KB minified. Supports date parsing, formatting, manipulation, and comparison.
moment — Date & Time: Approximately 67 KB minified. Offers date and time manipulation with extensive locale support.
react — UI: Approximately 7 KB minified. Provides core functionality for building component-based user interfaces.
react-dom — UI: Approximately 130 KB unpacked. Handles React rendering and browser integration.
zustand — State Management: Approximately 1 KB minified and gzipped. Provides lightweight state management for React applications.
zod — Validation: Approximately 14 KB minified. Supports schema declaration and data validation.
prettier — Formatting: Approximately 3 MB unpacked. Formats code consistently during development.
These values are approximate reference figures, not exact production bundle sizes. For a meaningful comparison, check the same size metric for each package and consider how much code your application actually imports.