# AsyncBanana/microdiff

A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.

Repository: https://github.com/AsyncBanana/microdiff
Canonical: https://ross.abutalabs.com/products/microdiff
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, diff, comparison, typescript, deno, collaborate, github
Last push: 2026-08-02T22:21:49+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 64, longevity 100
- inputs: {"age_days": 1767, "days_push": 31, "days_rel": 31, "gap_med": 586, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3865, forks 84 (observed 2026-08-28T04:08:27.603977+00:00)

## What it is
Microdiff is a tiny (<1kb), zero-dependency JavaScript library for deep comparison of objects and arrays, returning a list of CREATE, REMOVE, and CHANGE operations. It is significantly faster than most other deep diff libraries and ships with full TypeScript support.

## Use cases
- compare two JSON objects and get the list of changes
- detect what properties were added, removed, or changed between two states
- diff nested objects and arrays in a React or Node app
- track state changes for undo/redo or sync features
- compare form data before and after edits
- deep equality checking with detailed change paths

## When to choose
- you need a fast, tiny deep diff with no dependencies
- you want TypeScript types built in
- you need Deno, Node, Bun, or browser support
- you need cyclical reference handling

## When to avoid
- you need text/string diffing rather than object diffing
- you need patch application or merge semantics, not just change detection
- you need diffing of very large or streaming datasets

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, web-development
- platform: bun, browser, cross-platform
- tags: diff, deep-comparison, zero-dependency, typescript, object-diff, array-diff, algorithms, nodejs, deno

## Member repositories
- AsyncBanana/microdiff (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:27.603977+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:51.373310+00:00, confidence not recorded.
  - readme: https://github.com/AsyncBanana/microdiff (fetched 2026-08-28T04:08:27.603977+00:00, sha d5eec137be62)
  - registry_npm: https://registry.npmjs.org/microdiff (fetched 2026-08-29T09:20:27.385292+00:00, sha cc326babcead)
- Data as of 2026-08-30T08:39:29.467469+00:00.
