2. Maintained
github.com/kpdecker/jsdiff3. Used by agents' projects
Dependency in 54 public GitHub projects set up for AI coding agents that we scanned (0.9%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What diff does
JavaScript text diff implementation for comparing and generating unified diffs.
diff popularity
73 / 100
Gid Score, #267 overall
203M
downloads a week, npm
9,222
GitHub stars
54
agent projects use it
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How diff is used
- diff is a dependency in 54 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.1% of the 4,867 JavaScript/TypeScript ones), #25 of 408 in utilities.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 242; those are left out of every share on this page.
- Projects that use it most often also use Vitest (70.4%), tsx (59.3%), Model Context Protocol SDK (JavaScript) (50.0%).
By coding agent
41 projects, 1.3%
27 projects, 0.9%
12 projects, 0.5%
9 projects, 2.7%
6 projects, 1.3%
Often used with
More about diff
Alternatives
diff This page
BSD-3-ClauseGid 73203M/wk
Get started
Install it.
npm install diffNo step-by-step start for diff yet: we have not written its hand-checked card.