Deploy Now

SaaS Alternative

GitHub Traffic Analytics

Stars

198

Forks

15

Watchers

2

Developer links

ghstats

GitHub forgets your traffic after fourteen days; ghstats remembers it for years. This self-hosted dashboard polls the GitHub API every hour and keeps views, clones, stars, forks, issues, and pull requests for every repository in its own database, long after the built-in traffic tab has rolled over. Open a repository to see its charts for stars, clones, and views next to top referrers and popular paths, filter the list by owner, name, forks, or archived status, and include private repositories when your token allows it. Public stats pages and portfolios reuse the same numbers through a JSON API, embeddable SVG badges for views, clones, and star velocity, and cards ranking your top repositories or showing star history across projects. Release download counts accumulate as daily snapshots too, so a launch spike stays visible months later. The whole service is one small Docker image on port 8080 with a single file for storage, easy to back up and easy to move. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

ghstats
ghstats
ghstats

Benefits

  • Traffic History Beyond Fourteen Days
  • GitHub deletes traffic data after two weeks, while ghstats keeps views, clones, and referrers for years so trends and launch spikes stay measurable.
  • Every Repository, One Dashboard
  • Stars, clones, views, issues, and pull requests for all your projects sit in one place, filterable by owner, name, forks, or archived status.
  • Publishable Badges And Cards
  • SVG badges and cards embed live views, clones, star velocity, and star history into READMEs, portfolios, and public stats pages.
  • Tiny Footprint, Own Data
  • One small Docker image and a single database file hold everything, with no external frontend dependencies and data that stays yours.

Features

  • Hourly GitHub Sync
  • An hourly scheduler pulls traffic, stars, forks, and release download counts from the GitHub API automatically.
  • Per-Repository Dashboards
  • Each repository page charts stars, clones, and views with top referrers and popular content paths over custom ranges.
  • JSON Stats API
  • A read-only JSON API exposes totals and per-repository metrics to personal sites and other tools.
  • SVG Badges And Cards
  • Badge and card endpoints render views, clones, stars, top repositories, and history charts for embedding anywhere.
  • Private Repo Support
  • An optional token scope includes private repositories, with installation token rotation supported for larger teams.

Apps Similar to ghstats