📦

Package Size

Verified

by Community

Look up npm package bundle sizes, dependency counts, and suggest lighter alternatives for bloated packages.

npmbundlesizeperformancedevelopment

Package Size Skill

Check npm package sizes.

Bundle Size via API

curl -s "https://bundlephobia.com/api/size?package={package_name}" | python3 -c "
import json, sys
d = json.load(sys.stdin)
print(f'Package: {d["name"]}@{d["version"]}')
print(f'Size: {d["size"]/1024:.1f} KB (minified)')
print(f'Gzipped: {d["gzip"]/1024:.1f} KB')
print(f'Dependencies: {d.get("dependencyCount", "?")}') 
"

Check Installed Sizes

du -sh node_modules/* 2>/dev/null | sort -rh | head -20

Common Lighter Alternatives

  • moment → date-fns or dayjs
  • lodash → lodash-es or native
  • axios → native fetch
  • uuid → crypto.randomUUID()

Notes

  • Smaller bundles = faster page loads
  • Check if native APIs can replace the package