jsdelivr_gh_badge
Generate a jsDelivr badge URL for a GitHub repository showing hits, rank, or type-rank, with configurable style and time period for README display.
Instructions
Get a badge URL for a GitHub repo 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": {
"user": "<user>",
"repo": "<repo>"
},
"name": "jsdelivr_gh_badge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repo name, e.g. 'bootstrap' | |
| type | No | Badge type. Default: hits | |
| user | Yes | GitHub username or org, e.g. 'twbs' | |
| 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 |