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:
Similar to ghstats

Redash
Query, visualize, and share data from multiple data sources
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.
Cially
Discord server analytics dashboard with real-time insights
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.

ToolJet
Low-code platform for building internal apps, dashboards, and workflows
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.

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


EspoCRM
Open-source PHP CRM platform with modular extensions and REST API
A PHP-based open-source CRM providing contacts, leads, pipelines, workflows, dashboards and extensible integrations for sales and support teams.
Bencher
Continuous benchmarking to prevent performance regressions
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.




