Docdiff is a fast, intuitive CLI for comparing two files using advanced document distance algorithms. Built for developers, data scientists, and anyone who needs reliable file comparison, Docdiff makes it effortless to spot differences and measure similarity between documents.
- Simple CLI: Discoverable commands, clear help, and smart error messages.
- Accurate Algorithms: Uses modern document distance techniques for precise results.
- Progress Bars: Responsive indicators for large files.
- Extensible: Add new algorithms or commands with ease.
- Performance: Built in Rust for speed and reliability.
- Clear Output: Human-readable and machine-friendly results.
With Cargo:
cargo install docdiffPre-built Binaries:
Download the latest release for your platform from Releases.
Docdiff only works with plain text files (.txt).
Compare two text files:
docdiff diff file1.txt file2.txtShow program info:
docdiff infoGet help:
docdiff --help
docdiff diff --help$ docdiff diff file1.txt file2.txt
Comparing 'file1.txt' with 'file2.txt'...
[████████████████████████████████████████] 100%
Document distance: 0.123
Comparison finished!Docdiff uses advanced document distance algorithms. You can extend or customize algorithms by contributing to src/algorithms/.
Run all tests:
cargo testContributions are welcome! See CONTRIBUTING.md for guidelines.
Docdiff is licensed under the MIT License.
- GitHub Issues — Bug reports, feature requests, and questions.
- Discussions — Share ideas and get help.
- Install with Cargo or download a binary
- Run
docdiff diff file1.txt file2.txt - See the document distance and differences instantly
Docdiff is designed for clarity, speed, and extensibility. Every detail—from error messages to output formatting—aims to make your workflow smoother and more productive.
