# otakustay/react-diff-view

A git diff component

Repository: https://github.com/otakustay/react-diff-view
Canonical: https://ross.abutalabs.com/products/react-diff-view
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-03-30T14:43:30+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 74, release rhythm 8, longevity 100
- inputs: {"age_days": 3287, "days_push": 156, "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 1013, forks 88 (observed 2026-08-28T04:03:13.544572+00:00)

## What it is
A React component library for rendering git unified diff output with split and unified views. It includes a token system for syntax highlighting, inline diff, and extensible widgets for features like code commenting.

## Use cases
- display git diffs in a react app
- render side-by-side code diff viewer
- show code review comments on diff lines
- syntax highlight diff output in browser
- build a github-like diff component
- parse git diff text into structured data

## When to choose
- you need a customizable React diff viewer with split/unified views
- you want syntax highlighting and inline diff in rendered diffs
- you need widgets like code comments attached to diff hunks

## When to avoid
- you need a standalone CLI or non-React diff tool
- you only need to compute diffs rather than display them
- you need high performance on very large diffs without lazy rendering

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: frontend, web-development, developer-tools, version-control
- platform: browser
- tags: react, git-diff, diff-viewer, code-review, syntax-highlighting, split-view, unified-view, nodejs, web-server

## Member repositories
- otakustay/react-diff-view (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.544572+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-30T07:11:40.890670+00:00, confidence not recorded.
  - readme: https://github.com/otakustay/react-diff-view (fetched 2026-08-28T04:03:13.544572+00:00, sha 4f50575af241)
  - registry_npm: https://registry.npmjs.org/react-diff-view (fetched 2026-08-29T13:11:18.978042+00:00, sha 882c42ffbd69)
- Data as of 2026-08-30T08:39:29.467469+00:00.
