all widgets

license

License badge for a GitHub repository.

Examples

Every image below is rendered live by this worker.

license badge for this repo
/github/license.svg?repo=hdprajwal/gh-widgets
MIT license badge
/github/license.svg?repo=facebook/react
light mode license badge with label
/github/license.svg?repo=cloudflare/workerd&mode=light&label=license

Builder

Edit the fields. The previews and the snippet update as you type.

dark preview light preview
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 #.