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. 🔍
127
u/Ambitious-Tear-9436
Sep 17 '26
•
do not give this access to your private repo
4
u/Ayano-Keiko Sep 23 '26
you can run locally
I find the GitHub repo https://github.com/ahmedkhaleel2004/gitdiagram
2
1
u/krishnank9 12d ago
why not ? when we are giving the repo context claude code and copilot chat . why not here ?
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.
6
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.
1
u/ArtisticVisual Sep 21 '26
I actually wonder why it's not determinstic. Seems very bad to make it propablistic lol
2
u/valleyman86 Sep 22 '26
Because ai is not deterministic. Hell most code isn’t. It’s hard to be even at low levels without using deterministic types.
19
u/CompetitivePiglet961 Sep 17 '26
only for public repos I guess
47
u/QuirkyGarage1364 Sep 17 '26
you can put an access token, but im suspicious of this being a data aggregation and farming tool
31
7
u/ec2-user- Sep 18 '26
Nope nope nope nope. I could never
2
u/ziroux Sep 18 '26
Come on, everybody is doing that. Put just the first characters and you'll like it you'll see!
2
7
6
11
u/lajawi Sep 17 '26
Is it ai? Probably, so hard no for me
-3
0
Sep 18 '26
[deleted]
4
u/tuxbass Sep 18 '26
words are like magnets, how do they work?!
-1
u/Zbradaraldjan Sep 18 '26
I just don’t get people hating on apps made with ai, it’s now part of the development flow, leave with it.
But if it’s hating for the app using ai, then I get it.
1
u/BunnyTub Sep 19 '26
This app is made probably completely with AI. AI is a good tool to add to your workflow to help you figure out certain things or to teach yourself with it. You should not be using AI to completely replace you and your code
1
u/lajawi Sep 19 '26
Not only that, it also uses ai for reading code and creating the diagram I’m assuming. I don’t want my code to be gobbled up by some stealing code company.
1
u/Corn0nTheCobb Sep 20 '26
This ↑ is everyone's concern (to those who were confused). Not whether the tool was developed using AI assistance.
0
0
3
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.
1
u/HyperCodec Sep 18 '26
Do you have a link?
1
u/YourLastCall Sep 20 '26
Sorry when I saw GitHub trick I assumed an actual trick on GitHub not a link or a tool. My bad, what I posted was a literal GitHub trick.
0
u/YourLastCall Sep 18 '26
For what
1
u/Corn0nTheCobb Sep 20 '26
Probably for the tool you described
1
u/YourLastCall Sep 20 '26
It's not a tool. It's a feature on GitHub called issues. You can use them for different things than what their originally designed for. I've actually never used issues for what they're actually designed for
3
1
1
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
1
u/LungeloSLX Sep 19 '26
😥 I wonder how many people will give this thing their tokens to private repos
1
1
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
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
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.
96
u/EskilPotet Sep 17 '26 •
you found? or you made