# andreyvit/json-diff

Structural diff for JSON files

Repository: https://github.com/andreyvit/json-diff
Canonical: https://ross.abutalabs.com/products/json-diff
Language: CoffeeScript
License: MIT
License Family: permissive
Last push: 2024-04-10T14:05:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5251, "days_push": 875, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1202, forks 135 (observed 2026-08-28T04:03:58.467954+00:00)

## What it is
A Node.js CLI tool and library that computes structural diffs between JSON files or objects, showing colored, human-readable differences. It can also be used programmatically via its JavaScript API.

## Use cases
- compare two json files from the command line
- show structural differences between json documents
- diff json api responses in tests
- get raw json output of a diff programmatically
- compare json ignoring key order and value precision

## When to choose
- you need a quick CLI to diff JSON files with colored output
- you want a small library to diff JSON objects in Node.js code
- you need options like key exclusion, sorting, or numeric precision in comparisons

## When to avoid
- you need to diff YAML, XML, or other formats
- you need semantic JSON diffing with JSON Patch/RFC 6902 output
- you are not in a Node.js/JavaScript environment

## Facets
- artifact type: cli-tool
- maturity: active
- function: json, cli, developer-tools
- domain: developer-tools, files
- platform: cli, cross-platform
- tags: json-diff, structural-diff, coffeescript, diff-tool, command-line, nodejs

## Member repositories
- andreyvit/json-diff (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.467954+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-30T06:20:34.711944+00:00, confidence not recorded.
  - readme: https://github.com/andreyvit/json-diff (fetched 2026-08-28T04:03:58.467954+00:00, sha f1900063c8bc)
  - registry_npm: https://registry.npmjs.org/json-diff (fetched 2026-08-29T12:27:46.402629+00:00, sha 8f36f63d4c06)
- Data as of 2026-08-30T08:39:29.467469+00:00.
