jsdelivr_npm_badge
Generate a jsDelivr badge URL for an npm package to show hits, rank, or type-rank stats with selectable style and period.
Instructions
Get a badge URL for an npm package on jsDelivr (hits, rank, or type-rank).
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": "<package>"
},
"name": "jsdelivr_npm_badge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Badge type. Default: hits | |
| style | No | Badge style. Default: square | |
| period | No | Time period: floating (day|week|month|quarter|year), static (s-month|s-quarter|s-year), or date (YYYY-MM|YYYY-Qq|YYYY). Default: month | |
| package | Yes | npm package name, e.g. 'jquery' or '@popperjs/core' |