Show HN: GitHub Repo Visualizer Using D3 (see-my-repo.netlify.app)
I built this as part of my quest to properly learn data visualization. The code is the easy part!
Some lessons learned:
- personal verification of the the general truth that pie charts are tough! and the returns are not great for the effort due to people's difficulties perceiving angles - may not use "vanilla" d3 with no React. was difficult to adapt for mobile - the GitHub API provides fairly standardized responses so building dynamic charts wasn't too bad. But when working with streaming data (say Kafka) I can see this getting interesting... schema registry should help but creating a view into the data with a lookback would be interesting with d3, done it with altair before.
15 comments
[ 2.7 ms ] story [ 39.2 ms ] threadAt first, I thought the page was broken because there was no indication that anything was happening. Once the content is generated, you could add a message to scroll down, especially on Macs, where browsers don't show the scrollbar by default.
> the GitHub API provides fairly standardized responses so building dynamic charts wasn't too bad.
Out of curiosity, which criteria did you use for the "Other" section in the language chart? Aggregating everything below a certain percentage? Your page shows only TS and Other for my repos. All 7 languages used in the repo are shown on GH.
---
If you make a demo visualizing real-time data from Kafka make sure to share it as well :)
other was less than 5%. I'd like to do a demo with Kafka + d3 soon. I _have_ done one with Streamlit, which is a python component library+deployment service at a pretty higher level of abstraction (I'd say similar to nivo in the JS world). https://flink-st-kafka.streamlit.app/
And maybe do a legend for the pie chart, so immediately clearer what I am looking at instead of making me hover.
[0]: https://githubnext.com/projects/repo-visualization/
It also couldn't seem to load my repo - pretty sure I didn't typo it so wondering if you might've hit rate limits? The GitHub API has fairly low limits, particularly if you're using a PAT instead of an oauth app.
Edit: it's working for me now
Nicholas,
Thanks
Something like a short series of links that populates got a repo each would be ideal.
e.g. https://github.com/SinghCoder/Compiler-Construction?tab=read...