BundleProbe
ask your AI agent how big that npm package is before you import it
npx -y github:Isco0819/bundle-probeEver run into this?
Like bundlephobia.com (millions of monthly users, clear proven demand) but zero MCP integration exists — Cursor and Claude agents blindly install heavy deps with no size awareness. Devs only discover bloated bundles after Lighthouse fails or a prod deploy slows the app.
The fix
npx bundle-probe spins up an MCP server wrapping the free bundlephobia API — agents call check_size() before any npm install and get gzip size, minified size, tree-shaking status, and lighter swap suggestions in one shot.
What it does
- MCP tool check_size(pkg, version?) returns gzip kb, minified kb, and tree-shakeable flag sourced from bundlephobia free API
- MCP tool compare_alternatives(pkgs[]) returns a ranked size table so agents can auto-swap lodash for a 10x smaller alternative
- npx CLI mode: bundle-probe lodash date-fns prints an instant terminal size comparison table, no config or API key needed