Bundlephobia
liveDeveloperTechnologyBundle-size analysis for npm packages — minified + gzipped, tree-shakeability, dependency count. Keyless.
Tools
sizerequired: packageBundle size analysis — minified + gzipped, tree-shakeability, dependencies, esm/cjs detection.
packagereqstring—versionoptstring—recordoptboolean—Try it
similarrequired: packageReturn npm packages with similar functionality to the given package, each with their minified + gzipped bundle sizes, to aid migration or replacement decisions.
packagereqstring—versionoptstring—Try it
historyrequired: package, versionsFetch minified + gzipped bundle size for each of up to 5 specified versions of an npm package and return them side-by-side for size regression tracking.
packagereqstring—versionsreqstring—Try it
recent_searchesReturn the list of npm packages most recently measured on bundlephobia.com, showing current community interest in bundle-size analysis.
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/bundlephobia/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/bundlephobia/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"size","arguments":{"package": "example"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("size", {"package":"example"});// Or ask in plain English:
const answer = await px.ask("bundle-size analysis for npm packages — minified + gzipped, tree-shakeability, dependency count");