Repository navigation
Releases
v0.1.0 - self-hosting
gh-stats can now be run on your own hardware.
Previously the repo shipped three Dockerfiles but nothing that ran them
together, and the only compose file was bound to the production box: it pulled
private images and hard-failed on seven environment variables, including OAuth
credentials that are not needed to render a card.
Self-hosting
git clone https://github.com/ShayManor/github-readme-stats
cd github-readme-stats
cp .env.example .env # put your GitHub token in GITHUB_PAT
docker compose up -d --buildThen open http://localhost:5002 and embed from your own host:
Only two settings are required: GITHUB_PAT, which exists to raise your GitHub
API rate limit and needs no scopes for public data, and
FETCHER_INTERNAL_TOKEN, any random string the services use to talk to each
other. Data lives in ./data.
Three services come up: fetcher talks to GitHub and owns the token,
generator renders the SVGs and serves the web UI on 5002, and edge is a
caching proxy on 5003 that serves cards at /<username>.
Verified from a clean clone: all three images build, all five containers start,
the web UI and /api/health respond, and edge answers with upstream_ok.
The hosted instance at https://gh-stats.com is unchanged and still free.
Full changelog: v0.0...v0.1.0
Initial Widget Generation
Full Changelog: https://github.com/ShayManor/github-readme-stats/commits/v0.0
Initial widget generatiod created and implemented with relevant features.