Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fbuireu/github-star-tracker/llms.txt
Use this file to discover all available pages before exploring further.
Overview
GitHub Star Tracker generates SVG badges that display your total star count across all tracked repositories. These badges can be embedded in README files, documentation, or anywhere SVG images are supported.Generating a Badge
Badges are generated using thegenerateBadge function from src/presentation/badge.ts:
Badge Design
Badges follow a two-section design:Label Section
Left section with muted background displaying “Total Stars” (localized)
Value Section
Right section with accent color showing ★ symbol and formatted count
Configuration
Badge dimensions are configured insrc/presentation/constants.ts:57:
Dynamic Width Calculation
Badge width is calculated dynamically based on text content (seesrc/presentation/badge.ts:14):
Badge Structure
The generated SVG includes:- Gradient overlay - Subtle gradient for depth effect
- Background rectangles - Separate sections for label and value
- Text with shadow - Dual text elements for drop shadow effect
- Accessibility - Proper
roleandaria-labelattributes
Example Output
Color Scheme
Badges use colors from the light palette (seesrc/presentation/constants.ts:3):
Badges do not currently support dark mode as they are typically displayed on platforms with fixed backgrounds (like GitHub).
Number Formatting
The star count is formatted usingformatCount() which provides human-readable numbers:
1234→1.2k5678901→5.7M123→123
Embedding Badges
Markdown
HTML
Inline in Documentation
Localization
The badge label is automatically localized based on the provided locale:src/i18n/translations/.
Best Practices
Caching
Cache badge generation results to avoid regenerating identical badges
File Size
Badges are typically 1-2KB, making them lightweight for embedding
Accessibility
Always include alt text when embedding badges in documentation
Updates
Regenerate badges whenever star counts change for accurate display
Related
- Charts - More detailed visualizations
- Reports - Comprehensive star tracking reports
- Formatting - Number formatting utilities