A self-hosted web dashboard to monitor GitHub repository traffic metrics including clones, views, popular referrers, and popular paths. Like Github but with more historical data.
Docker Hub: DOCKER HUB
- 📊 Real-time traffic charts (clones, unique clones, views, unique views)
- 🔍 Popular referrers and paths tracking
- 📅 Flexible date range selection with quick presets (7d, 30d, Month, Year)
- 🌓 Dark/Light theme toggle
- 🔄 Automatic background data fetching on configurable intervals
- Docker & Docker Compose
- GitHub Personal Access Token (with
reposcope for traffic data access)
-
using
SAMPLE_docker-compose.yml: -
Configure environment variables:
GITHUB_TOKEN: Your GitHub personal access tokenREPOS: Comma-separated list of repositories (format:owner/repo)UPDATE_HOURS: Hours between automatic data fetches (default: 24)
-
Start the container:
docker-compose up -d- Access the dashboard at
http://localhost:8000
- Go to GitHub Settings → Developer settings → Personal access tokens
- Click "Generate new token"
- Select "All repositories" or "Only select repositories"
- In permission add "metadata" and "administration" with READ-ONLY permission
- Generate token
- Copy token to
docker-compose.yml
Trigger an immediate data fetch without waiting for the schedule:
curl -X POST http://localhost:8000/fetch-nowThe app fetches data immediately on startup. If data doesn't appear:
- Check logs:
docker logs GH_Watcher - Verify
GITHUB_TOKENis valid - Verify
REPOSformat is correct:owner/repo - Manually trigger fetch:
curl -X POST http://localhost:8000/fetch-now
- Ensure token has right permission
- Check token hasn't expired
- Verify token in
docker-compose.ymlhas no extra spaces
GPLv3
