Diffs
freeFast code diff and file rendering for React on Shiki: split or unified, virtualised, with annotations.

Try these
Shiki
Syntax highlighting with VS Code's grammars and themes: accurate, themeable code blocks.
Trees
A fast, searchable file tree for code browsers, from flat paths, as React or a web component.
Shaders
Composable GPU effect components for React, Vue and Svelte, stacked as layers in one canvas.
cmdk
Fast, unstyled React command menu with built-in fuzzy filtering.
For your agent
Install
npm i @pierre/diffsUse it for
- a code review or changes view that renders file diffs with syntax highlighting, split or unified
Skip it when
- a static code sample with no diff: use shiki
- editing code: use a code editor
What's inside15 free
- CodeView
- MultiFileDiff
- PatchDiff
- FileDiff
- File
- UnresolvedFile
- Edit Mode
- Line Annotations
- Custom Hunk Separators
- Token Hooks
- Highlighters
- Virtualization
- Worker Pool
- SSR
- Theming
Facts
- Frameworks
- react, vanilla
- Styling
- unstyled
- Weight
- medium
- Accessibility
- ok
- Maturity
- stable
- License
- Apache-2.0
- Price
- Free
Alternatives
import { MultiFileDiff } from "@pierre/diffs/react"
<MultiFileDiff
oldFile={{ name: "app.ts", contents: before }}
newFile={{ name: "app.ts", contents: after }}
/>https://diffs.com/playground
Loading website