DEV Community

Michael Hoffmann
Michael Hoffmann

Posted on

GitHub Traffic Viewer

I have built a website to be able to check all GitHub repo traffic views of an account:

https://github-traffic-viewer.netlify.com/

Source code is available at GitHub.

My motivation (taken from my GitHub traffic CLI blog post):

Since I published my first projects on GitHub I really enjoyed viewing the traffic on my repositories. It is really interesting to see how many people visit or clone my repositories.

Unfortunately it costs a lot of time to click through all available repositories and I was looking for a more elegant way.

Used technologies: Gatsby.js, Netlify, Firebase, React.js

GitHub Traffic Viewer

Let me know what you think about it and if it is also helpful for you!

Top comments (10)

Collapse
 
preciouschicken profile image
Precious Chicken

This is a really cool idea and looks like just what I was looking for. I must admit I'm a little cautious about using it though as the app wants to see my private repos and email addresses; which is a bit too much sharing for me.

Collapse
 
mokkapps profile image
Michael Hoffmann

Ok, I can understand your concern. I built this for my own purpose and I also wanted to see the stats for my private repos.

Collapse
 
preciouschicken profile image
Precious Chicken

That's fair enough, it is a neat idea either way.

Collapse
 
ben profile image
Ben Halpern

Tried it out. Pretty neat ๐Ÿ™‚

Collapse
 
bbasile profile image
Basile B.

does not work w/ third party cookies disabled.

Collapse
 
mokkapps profile image
Michael Hoffmann

Yes, unfortunately third party cookies are needed to be able to authenticate at GitHub via Firebase

Collapse
 
ruchinmunjal profile image
ruchinmunjal

Can the same be done for bitbucket?

I recently interviewed for a job and shared a private repo for the interviewer. I want to know if they even visited :P

Collapse
 
mokkapps profile image
Michael Hoffmann

Mhm, I don't think so. I just took a quick look at the Bitbucket REST API but could not find a similar endpoint to fetch the views of a repository.

Alternatively, according to this blog post from 2012 you could also track your repo via Google Analytics.

Collapse
 
ruchinmunjal profile image
ruchinmunjal

Thank you so much Michael, for taking a look at the API. If I'm not wrong, the analytics would only be able to pick future views and not past? Since in my case I had given the repo link almost a week ago. Anyway, I got good news yesterday, I've been selected. :)

Thread Thread
 
mokkapps profile image
Michael Hoffmann

Yes, the analytics data would only represent future views. Nevertheless, congratulations for beeing selected ;-)