3

Is there a way to view repository traffic for all repositories on your account at the same time? (without creating your own custom dashboard using the Github API). It would be very convenient. I suspect a bash script might do this without too much effort (e.g. get all repo names, get the traffic/stars stats for each repo in the list). But I want to be sure something obvious doesn't already exist before writing anything myself

2 Answers 2

3

I am not ware of any native dashboard that would aggregate multiple GitHub repositories into one convenient view.

You would therefore have to rely on third-party scripts, such as, for example, nchah/github-traffic-stats (Python)

Get statistics on web traffic to your GitHub repositories.

Since it is limited to the last two weeks, you might have to record those statitics over time (example: Microsoft/GitHubTelemetryParsor)

Sign up to request clarification or add additional context in comments.

3 Comments

Very useful, it works, but is there a programatic way to run it for every repository at once? (note that gts username repo1 repo2 repo3 doesn't seem to work (it returns just the stats for the first repo, repo1).
@stevec From the README, that would be gts username ALL.
oops I missed that. Thanks very much
1

The accepted answer mentions two helpful repositories that get the job done. An alternative method is to view your repositories' traffic in the GitHub website's existing GUI, while still saving you the effort of clicking on each repo one at a time, by using the GitHub API to fetch a list of all your repositories and then use Python's webbrowser to open each of these links in a browser interface.

Coming across this use-case multiple times, I created exactly such a tool, which requires minimal configuration and setup.

However, my tool does not support traffic history more than 2 weeks old. For this purpose, you can use a web app named repohistory, which supports up to two repositories at the time of writing this answer.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.