Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T21:38:35.000Z (over 5 years ago)
- Last Synced: 2024-12-22T17:42:16.809Z (about 2 months 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: 3
- 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
[![Deploy to now](https://deploy.now.sh/static/button.svg)](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`
![example label](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`
![example label](https://gh-label-svg.now.sh/label.svg?color=1976D2&text=microservice)
`https://gh-label-svg.now.sh/label.svg?color=E64A19&text=wow`
![example label](https://gh-label-svg.now.sh/label.svg?color=E64A19&text=wow)