github-traffic
Using the GitHub API, the script fetches a list of your public repositories and then analyzes the number of clones and visits for each of them, summarizing the stats in a neat table.
release date: 2025-07-10
about
Tired of manually checking traffic stats for your repositories? I get it... That's why I created a script that does it for you — all you get are the clean numbers.
The script from the github-traffic repository fetches visit and clone statistics for each of your public repositories and displays them as a table, CSV, or JSON.
The script from the github-traffic repository fetches visit and clone statistics for each of your public repositories and displays them as a table, CSV, or JSON.
features
github-traffic, once launched, immediately gets to work — it fetches a list of your GitHub repositories and then gathers visit and clone stats for each one, storing the results in a cache and displaying them as a clean, color-coded table in the terminal.
Why cache? One of the script's features is that on subsequent runs, it will compare the new data with the cached one and display up/down arrows to show how values have changed since the last fetch.
The table uses 256color palette highlights — green tones for top-performing repositories, orange and red for those with less traffic and fewer clones.
You can set your GitHub token and username globally in the shell, directly in the script, or pass them inline as arguments.
Other available parameters include the number of repositories per page to fetch (default is 100), the number of repositories to display, and the output format — csv, json, or pretty json.
Why cache? One of the script's features is that on subsequent runs, it will compare the new data with the cached one and display up/down arrows to show how values have changed since the last fetch.
The table uses 256color palette highlights — green tones for top-performing repositories, orange and red for those with less traffic and fewer clones.
You can set your GitHub token and username globally in the shell, directly in the script, or pass them inline as arguments.
Other available parameters include the number of repositories per page to fetch (default is 100), the number of repositories to display, and the output format — csv, json, or pretty json.
compatibility
Runs on:
Termux (Android)
Debian / Ubuntu / Alpine
Any POSIX-compliant Linux shell
Any terminal XTerm-256colors or XTerm-truecolor
Requires:
bash
curl
jq
GitHub token with repo access
Termux (Android)
Debian / Ubuntu / Alpine
Any POSIX-compliant Linux shell
Any terminal XTerm-256colors or XTerm-truecolor
Requires:
bash
curl
jq
GitHub token with repo access