kpdecker/jsdiff
A javascript text differencing implementation. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5636
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
9197 stars · 539 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
jsdiff is a JavaScript library that computes differences between two texts using the Myers O(ND) diff algorithm. It provides functions to diff text at character, word, line, and sentence granularity, and can generate unified diff patches.
Use cases
- compare two strings and show what changed
- generate unified diff patches in javascript
- highlight word-level changes between two versions of text
- diff two files line by line in node
- build a text comparison or revision history feature
- compute character-level differences for inline text highlighting
When to choose
- you need text diffing in JavaScript or TypeScript in Node or the browser
- you want change objects or unified patch output from comparing two texts
- you need configurable tokenization such as case-insensitive or word-level diffs
When to avoid
- you need to diff structured data like JSON trees or ASTs rather than plain text
- you need binary file diffing or three-way merge tooling
- you are outside the JavaScript ecosystem
Facets
library · maturity stable
parser developer-tools developer-tools text-editors browser cross-platform text-diff diff-algorithm myers-diff patch-generation javascript algorithms nodejs
1 source
- readme: https://github.com/kpdecker/jsdiff · fetched 2026-08-28 · fc27dca41a01
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kpdecker/jsdiff | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem