Hacker News new | ask | show | jobs
Show HN: Logic Mill – Visualizing and sorting codebases (slydite.com)
1 points by Slydite 133 days ago
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/symbol... Layered Sort: https://slydite.com/content/posts/toposort/codesorter/layere... Global Sort: https://slydite.com/content/posts/toposort/codesorter/global...

GitHub: https://github.com/slydite/Logic-Mill