Embeddable SVG or PNG cards listing total contributions, current streak, and longest streak on a GitHub profile.
Overview
GitHub Readme Streak Stats produces embeddable cards that summarize GitHub contribution activity. Each card can show total contributions, the current daily or weekly streak, and the longest streak, with customizable themes, colors, locales, and layout.
The fastest approach is a hosted image URL in profile markdown using a user query parameter. A demo offers live preview and tuning before you copy markdown, HTML, or workflow snippets.
GitHub Actions can build a static SVG in the profile repository so the profile no longer relies on a public endpoint. Counting private contributions requires a personal access token stored as a repository secret in the workflow.
You may host the PHP application yourself for greater uptime and control, with deployment guidance for Vercel and Heroku. Responses can be SVG, PNG, or JSON depending on URL parameters.
Streak calculation uses the public contribution graph: consecutive days with at least one qualifying contribution form a streak, with options to exclude certain weekdays, set time zones, and hide individual metrics.
Key features
- Total and streak statistics
- SVG, PNG, and JSON output
- Themes and color customization
- Multiple locale translations
- GitHub Actions workflow
- Self-hosted PHP deployment
- Daily and weekly streak modes
- Private contributions via token
Use cases
- GitHub profile README badges
- Motivation on public profiles
- Self-hosted streak endpoint
- Workflow-generated profile SVG