Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

diff

JavaScript text diff implementation for comparing and generating unified diffs.

UtilitiesNPM

GitHub

1. License

License from npm.

github.com/kpdecker/jsdiff

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
diff: downloads per weeknpm, diff 203,114,341
diff: GitHub starskpdecker/jsdiff 9,222

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

In 70.4% of its projects
In 59.3% of its projects
In 46.3% of its projects
In 68.5% of its projects
In 42.6% of its projects
In 42.6% of its projects
In 40.7% of its projects

More about diff

More in Utilities

Alternatives

diff This page

BSD-3-ClauseGid 73203M/wk

Compare diff with another tool

Get started

Install it.

npm install diff

No step-by-step start for diff yet: we have not written its hand-checked card.