# Diffs

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

Source: https://tastebase.ehsanulsiam.workers.dev/browse/pierre-diffs

free

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

by Pierre Computer Company[GitHub](https://github.com/pierrecomputer/pierre)[npm](https://npmjs.com/package/@pierre/diffs)

[visit](https://diffs.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://diffs.com](https://diffs.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Shiki](https://tastebase.ehsanulsiam.workers.dev/browse/shiki)

Syntax highlighting with VS Code's grammars and themes: accurate, themeable code blocks.

no preview

### [Trees](https://tastebase.ehsanulsiam.workers.dev/browse/pierre-trees)

A fast, searchable file tree for code browsers, from flat paths, as React or a web component.

no preview

### [Shaders](https://tastebase.ehsanulsiam.workers.dev/browse/shaders)

Composable GPU effect components for React, Vue and Svelte, stacked as layers in one canvas.

no preview

### [cmdk](https://tastebase.ehsanulsiam.workers.dev/browse/cmdk)

Fast, unstyled React command menu with built-in fuzzy filtering.

## For your agent

##### Install

`npm i @pierre/diffs`

##### Use 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

##### Pairs with

[Shiki](https://tastebase.ehsanulsiam.workers.dev/browse/shiki)[Trees](https://tastebase.ehsanulsiam.workers.dev/browse/pierre-trees)

##### Alternatives

[Shiki](https://tastebase.ehsanulsiam.workers.dev/browse/shiki)

```
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

[Visit](https://diffs.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
