Get npm bundle size
get_bundle_sizeMeasure an npm package version's browser bundle size via Bundlephobia, including minified and gzipped bytes, dependency count, tree-shaking indicators, and largest dependencies.
Instructions
Get the browser bundle size of an npm package version via Bundlephobia: minified size, minified+gzipped size, dependency count, tree-shaking indicators (ES module entry, side effects) and the largest dependencies. If no version is given the latest published version is measured. Not meaningful for Node-only or native packages.
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": {
"package_name": "<package_name>"
},
"name": "get_bundle_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Exact version to measure, e.g. "18.2.0". Defaults to the latest published version. | |
| package_name | Yes | npm package name, e.g. "react" or "@mui/material". |