Live data from Hacker News

Ask HN: How to Do a GitHub Wrapped?

news.ycombinator.com

1–4 of 4 posts

Re: Ask HN: How to Do a GitHub Wrapped?

#2
I have done similar work using the GitHub APIs before. I recommend using their GraphQL explorer to develop your queries interactively. You may need to fall back on the REST API instead of the GraphQL one for certain stats.

https://docs.github.com/en/graphql/overview/explorer

You can also refer to my code here, which may already collect some of the statistics you're interested in.

https://github.com/jstrieb/github-stats/blob/master/github_s...

I predict the most annoying part of this project will be dealing with authentication. There are a handful of ways to do it, and the permissions can be finicky depending on what data you are fetching.

Best of luck!

Re: Ask HN: How to Do a GitHub Wrapped?

#3
post #2

I have done similar work using the GitHub APIs before. I recommend using their GraphQL explorer to develop your queries interactively. You may need to fall back on the REST API instead of the GraphQL one for certain stats. https://docs.github.com/en/graphql/overview/explorer You can also refer to my code here, which may already collect some of the statistics you're interested in. https://github.com/jstrieb/github-sta…

Awesome, thank you!