GitHub stats widget for your README
One image in your GitHub profile README with your lines over the last year, this month or this week, your streak and your top language. It links to your public page on gitstats.
Add it
Paste this into your profile README (the repo named after your login) and put your GitHub login where it says YOUR-LOGIN. Signed in, the README badge card in settings has it filled in.
What it shows
- lines this year
- Lines added in green and deleted in red over the last 365 days, or this month or this week if you pick one.
- streak
- How many days in a row you have committed.
- top language
- The main language of the repos you committed to most in that window.
GitHub's image cache serves it, so the numbers refresh about once an hour.
Private and work repos count too
Most widgets see only what GitHub publishes. Link a computer and its private and work repos are counted there, by a small open-source CLI that sends numbers only, so they show on the badge as well. How linking works.
The badge shows only what you allow everyone to see, and never a repo name. If your page is not open to everyone, it shows a plain gitstats badge with no numbers. Privacy.
Get yours
Sign in with GitHub and your badge works right away.