license
License badge for a GitHub repository.
Examples
Every image below is rendered live by this worker.
/github/license.svg?repo=hdprajwal/gh-widgets
/github/license.svg?repo=facebook/react
/github/license.svg?repo=cloudflare/workerd&mode=light&label=license
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/license.svg
| repo | owner/name | The GitHub repository. Required. |
| icon | none | Set to none to hide the law icon. |
| label | string | Text after the icon. Default none. |
| mode | dark | light | Color theme. Default dark. |
| color | hex | License color, without #. Default purple. |
| labelColor | hex | Label color, without #. |
| logo | slug | simple-icons slug, replaces the law icon. |
| logoColor | hex | Logo fill color, without #. Default 848484. |
| bg | hex | Background color override, without #. |