11 ms·
Show HN: Logic Mill – Visualizing and sorting codebases
I built a tool called Logic Mill that parses codebases with Tree-sitter to visualize and topologically sort functions and classes.
The core idea was an experiment: What if code files were ordered like mathematical proofs, where definitions always precede their usage?
Interactive Visuals
Visuals for Three.js and Preact.js are available on the blog (Open on Desktop - The graphs are heavy):
Logic Mill (the tool itself):
Symbols Graph: https://slydite.com/content/posts/toposort/codesorter/symbols.html https://slydite.com/content/posts/toposort/codesorter/symbol...
Layered Sort: https://slydite.com/content/posts/toposort/codesorter/layered.html https://slydite.com/content/posts/toposort/codesorter/layere...
Global Sort: https://slydite.com/content/posts/toposort/codesorter/global.html https://slydite.com/content/posts/toposort/codesorter/global...
GitHub: https://github.com/slydite/Logic-Mill https://github.com/slydite/Logic-Mill