Packagephobia Size
packagephobia_sizeReturn the publish size and full install size (including dependencies) in bytes for an npm package name and optional version via packagephobia.com.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package": "react"
},
"name": "packagephobia_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | npm package name (scoped allowed) | |
| version | No | Specific version (default latest) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | npm package name | |
| version | No | Package version | |
| installSize | No | Install size in bytes | |
| publishSize | No | Publish size in bytes |