Custom GitHub contribution streak card — accurate, private-repo-aware, and beautiful.
Uses the GitHub GraphQL API so it counts contributions from private repos too (unlike most streak widgets that only see public activity).
- Accurate streaks — fetches from GitHub's contribution calendar via GraphQL
- Private repo contributions — included automatically when a
GITHUB_TOKENis provided - Animated SVG — fade-in columns, pulsing glow, flickering flame
- Customizable — accent color, background, border radius
- Fast — serverless on Vercel with smart caching (1h default)
- Fork this repo
- Deploy to Vercel
- Add a
GITHUB_TOKENenvironment variable in Vercel project settings- Create one at github.com/settings/tokens with
read:userscope
- Create one at github.com/settings/tokens with
- Use your deployment URL:
https://YOUR-APP.vercel.app/api?user=YOUR_USERNAME
| Parameter | Description | Default |
|---|---|---|
user |
Required. GitHub username | — |
hide_border |
Hide the card border | false |
border_radius |
Corner radius in pixels | 6 |
accent |
Custom accent color (hex) | #a500fd |
background |
Custom background color (hex) | #0d1117 |
cache_seconds |
Cache duration (1800–86400) | 3600 |
<!-- Default -->

<!-- No border -->

<!-- Custom accent color -->
- GraphQL API fetches the contribution calendar (last ~365 days, includes private repos)
- Current streak — walks backwards from today counting consecutive days with contributions
- Longest streak — scans the full calendar for the longest consecutive run
- SVG card — renders a clean card with the purple + white theme, animated flame, and glow effects
MIT — built by @shivanshu407