To satisfy my proclivity of watching numbers go up... I built this GitHub Dashboard so that I can view all the Data, from all my repositories on a single page.
While there are solutions like this already available, they are either paid services, limited versions, dead repo's, or just not what I was looking for.
My solution runs entirely on GitHub's Free Tier and is completely automated. No external database, web host, or monthly fees required.
You can enter the password "guest" to view the Live Demo Dashboard at https://hijelhub.github.io/Demo_Dashboard/
To get your own Dashboard, fork yourself a copy of the main repo at https://github.com/HijelHub/HijelHub_Dashboard and set it up (Setup takes ~5min)
Why?
- GitHub will only store 14 days of traffic analytics
- GitHub has no unified analytics page, you must check each repo separately.
- Other Dashboards do not offer Data Encryption for increased privacy.
- Existing solutions require a monthly fee, external databases or infrastructure.
How?
HijelHub_Dashboard works in two parts. On the back-end, a GitHub Actions workflow runs once a day (or as often as you set) on a schedule, using a personal access token (saved as an Actions secret) to fetch traffic view, clone, referrer, fork, pull request, and issue data from the GitHub API for every repo you've listed in config.json. (You must have write access for any repo you add here)
It combines new data with what's already stored in the data/ folder, skipping duplicate dates for views and clones, and builds up a running list of all referrers and data points over time then commits the updated JSON files back to your repo.
On the front-end, GitHub Pages serves a single-page dashboard that loads those JSON files, decrypts them in the browser (if you've turned on the optional AES-256-GCM encryption), and displays the analytics data with interactive Chart.js line charts, referrer tables, fork/PR/issue counts, and release download counts.
The whole thing... the scheduled data collection, storage, and hosting runs entirely on GitHub's free tier with no external server or database.
You can also customize the look and feel of your HijelHub_Dashboard by editing the theme.json file.
Please let me know if you have any feature ideas, find any bugs, or just want to say "Hi!".
Top comments (0)