What is a GitHub coding streak?
A GitHub coding streak is the number of consecutive days you have made at least one public contribution - a commit, pull request, issue, or code review - without missing a day. Your current streak counts back from today (or yesterday, if you haven't pushed yet). Your longest streak is the biggest unbroken run in your contribution history.
How does this calculator count my streak?
We pull your last 365 days of public contribution data from GitHub's public contributions API and count consecutive days that have at least one contribution. The current streak is the run that ends today or yesterday. The longest streak is the biggest run anywhere in the year. Private contributions are only included if you have enabled showing them on your GitHub profile.
Why is my current streak zero?
Your current streak resets to zero if you haven't made a public contribution today or yesterday. GitHub allows a one-day grace period, so if your last contribution was two or more days ago, the streak is broken. Push a commit to a public repo to start a new run.
Do private commits count toward my streak?
Only if you have enabled the "Include private contributions on my profile" setting in your GitHub profile preferences. Otherwise, this calculator (and GitHub itself) only sees public activity. The contribution count and streak will reflect only what is visible on your public profile.
Can I share my streak as an image or in my README?
Yes. After running the calculator, click "Download PNG" to grab a 1200x630 social-share image you can post on Twitter or LinkedIn, or use the "Copy README markdown" button to drop a live streak badge into your GitHub profile README.