https://github.com/rtsao/gh-label-svg
🏷 A microservice for SVG GitHub label images
https://github.com/rtsao/gh-label-svg
github github-labels microservice
Last synced: 12 months ago
JSON representation
🏷 A microservice for SVG GitHub label images
- Host: GitHub
- URL: https://github.com/rtsao/gh-label-svg
- Owner: rtsao
- Created: 2017-10-09T01:20:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T21:38:35.000Z (almost 7 years ago)
- Last Synced: 2025-04-19T11:14:54.169Z (about 1 year ago)
- Topics: github, github-labels, microservice
- Language: JavaScript
- Homepage: https://gh-label-svg.now.sh/label.svg?color=1976D2&text=microservice
- Size: 9.77 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-label-svg
A microservice for SVG GitHub label images
[](https://deploy.now.sh/?repo=https://github.com/rtsao/gh-label-svg)
## Why?
I wanted to embed GitHub labels into GitHub markdown previews, but arbitrary HTML/CSS isn't supported. This service renders equivalent labels via pure SVG, which can be embedded into GitHub-flavored markdown as images.
## Examples
`https://gh-label-svg.now.sh/label.svg?color=5E35B1&text=super%20cool`

`https://gh-label-svg.now.sh/label.svg?color=1976D2&text=microservice`

`https://gh-label-svg.now.sh/label.svg?color=E64A19&text=wow`
