r/coolgithubprojects • u/Arin-Goel4449 • 7h ago
Introducing Treediff — an open-source structural code comparison engine
github.comI recently released Treediff, an open-source developer tool I've been building.
Most traditional code comparisons focus on textual differences. Treediff takes a structural approach, analysing syntax trees to understand how code has changed.
Some of its capabilities include:
- Syntax-tree-based code comparison
- Structural matching and subtree fingerprints
- Move and rename detection
- Repository-level comparison
- Multiple language grammars
- CLI, library and Python interfaces
I've also published benchmark results comparing it with established structural diff tools.
The project is written in Rust and is available on GitHub.
GitHub: https://github.com/A35-777/treediff
Website: https://treediff.pages.dev/
I'm particularly interested in feedback from open-source maintainers and developers building code-analysis tools.
What features would make a structural diff engine genuinely useful in your development workflow?