[{"data":1,"prerenderedAt":433},["ShallowReactive",2],{"project-42521769":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":49,"post_text":50,"what":51,"said":82,"maker_in_thread":202,"shape":211,"grid":215,"attempts":391,"same_week":396,"maker_shows":39,"maker_hidden":425,"reader_version":426,"card":427},"42521769","GitDiagram","Instantly visualize any codebase as an interactive diagram","title","Show HN: Instantly visualize any codebase as an interactive diagram","https:\u002F\u002Fgitdiagram.com\u002F","gitdiagram.com","ahmedkhaleel",1735304657,2024,222,62,346,3515,10,"notable","dev_tools","code visualization","web_app",[24,25,26,27,28],"github diagram","codebase visualization","mermaid diagram","repository architecture","claude ai","mixed",-0.128,{"positive":32,"neutral":33,"mixed":34,"critical":35},11,9,6,21,47,{"execution":38,"design":40,"pricing":42,"performance":45,"idea":47},{"positive":39,"critical":18},1,{"positive":39,"critical":41},3,{"positive":43,"critical":44},0,2,{"positive":43,"critical":46},4,{"positive":48,"critical":44},5,[48,39,41,39,39,41,39,43,43,39,39,41,41,39,43,39,39,39,39,48,48,39,41,41,39,48,41,39,48,41,48,39,48,39,39,41,41,39,41,48],"GitDiagram is an open-source micro dev-tool that I made this past week\n\nGiven any public GitHub repository it generates diagrams in Mermaid.js with Claude 3.5 Sonnet\n\nI extract information from the file tree and README for details and interactivity (you can click components to be taken to relevant files and directories)\n\nAlso, you can replace \"hub\" with \"diagram\" in any repository URL  to access its diagram\n\nI created this because I wanted to contribute to open-source projects but quickly realized their codebases are too massive for me to dig through manually, so this helps me get started\n\nI d",{"problem":52,"audience":58,"pricing":62,"motivation":63,"time_to_build":62,"stack":67,"openness":79,"stage":80,"team_size":81},{"value":53,"source":54,"evidence":55},"Large codebases are hard to understand quickly when contributing to open source","maker",[56],{"id":57},"post",{"value":59,"source":54,"evidence":60},"Developers who want to contribute to or explore open-source projects",[61],{"id":57},null,{"value":64,"source":54,"evidence":65},"Wanted to contribute to open-source projects without manually digging through massive codebases",[66],{"id":57},[68,75],{"value":69,"source":54,"evidence":70},"Claude 3.5 Sonnet",[71,72],{"id":57},{"id":73,"by":11,"text":74},"42523900","yup, if you look at the backend its basically just a pipeline of information extracted from the file tree and readme using Claude 3.5 Sonnet, sick diagram tho",{"value":76,"source":54,"evidence":77},"Mermaid.js",[78],{"id":57},"open_source","launched","solo",{"praise":83,"objections":114,"requests":156,"questions":179,"alternatives":191},[84,99],{"value":85,"source":86,"evidence":87},"Diagrams look accurate and useful at a high level","commenter",[88,92,96],{"id":89,"by":90,"text":91},"42525011","lor_louis","As the author of the repo I was surprised how close to my mental model the graph was. (I haven't worked on this repo in a while so my mental model is a bit fuzzy) And yeah it…",{"id":93,"by":94,"text":95},"42526169","nulld3v","Hashicorp Vault (had to use my own API key as the repo is fairly large): https:\u002F\u002Fgitdiagram.com\u002Fhashicorp\u002Fvault Diagram could maybe have a bit more detail but what is there looks…",{"id":97,"by":11,"text":98},"42524446","ghostty is sick, and the diagram seems accurate on a higher level",{"value":100,"source":86,"evidence":101},"Good idea for learning codebases faster",[102,106,110],{"id":103,"by":104,"text":105},"42523835","shahzaibmushtaq","I learn faster with visualization, whether it's a stat or a codebase. Much appreciated!",{"id":107,"by":108,"text":109},"42530047","jasfi","I tried it on one of my repos and was somewhat impressed. I'd like to be able to drill down into subsystems though. This sort of tool could help to learn about codebases faster.",{"id":111,"by":112,"text":113},"42528202","Jerrrry","This is the neatest and most useful thing Shown on HN using AI in recent memory. Well done!",[115,130,141],{"value":116,"source":86,"evidence":117},"Repositories over 200k tokens fail, so large projects like Linux and llvm cannot be diagrammed",[118,122,126],{"id":119,"by":120,"text":121},"42526964","uncomplexity_","Of course I have to test it with https:\u002F\u002Fgitdiagram.com\u002Ftorvalds\u002Flinux \"Estimated cost: $8.07 USD\" lol Edit: \"Repository is too large (>200k tokens) for analysis. Claude 3.5…",{"id":123,"by":124,"text":125},"42523566","owenpalmer","Inputted llvm-project, resulted in this error: ``` Repository is too large (>200k tokens) for analysis. Claude 3.5 Sonnet's max context length is 200k tokens. Current size:…",{"id":127,"by":128,"text":129},"42526229","Minervaskell","Final boss: https:\u002F\u002Fgithub.com\u002Ftorvalds\u002Flinux Error message: Repository is too large (>200k tokens) for analysis. Claude 3.5 Sonnet's max context length is 200k tokens. Current…",{"value":131,"source":86,"evidence":132},"Diagrams miss or wrongly show dependencies between components",[133,137],{"id":134,"by":135,"text":136},"42524330","billyp-rva","I guess to get the discussion going: the diagrams look nice, but I think the erroneous and missed connections limit their usefulness. In this example, there is a connection from…",{"id":138,"by":139,"text":140},"42526396","Animats","Nice. I put in a repository of mine that implements a UI in Rust, and it gave me a reasonable diagram. It's just a top-level structure of the program, though. No detail. Not much…",{"value":142,"source":86,"evidence":143},"Generation often hangs or fails with generic progress messages",[144,148,152],{"id":145,"by":146,"text":147},"42526442","thih9","Note: the messages that are displayed during diagram generation seem to describe the current progress - but actually they are generic\u002Fcomedic messages that run in an endless…",{"id":149,"by":150,"text":151},"42526695","layer8","I tried this with a larger project, and after looping through the obviously-fake progress messages for a couple of minutes, it resulted in “Failed to generate diagram. Please try…",{"id":153,"by":154,"text":155},"42523882","jesse__","Tried https:\u002F\u002Fgithub.com\u002Fscallyw4g\u002Fbonsai and I believe it hung after the green loading bar completed. Left it for several minutes",[157,164,172],{"value":158,"source":86,"evidence":159},"Support for private repositories",[160],{"id":161,"by":162,"text":163},"42527187","abrookewood","Looks great, but would love to see it work with Private Repos.",{"value":165,"source":86,"evidence":166},"Zoom controls and drill-down into subsystems",[167,171],{"id":168,"by":169,"text":170},"42529459","k0ns0l","Love what you've built OP Quick thought: Since you're tackling large codebases, maybe add some zoom controls?",{"id":107,"by":108,"text":109},{"value":173,"source":86,"evidence":174},"Use of source code, not only README and file tree",[175],{"id":176,"by":177,"text":178},"42529102","phoenixreader","That’s very cool! Does it use the source code at all? Or does it just use README and directory tree?",[180,187],{"value":181,"source":86,"evidence":182},"Why large repositories fail given the stated goal of massive codebases",[183],{"id":184,"by":185,"text":186},"42529088","gloosx",">I created this because I wanted to contribute to open-source projects but quickly realized their codebases are too massive for me to dig through manually I don't get this…",{"value":188,"source":86,"evidence":189},"Whether the tool uses source code or only the README and directory tree",[190],{"id":176,"by":177,"text":178},[192,196],{"value":193,"source":54,"evidence":194},"GitIngest",[195],{"id":57},{"value":197,"source":86,"evidence":198},"Ilograph",[199],{"id":200,"by":135,"text":201},"42524125","Didn't get a response (expected), but I would caution everyone to keep expectations low. Generating system diagrams from code is extremely difficult, if not impossible, even with…",{"comments":18,"answered":43,"key":203},[204,205,208],{"id":73,"text":74},{"id":206,"text":207},"42523869","i see a diagram there now, might've taken a while to load https:\u002F\u002Fgitdiagram.com\u002Florlouis\u002Fcedit",{"id":209,"text":210},"42523621","1.4M tokens... even if Claude can process that there would be a crater in my wallet",{"commenters":212,"max_depth":48,"maker_replies":18,"first_comment_mins":213,"lifespan_hours":214},44,180,60,[216,220,222,226,229,231,235,239,242,246,248,252,254,256,258,260,261,263,267,269,273,274,276,280,283,285,289,291,293,295,296,299,303,305,307,309,312,314,318,322,324,329,331,335,336,341,343,346,348,350,354,356,360,364,368,370,374,376,380,382,385,387],[217,43,48,218,219,43],"42523858","project\u002Fpositive\u002Fnone","corysama",[73,43,43,221,11,39],"maker\u002Fpositive\u002Fnone",[223,39,39,224,225,43],"42524004","project\u002Fcritical\u002Fexecution","ComputerGuru",[227,39,41,228,150,43],"42526663","project\u002Fneutral\u002Fdesign",[119,44,39,230,120,43],"project\u002Fcritical\u002Fpricing",[232,44,41,233,234,43],"42527311","project\u002Fneutral\u002Fperformance","mshockwave",[236,44,39,237,238,43],"42528567","project\u002Fcritical\u002Fperformance","freakynit",[240,44,39,237,241,43],"42535362","mazambazz",[243,41,48,244,245,43],"42526735","project\u002Fpositive\u002Fidea","btown",[200,46,39,247,135,43],"project\u002Fcritical\u002Fidea",[249,46,43,250,251,43],"42526072","commenter\u002Fneutral\u002Fnone","mulmboy",[253,46,43,250,135,43],"42526166",[255,46,43,250,251,43],"42526414",[257,48,39,224,90,43],"42523786",[206,48,43,259,11,39],"maker\u002Fneutral\u002Fexecution",[134,48,39,224,135,43],[89,48,41,262,90,43],"project\u002Fmixed\u002Fexecution",[264,34,41,265,266,43],"42524515","project\u002Fmixed\u002Fdesign","antonpirker",[138,268,41,262,139,43],7,[270,271,41,262,272,43],"42528711",8,"NathanFlurry",[123,33,39,237,124,43],[209,33,43,275,11,39],"maker\u002Fneutral\u002Fpricing",[277,33,43,278,279,43],"42523928","commenter\u002Fneutral\u002Fpricing","d0mine",[281,33,39,230,282,43],"42525588","karmakaze",[145,18,39,284,146,43],"project\u002Fcritical\u002Fdesign",[286,18,43,287,288,43],"42526497","other\u002Fneutral\u002Fnone","dylan604",[290,18,39,284,146,43],"42526696",[292,18,39,284,288,43],"42526895",[294,18,41,228,146,43],"42529237",[103,32,48,244,104,43],[297,32,43,298,11,39],"42523879","maker\u002Fpositive\u002Fidea",[300,301,48,218,302,43],"42526254",12,"initramfs",[153,304,39,224,154,43],13,[306,304,43,259,11,39],"42523892",[308,304,41,262,154,43],"42526705",[107,310,48,311,108,43],14,"project\u002Fpositive\u002Fdesign",[149,313,39,224,150,43],15,[315,316,39,224,317,43],"42525963",16,"WillAdams",[319,320,48,244,321,43],"42524024",17,"blondin",[97,320,43,323,11,39],"project\u002Fpositive\u002Fexecution",[325,326,41,327,328,43],"42528628",18,"project\u002Fneutral\u002Fidea","ssivark",[184,330,39,247,185,43],19,[332,333,39,224,334,43],"42527847",20,"DoingIsLearning",[93,35,48,323,94,43],[337,338,41,339,340,43],"42523272",22,"project\u002Fneutral\u002Fpricing","whalesalad",[342,338,43,275,11,39],"42523292",[344,338,48,218,345,43],"42523299","visch",[347,338,43,221,11,39],"42523326",[127,349,39,237,128,43],23,[351,352,48,218,353,43],"42524393",24,"chris_5f",[355,352,43,221,11,39],"42524437",[357,358,39,224,359,43],"42525962",25,"fsndz",[361,362,41,265,363,43],"42525253",26,"nhatcher",[365,366,39,224,367,43],"42524066",27,"louthy",[161,369,41,327,162,43],28,[371,372,41,327,373,43],"42532335",29,"diamondage",[168,375,41,228,169,43],30,[377,378,39,224,379,43],"42523796",31,"mparnisari",[381,378,43,259,11,39],"42523883",[176,383,41,384,177,43],32,"project\u002Fneutral\u002Fexecution",[111,386,48,244,112,43],33,[388,389,48,244,390,43],"42545310",34,"zackproser",[392,393],{"id":4,"t":12,"points":14,"comments":15},{"id":394,"t":395,"points":44,"comments":43},"48021163",1777981614,[397,401,406,411,415,420],{"id":398,"name":399,"points":400,"category":20},"42565821","API Parrot",456,{"id":402,"name":403,"points":404,"category":405},"42559744","trading.snagra.com",270,"ai",{"id":407,"name":408,"points":409,"category":410},"42534931","Anki AI Utils",253,"learning_science",{"id":412,"name":413,"points":414,"category":405},"42524848","DoodleDreams",242,{"id":416,"name":417,"points":418,"category":419},"42513276","Trio",208,"creative",{"id":421,"name":422,"points":423,"category":424},"42521773","dutch_vocabulary",157,"languages",false,"v2",{"id":428,"name":5,"line":6,"ai":425,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":429,"top":18,"kw":430,"maker":11,"domain":10,"tier":19,"attempts":44,"strip":431,"url":9,"mix":432,"praise":85,"objection":116,"sub":21},42521769,-0.13,[24,25,26,27,28],"5131131001133101111551331531535151133135",[32,33,34,35],1794036666367]