DEV Community

Cover image for GitHub Traffic Checker
Rudolf Olah
Rudolf Olah

Posted on

GitHub Traffic Checker

Whenever writing blog posts or publishing video courses, I like to check in on the amount of traffic and views they are getting. It's a data point on what's interesting to readers, and sometimes suggests that I should dig deeper into a topic and write more about it.

The same is true for GitHub repos; while stars act like "bookmarks", it can be useful to see if there's anyone checking the repo and reading the source code or the documentation. It can suggest that some repos need more work to get more contributions or more usage.

Checking GitHub traffic across multiple repos was a manual process, using multiple tabs in the browser and clicking around the interface.

github-traffic-check

So, I wrote a small script using the GitHub Octokit package that prints out:

  • the repository name
  • the number of stars it has
  • the number of views
  • the number of unique views

Download github-traffic-check 1.0.0

Top comments (0)