logoalt Hacker News

Show HN: gh-stats – one self-hostable SVG card for a GitHub profile README

15 points • by s_manor • today at 1:05 PM • 6 comments • view on HN

Comments

j_leboulanger • today at 1:59 PM

Generate failed http 502

indigodaddy • today at 1:49 PM

Generate failed http 502

➕ show 1 reply
s_manor • today at 1:05 PM

I built this after anuraghazra's github-readme-stats public instance kept returning 429s for me; that repo is now marked unmaintained. gh-stats puts the profile on one card: a score out of 100, contribution timeline, top collaborators by shared commits, language split by bytes authored, and commit streaks. One line of markdown, no signup.

It is three small Flask services: a fetcher that owns the GitHub token and polls on a schedule, a generator that renders SVGs ahead of time, and a cache-first edge. Card requests are served from pre-rendered SVGs and don't hit the GitHub API, which is what made the old shared instance rate-limit.

One thing I learned the hard way: GitHub shows README images through <img>, where SVG animations freeze on their first frame, not their final state. My animated score ring was invisible on every profile while every local rasterizer showed it fine.

MIT, self-hostable with docker compose: https://github.com/ShayManor/github-readme-stats

mhovd • today at 2:03 PM

Does anyone find these cards actually useful? The letter grade has absolutely no meaning to me, and as far as I can see there is now way to see how it was assigned.

Discriminating developers by the presence of such a card is more meaningful than the contents on it.

➕ show 1 reply
InsidiousWombat • today at 1:55 PM

And yet another Goodhart's law propagation device ;)

Dashdirect769 • today at 2:03 PM

[dead]