v0.11.0GitHub stats
beyond 14 days.
Self-hosted traffic dashboard for your repos — see stars, forks, views, and clones over 30, 60, 90 days. One binary. SQLite. No SaaS.
$ curl -fsSL https://get.gghstats.com/install.sh | sh
$ export GGHSTATS_GITHUB_TOKEN=ghp_xxx
$ gghstats run --open
curl -fsSL https://get.gghstats.com/install.sh | sh
// 01 · Self-hosted
Go binary + SQLite. Runs on your bastion, your laptop, a Raspberry Pi. No accounts, no rate limits, no third-party dashboards.
// 02 · Past 14 days
GitHub's web UI caps at 14 days. gghstats snapshots traffic and renders 30+ day trends per repo and aggregated.
// 03 · One GitHub token
Set GGHSTATS_GITHUB_TOKEN (fine-grained PAT). While the dashboard runs, gghstats syncs traffic from the GitHub API in the background.
// Quick start
Optional: generate config from the CLI instead of hand-editing env vars.
$ gghstats --print-sample-config > ./gghstats.env # adjust
$ export GGHSTATS_GITHUB_TOKEN=ghp_xxx
$ gghstats run --open
`run` is an alias for `serve`; `--open` opens the browser when the dashboard is ready. Background sync starts automatically.
Production (VPS, TLS, Compose, Traefik, Helm):gghstats-selfhosted