Compare npm package bundle sizes

Bundle sizes 9 packages

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.
Note: Bundle size varies by package version, build configuration, tree-shaking, compression, and the specific import used. Values shown are approximate reference figures for the version listed (measured November 2026), not exact production bundle sizes: minified and gzipped sizes are for the whole package, and install size is what npm unpacks for the package alone.