Universal Badge Service is a stateless Node.js microservice that generates SVG badges using the GitHub REST API.
Telemetry and velocity metrics:
starsforksissuesprscontributorscommitslast-commitrelease
Visual configuration:
label: override the default badge labelcolor: hex color for the right-side segment (without#)style:flat,flat-square,plastic,for-the-badge
- Uses
node:httpto minimize overhead and avoid heavy frameworks. - In-memory TTL cache reduces GitHub API requests and mitigates rate limiting.
- Strict TypeScript configuration enforced via the repository tsconfig.json.
URI pattern:
/{owner}/{repo}/{type}
Query schema:
label(string)color(hex)style(enum)
Environment variables:
GITHUB_TOKEN: optional GitHub token to increase rate limits.
Docker build:
docker build -t universal-badge-service .Docker run:
docker run --rm -p 3000:3000 -e GITHUB_TOKEN=... universal-badge-service- Open an issue before proposing architectural changes.
- Code must comply with the existing
tsconfig.jsonand repository patterns.
Licensed under the MIT License. See LICENSE.