Bundlephobia
liveDeveloperTechnologyBundle-size analysis for npm packages — minified + gzipped, tree-shakeability, dependency count. Keyless.
Tools
bundlephobia_sizeBundle size analysis — minified + gzipped, tree-shakeability, dependencies, esm/cjs detection.
No parameters required.
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
bundlephobia_historyFetch 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.
No parameters required.
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":"bundlephobia_size","arguments":{}}}'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("bundlephobia_size", {});// Or ask in plain English:
const answer = await px.ask("bundle-size analysis for npm packages — minified + gzipped, tree-shakeability, dependency count");