Overview
GitHub Star Tracker generates animated SVG charts that visualize your star history over time. Charts support both light and dark color schemes using CSS@media (prefers-color-scheme: dark) queries.
Chart Types
Star History Chart
Displays the total star count across all tracked repositories over time.- Smooth curved lines using cubic Bézier splines
- Animated line drawing with staggered point appearance
- Milestone markers at key star thresholds (1k, 5k, 10k, etc.)
- Automatic axis scaling with nice step values
Per-Repository Chart
Visualize star growth for individual repositories.Comparison Chart
Compare star growth across multiple repositories.- Up to 10 repositories per chart (see
src/presentation/constants.ts:54) - Distinct colors for each repository (10 color palette)
- Smart label shortening when all repos share the same owner
- Interactive legend showing all tracked repositories
Forecast Chart
Visualize predicted star growth using multiple forecasting methods.- Historical data shown as solid line with fill
- Forecast projections shown as dashed lines
- Multiple forecast methods displayed simultaneously
- Seamless connection from historical to predicted data
Chart Configuration
Charts are configured via constants insrc/presentation/constants.ts:50:
Dark Mode Support
All charts automatically adapt to the user’s color scheme preference:src/presentation/constants.ts:3.
Animation
Charts feature smooth CSS animations (seesrc/presentation/svg-chart.ts:278):
- Line drawing: 2-second animation using
stroke-dasharraytechnique - Point fade-in: 0.5-second fade with 0.05s stagger between points
- Point delay: 1.5s delay to start after line animation
Data Format
Charts expect history data in this format:Best Practices
Data Points
Charts display up to 30 data points maximum to prevent overcrowding
Null Handling
Supports null values in data, creating gaps with multiple segments
Axis Scaling
Automatic nice axis steps using magnitude-based rounding algorithm
Performance
Smooth path generation uses tension of 0.4 for optimal curves
Related
- Forecasting - Star growth predictions
- Reports - Export formats including chart URLs
- Stargazer Tracking - Track individual stargazers