ghstats

Self-hosted dashboard for tracking GitHub repository traffic

188 stars 9 forks last commit first released MIT

Actively maintained

Last commit 25 Aug 2026.

ghstats is a lightweight, self-hosted dashboard written in Rust that collects GitHub repository traffic metrics and stores historical data beyond GitHub's default 14-day retention. It runs as a single small container and persists metrics in a local SQLite database for per-repo dashboards and simple API access.

Key Features

  • Periodic collection of GitHub traffic metrics (views, uniques, clones) and daily aggregation stored in SQLite
  • Per-repository listing and simple dashboard with historical metrics
  • Minimal single-container deployment with a small Docker image and optional Docker Compose configuration
  • Environment-driven configuration: GitHub token, host/port, filters, custom header links, and API token
  • Flexible repo filtering (include/exclude rules, wildcards, meta rules like !fork and !archived)
  • Hourly synchronization scheduler and immediate initial sync when database is empty
  • Simple JSON API endpoint (/api/repos) protected by an API token for programmatic access
  • Option to include private repos when using a token with appropriate scopes

Use Cases

  • Preserve and analyze GitHub repository traffic history beyond the platform's 14-day view window
  • Build lightweight public or internal dashboards showing repository popularity and trends
  • Export or integrate basic repo traffic metrics via the built-in JSON API for reporting or automation

Limitations and Considerations

  • Dependent on GitHub API rate limits and token scopes; private repo collection requires broader token permissions
  • Uses SQLite and a single-container design, which limits horizontal scalability for very large numbers of repositories
  • Data granularity is daily; current-day data is updated by re-fetching but there is no finer time-series resolution
  • API surface is minimal (primarily a consolidated /api/repos endpoint) compared to full analytics platforms

ghstats is suitable when you need a simple, low-dependency way to retain and inspect GitHub traffic history. It favors minimal operational complexity over advanced analytics or large-scale multi-node deployments.

Categories:

Tags:

Tech Stack:

Share:

Similar to ghstats

Redash logo

Redash

Query, visualize, and share data from multiple data sources

28.8k
4.6k
Last commit

Open source BI tool to connect to many data sources, run SQL/NoSQL queries, build visualizations and dashboards, share insights, and set alerts and scheduled refreshes.

BSD-2-ClauseActively maintained
Alternative to:
Redash logo
Redash
+19

Cially

Discord server analytics dashboard with real-time insights

216
14
Last commit

Open-source Discord analytics dashboard with a Next.js web UI, Pocketbase backend, and a bot that collects real-time server activity, message analytics, growth and engagement metrics.

Actively maintained
Alternative to:
Countly logo
Countly
+17
ToolJet logo

ToolJet

Low-code platform for building internal apps, dashboards, and workflows

40.8k
5.4k
Last commit

ToolJet is an open-source low-code platform to build and deploy internal tools, dashboards, and workflows with integrations for databases, APIs, and SaaS apps.

AGPL-3.0Actively maintained
Alternative to:
Retool logo
Retool
+19
Maloja logo

Maloja

Self-hosted music scrobble server for personal listening statistics

1.8k
95
Last commit

Maloja is a self-hosted music scrobble database that tracks listens and generates personal charts and listening statistics via a web UI and API.

GPL-3.0Actively maintained
Alternative to:
Last.fm logo
Last.fm
+3
EspoCRM logo

EspoCRM

Open-source PHP CRM platform with modular extensions and REST API

3.3k
958
Last commit

A PHP-based open-source CRM providing contacts, leads, pipelines, workflows, dashboards and extensible integrations for sales and support teams.

AGPL-3.0Actively maintained
Alternative to:
Zoho CRM logo
Zoho CRM
+19

Bencher

Continuous benchmarking to prevent performance regressions

890
40
Last commit

Bencher is a continuous benchmarking suite with a CLI, API server, and web console to track benchmark results over time and catch performance regressions in CI.

Actively maintained
Alternative to:
CodSpeed logo
CodSpeed
+1