7 ms·
I think my question was misunderstood (probably due to my poor explanantion). I was looking for a tool that could convert a codebase into a mindmap. Sort of li
by Exorust 3y ago
I think my question was misunderstood (probably due to my poor explanantion).
I was looking for a tool that could convert a codebase into a mindmap. Sort of like: https://resources.jetbrains.com/help/img/idea/2023.3/diagram_editor.png https://resources.jetbrains.com/help/img/idea/2023.3/diagram...
https://www.jetbrains.com/help/idea/class-diagram.html#analyze_class https://www.jetbrains.com/help/idea/class-diagram.html#analy...
- geor9e 3y agoI'm still not understanding what you want to visualize. I get that you want to create a graph (or tree, the strictly hierarchal subset of graphs). That's what a mindmap is. The rabbit hole goes deep on theory https://en.wikipedia.org/wiki/Graph_theory https://en.wikipedia.org/wiki/Graph_theory . But a lot of different things have that data structure. Do you want to visualize files in folders? You linked to a Java class diagram - so you want the tool to interpret the code? Is it Java? Is it an object-oriented language (i.e. a language with hierarchal class structure)? Are you asking for an automated tool, or do you want to draw the mindmap yourself manually?
- OJFord 3y agoYou might be able to do it with https://github.com/IBM/tree-sitter-codeviews https://github.com/IBM/tree-sitter-codeviews - though the screenshot in the readme is in much more granular detail than class/ER diagram. I'd be surprised if there isn't a nice way to do this with tree-sitter or LSP, not to mention some language-(..theist?! Not language-agnostic) ways.
- Nezteb 3y agoI've asked a similar question in the past [1], perhaps we're both asking about similar things? :D [1] https://news.ycombinator.com/item?id=35603022 https://news.ycombinator.com/item?id=35603022
- Arech 3y agoThese links points to basically a (very simplified UML) class diagrams. Decent documentation tools, such as Doxygen could do this for a codebase.
- buescher 3y agoUnderstand from Scitools has nice graph generators, including a dependency graph generator that might be what you are looking for. Not free and not hobbyist-cheap, but relatively inexpensive as commercial static analysis tools go.
- analognoise 3y agoScitools is amazing for looking through massive legacy codebases. I wish it was free or there was an open source alternative that was as good.
- ecesena 3y agoI generally use Doxygen, turning on all possible graphs. It’s good because it can parse a variety of languages. You don’t get really nice graphs, but enough to get started to understand the code base.