google/diff-match-patch
Diff Match Patch is a high-performance library in multiple languages that manipulates plain text. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3144
- days_rel: n/a
- days_push: 833
- n_releases_24m: 0
Adoption not part of the score
8140 stars · 1171 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A multi-language library (C++, C#, Dart, Java, JavaScript, Lua, Objective-C, Python) implementing robust algorithms for diffing, fuzzy matching, and patching plain text. Originally built to power Google Docs, it uses Myers' diff algorithm and Bitap matching.
Use cases
- compare two text blocks and get a list of differences
- apply patches to text that may have changed
- find fuzzy matches of a search string in text
- build collaborative editing or sync features
- implement version tracking for plain text content
- highlight word or line-level changes in an editor
When to choose
- you need battle-tested diff/match/patch algorithms across multiple languages
- you need best-effort patching of text that doesn't exactly match
- you want the same API in different language ports
When to avoid
- you need structured (XML/JSON) diffs rather than plain text
- you need git-compatible unidiff tooling as a primary feature
- you need binary file diffing
Facets
library · maturity stable
parser search-engine serialization developer-tools text-editors cross-platform python cpp jvm cross-platform lua diff patch fuzzy-matching text-processing myers-algorithm bitap multi-language algorithms javascript
1 source
- readme: https://github.com/google/diff-match-patch · fetched 2026-08-28 · 7f69dfca6cfa
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/diff-match-patch | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="google/diff-match-patch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem