r/github • u/m-fasciano • Sep 17 '26
Discussion Found a pretty neat GitHub trick today 👀
Take any GitHub repo URL and replace github.com with gitdiagram.com.
It generates a visual diagram of the repo structure, which is surprisingly useful when you’re trying to understand an unfamiliar codebase.
Example:
github.com/user/repo → gitdiagram.com/user/repo
Great little tool for getting the big picture before diving into the code. 🔍
352
Upvotes
96
u/EskilPotet Sep 17 '26 •
you found? or you made
127
u/Ambitious-Tear-9436 Sep 17 '26 •
do not give this access to your private repo
100
u/SheriffRoscoe Sep 17 '26
I was prepared to reply with something snarky. Then I ran it against one of my own moderately complex repos.
Take my upvote, dammit.
18
u/nathan_lesage Sep 18 '26
I really like the idea. But I tried it out, and it’s unfortunately not useful at all. I gave it a moderately complex repository of mine. Good: it figured out one of the hardest parts — the entry points. Bad: everything else was plainly wrong. The twist: the entry points are described in detail in the readme. It seems the AI only receives the file tree and the readme, not the code, meaning that this tool will produce one big hallucination for any repository that doesn’t come with a readme that explains quite literally everything. In short, we’ll probably still have to write the documentation.
39
u/DrMaxwellEdison Sep 17 '26 edited Sep 20 '26
Eh. I had it regenerate on Django 3 times and it produced completely different graphs each time.
I get that it's AI and non-deterministic, but being as noisy as it was, I could never trust it actually understands the structure of a repo well enough to bother.
Pass.
19
u/CompetitivePiglet961 Sep 17 '26
only for public repos I guess
7
u/No_Aerie7667 Sep 18 '26
The post sounds AI
6
u/Glad_Ad_6546 Sep 18 '26
You generated this post using AI. Great
11
u/lajawi Sep 17 '26
Is it ai? Probably, so hard no for me
3
u/DiamondsWorker Sep 20 '26
Thanks for sharing my tool!!
2
u/YourLastCall Sep 17 '26
I found one a long time ago for issues. AI can use it to store information, remove information with another Ai and leave a comment to keep that same issue open and constantly refill and drain it. I used it in conjunction with a repo of mine and scheduled tasks for chat GPT. And any repair that I found online through scheduled task got uploaded through the issue and then stored into the repo.
3
u/Mister_God_On_Steam Sep 17 '26
Pretty cool, thanks for sharing
1
u/NotAlwaysUseless Sep 18 '26
Nah, this is too sick!!!
1
u/TheCrazyPhoenix416 Sep 18 '26
oh wow this is awesome!
1
u/Tasio_ Sep 18 '26
I was curious to try it, but it doesn’t work well with large repos, I get this error:
Repository is too large (>195k tokens) for analysis. Try a smaller repo.
1
u/L0ng_Bo1 Sep 19 '26
tried doing this for the linux repository and it died 😭😭
1
u/LungeloSLX Sep 19 '26
😥 I wonder how many people will give this thing their tokens to private repos
1
u/toughsoftguy Sep 19 '26
Also we do have codewiki from google.
1
u/Successful-Farm5339 Sep 19 '26
Every time that this is generated looks different
1
u/ThisOrThatOrThings Sep 20 '26
there’s also https://gitingest.com and yes, i only found it via social media posts lol
1
u/__CaliMack__ Sep 20 '26
“All Internet is basically the same,” she said before missing out on the concert of a lifetime.
1
u/Ayano-Keiko Sep 23 '26
great app. no longer need adobe illustrator and photoshop.🙏🙏
1
u/kigory2 Sep 24 '26
wow this is cool, it's not really useful if you want to actually learn how a repo works but a cool addition to the README
1
u/ScandinavMan Oct 05 '26
Yeah very pretty but not safe to run - if your repo was public it is no longer protected by "security by obscurity" - if private, worse! and now the creator has your repo and possible tokens you had lying around.
1
u/properly_improper_77 Oct 10 '26
Nice
0
u/Muted-Bid6584 Sep 20 '26
also you can learn git my solving problems here: https://www.gitmission.com/
-1
u/ejpusa Sep 19 '26
Think this is something you can have Astra build for yourself. Python does it all.
I thought there were a number of tools that did this already.