Skip to content

High-performance telemetry visualization service providing configurable SVG badges for GitHub repository metrics, project velocity, and release metadata.

License

Notifications You must be signed in to change notification settings

TurboRx/Universal-Badge-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Badge Service

Table of Contents

Overview

Universal Badge Service is a stateless Node.js microservice that generates SVG badges using the GitHub REST API.

Options

Telemetry and velocity metrics:

  • stars
  • forks
  • issues
  • prs
  • contributors
  • commits
  • last-commit
  • release

Visual configuration:

  • label: override the default badge label
  • color: hex color for the right-side segment (without #)
  • style: flat, flat-square, plastic, for-the-badge

Architecture

  • Uses node:http to 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.

API Specification

URI pattern:

  • /{owner}/{repo}/{type}

Query schema:

  • label (string)
  • color (hex)
  • style (enum)

Configuration

Environment variables:

  • GITHUB_TOKEN: optional GitHub token to increase rate limits.

Deployment

Docker build:

docker build -t universal-badge-service .

Docker run:

docker run --rm -p 3000:3000 -e GITHUB_TOKEN=... universal-badge-service

Contributing

  • Open an issue before proposing architectural changes.
  • Code must comply with the existing tsconfig.json and repository patterns.

License

Licensed under the MIT License. See LICENSE.

About

High-performance telemetry visualization service providing configurable SVG badges for GitHub repository metrics, project velocity, and release metadata.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •