# Starcounter-Jack/JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.

Repository: https://github.com/Starcounter-Jack/JSON-Patch
Canonical: https://ross.abutalabs.com/products/json-patch
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2025-10-23T20:48:55+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 48, release rhythm 8, longevity 100
- inputs: {"age_days": 4918, "days_push": 314, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1982, forks 223 (observed 2026-08-28T04:06:01.840746+00:00)

## What it is
A lean, high-performance JavaScript implementation of the JSON-Patch standard (RFC 6902) for updating JSON documents with delta patches. It can apply and validate patches, observe object changes to generate patches, and compare two objects to compute their difference.

## Use cases
- apply RFC 6902 JSON Patch operations to a JSON document
- send only the changes to update a JSON document over HTTP PATCH
- generate a patch describing the difference between two JSON objects
- observe a JavaScript object and produce patches when it changes
- validate a sequence of JSON Patch operations before applying them

## When to choose
- you need a standards-compliant, small-footprint JSON Patch library in JavaScript or TypeScript
- you build REST APIs using the HTTP PATCH verb and want delta updates
- you need to diff two JSON documents or track object mutations as patches
- you need a library that runs in browsers, Node.js, and Deno

## When to avoid
- you need JSON Merge Patch (RFC 7386) or a different diff format
- you work outside the JavaScript ecosystem
- you need deep document diffing with semantic awareness beyond JSON Patch operations

## Facets
- artifact type: library
- maturity: active
- function: serialization, json, developer-tools
- domain: developer-tools, web-development, apis
- platform: browser, cross-platform
- tags: json-patch, rfc6902, delta-patches, http-patch, object-observation, diffing, nodejs, deno, javascript

## Member repositories
- Starcounter-Jack/JSON-Patch (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.840746+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-30T03:03:31.935061+00:00, confidence not recorded.
  - readme: https://github.com/Starcounter-Jack/JSON-Patch (fetched 2026-08-28T04:06:01.840746+00:00, sha 531a936ba05a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
