
Self-hosted diff tool that compares two versions of text and saves the differences. A simple alternative to diffchecker.com.
- Compare two versions of text and highlight the differences.
- Save the differences with a unique shareable link.
- Edit existing differences and save them as new versions.
-
Copy .env.example to .env and change values if needed:
- DB: connection string to PostgreSQL database
- INSTANCES: number of PM2 instances inside a container
- NODE_ENV: development|production - affects stack tracing on error pages
-
docker compose up -d --build

- Open service instance.
- Enter the text in the left and right text areas.
- Click the Compare button.
- The differences will be highlighted.
- Check the differences and make sure that everything is correct.
- You can get back to editing source files if needed. Click Edit button.
- Optionally add diff name. For instance, you can add a ticket number.
- Click the Save button to save the differences.
- Copy the link and share it with others.
Also, you can edit existing differences and save them as new versions.
- Open the link with the differences.
- Click on the Edit button.
- Edit the differences.
- Click on the Save button to save the changes.
- A new link will be generated.
- Unified diff of 2 texts is computed on client side
- Diff is deflated (compressed with DEFLATE algo) also on client side
- Resulting data is saved to database
- When link is opened then reverse process is taking place
This service is built on top of a bunch of great open-source libraries:
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.