bundle_size
Get the minified and gzipped bundle size and dependency count for any npm package to assess its impact on frontend performance before adoption.
Instructions
Get the minified and gzipped bundle size of an npm package (via bundlephobia), plus its dependency count. npm only — bundle size has no PyPI equivalent. Use when frontend bundle weight matters.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "bundle_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name, e.g. 'express' or '@tanstack/react-query' (npm), 'requests' (PyPI) | |
| version | No | Exact version, e.g. '4.17.21'. Omit to use the latest version. |