Docdiff
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.
Features
- 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.
Installation
With Cargo:
Pre-built Binaries:
Download the latest release for your platform from Releases.
Usage
Docdiff only works with plain text files (.txt).
Compare two text files:
Show program info:
Get help:
Example Output
Algorithms
Docdiff uses advanced document distance algorithms. You can extend or customize algorithms by contributing to src/algorithms/
.
Testing
Run all tests:
Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
License
Docdiff is licensed under the MIT License.
Community & Support
- GitHub Issues — Bug reports, feature requests, and questions.
- Discussions — Share ideas and get help.
Quickstart
- Install with Cargo or download a binary
- Run
docdiff diff file1.txt file2.txt
- See the document distance and differences instantly
Philosophy
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.