SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Diff Open-Source Projects
-
Many diff tools, such as delta (https://github.com/dandavison/delta) and the ones built into VS Code and IDEs by JetBrains, can configured to highlight changes within each line (by word) and ignore changes to whitespace. Those features save me a lot of time when I review diffs that include indentation changes or variable renames.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Epic Games announces Lore version control system | news.ycombinator.com | 2026-06-17
-
diff-so-fancy
Make your diffs human readable for improved code quality and faster defect detection. :tada:
Project mention: Improved Git Diffs with Delta, Fzf and a Little Shell Scripting | news.ycombinator.com | 2026-03-28I had to give up on diff-so-fancy because it would break a lot when used with `git diff --patch` but this post just reminded me of the issue and it turns out that it has recently been fixed, so I may give it another go.
https://github.com/so-fancy/diff-so-fancy/issues/498
-
Absolutely not, there are plenty of use-cases for them. https://www.npmjs.com/package/patch-package comes to mind off the top of my head.
Hopefully current hysteria will not result in some bs decisions like this.
-
winmerge
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
Project mention: WinMerge 2.16.56.2 – A Windows tool for visual difference display and merging | news.ycombinator.com | 2026-05-28 -
vim-gitgutter
A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
-
Project mention: Building BlazeDiff: How I Made The Fastest Image Diff up-to 60% Faster with Block-Level Optimization | dev.to | 2025-09-01
I was using pixelmatch: the gold standard for pixel-level image comparison in JavaScript. It's an excellent library that's served the community well for years. But as my test suite grew and image resolutions increased, those milliseconds started adding up to minutes. I thought: "There has to be a better way."
-
diffview.nvim
Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Project mention: diffview.nvim VS diffview.nvim - a user suggested alternative | libhunt.com/r/diffview.nvim | 2026-05-06 -
-
microdiff
A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.
-
-
TextDistance
📐 Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
-
-
if you want to do image diffing, use https://github.com/dmtrKovalenko/odiff
however, if you have SVGs already, compare those without rasterizing them first, then if that fails rasterize & odiff on-demand. this way you dont waste a ton of space storing a bunch of binary [possibly evolving] pngs in git.
-
-
-
deepdiff
DeepDiff: Deep Difference and search of any Python object/data. DeepHash: Hash of any object based on its contents. Delta: Use deltas to reconstruct objects by adding deltas together.
-
graphtage
A semantic diff utility and library for tree-like files such as JSON, JSON5, XML, HTML, YAML, and CSV.
-
Project mention: Epic Games announces Lore version control system | news.ycombinator.com | 2026-06-17
The five command part isn't really possible but you can use custom diffs for merges, git diff, etc. pretty easily. There are projects like diffsitter ( https://github.com/afnanenayet/diffsitter ) for doing more intelligent diffs like this for supported languages.
-
-
HDiffPatch
a C\C++ library and command-line tools for Diff & Patch between binary files or directories(folder); cross-platform; runs fast; create small delta/differential; support large files and limit memory requires when diff & patch.
-
-
Diff discussion
Diff related posts
-
Epic Games announces Lore version control system
-
OpenAPI仕様の差分を比較し、CIで破壊的変更をブロックする方法
-
Cómo Comparar Especificaciones OpenAPI y Bloquear Cambios Disruptivos en Integración Continua
-
Sem: New primitive for code understanding – not LSPs, but entities on top of Git
-
Changing Document Version Control Forever
-
WinMerge 2.16.56.2 – A Windows tool for visual difference display and merging
-
Show HN: Codiff, a local diff review tool
-
A note from our sponsor - SaaSHub
www.saashub.com | 20 Jun 2026
Index
What are some of the best open-source Diff projects? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | delta | 31,178 |
| 2 | difftastic | 25,512 |
| 3 | diff-so-fancy | 18,057 |
| 4 | patch-package | 11,200 |
| 5 | winmerge | 8,898 |
| 6 | vim-gitgutter | 8,502 |
| 7 | pixelmatch | 6,851 |
| 8 | diffview.nvim | 5,514 |
| 9 | jsondiffpatch | 5,293 |
| 10 | microdiff | 3,801 |
| 11 | DifferenceKit | 3,659 |
| 12 | TextDistance | 3,526 |
| 13 | diff2html | 3,383 |
| 14 | odiff | 3,061 |
| 15 | nbdime | 2,835 |
| 16 | git-cola | 2,534 |
| 17 | deepdiff | 2,512 |
| 18 | graphtage | 2,472 |
| 19 | diffsitter | 2,383 |
| 20 | jd | 2,277 |
| 21 | HDiffPatch | 2,040 |
| 22 | sad | 2,038 |
| 23 | terraboard | 2,007 |