# diff — card for AI agents

JavaScript text diff implementation for comparing and generating unified diffs.

Category: Utilities · npm package `diff` · latest version 9.0.0 (checked 2026-11-01)
Install: `npm install diff`
License: BSD-3-Clause (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 73.2 (#267 of all tools, 22 of 408 in its category)
- Used in 54 public projects set up for AI coding agents (0.9%)
- Downloads last week: 203,114,341 (as of 2026-11-24), +35.0% over 4 weeks
- GitHub stars: 9,222 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
Vitest 70.4%, tsx 59.3%, Model Context Protocol SDK (JavaScript) 50.0%, yaml 46.3%, Zod 68.5%, esbuild 42.6%

## Links
- AgentGid page: https://agentgid.com/tools/diff/
- Repository: https://github.com/kpdecker/jsdiff

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
