stars
Star-count badge for a GitHub repository.
Examples
Every image below is rendered live by this worker.
/github/stars.svg?repo=hdprajwal/gh-widgets
/github/stars.svg?repo=cloudflare/workerd&logo=github
/github/stars.svg?repo=openai/codex&mode=light
Builder
Edit the fields. The previews and the snippet update as you type.
README snippet, auto dark/light
API
Each widget is one endpoint, and every option is a query parameter. Responses are SVG images, cached on Cloudflare's edge, and usable from any site.
GET /github/stars.svg
| repo | owner/name | The GitHub repository. Required. |
| icon | none | Set to none to hide the star icon. |
| label | string | Text after the star icon. Default none. |
| mode | dark | light | Color theme. Default dark. |
| color | hex | Count color, without #. Default star yellow. |
| labelColor | hex | Label color, without #. |
| logo | slug | simple-icons slug, drawn before the label. |
| logoColor | hex | Logo fill color, without #. Default 848484. |
| bg | hex | Background color override, without #. |