Every stats card I tried on my profile looked like a widget glued onto GitHub. Different fonts, random themes, borders, gradients. And the numbers were off too.
So I built github-cool-readme, with one rule: it should look like a feature GitHub shipped itself.
- GitHub's own design system: Primer colors, Octicons, the same system font GitHub uses
- Transparent, no borders, so the cards sit on the page like they belong there
- Light and dark follow the viewer's GitHub theme automatically
- The weekly card uses the contribution graph greens
- Subtle animations, plain CSS inside the SVG, nothing flashy
And the numbers are actually right this time:
- Private and org work counts. Same data as your contribution graph. (The contributions API hides private work unless the token has read:user. Took me a while to figure that one out.)
- Year and all time side by side, no mixed time ranges
- Languages weighted by your commits, not repo size. My old card said 73% of my code is C because of one big DOS game port
- Notable contributions: your merged PRs to other people's projects, by stars, scrolling in a loop
- Weekly rhythm: which days you actually work
It's a GitHub Action that runs daily (by default) and commits the cards to your profile repo. No server, your token stays in your repo secrets. Setup is one command if you have gh:
bash <(curl -fsSL https://raw.githubusercontent.com/pedrocatalao/github-cool-readme/v1/setup.sh)
Repo: https://github.com/pedrocatalao/github-cool-readme
Live on my profile: https://github.com/pedrocatalao
Not affiliated with GitHub, just trying to make it look like it could be 🙂 Feedback welcome, especially if the numbers look off for you.