Skip to content
D

diffs

@pierre/diffs is an open source diff and code rendering library

Open source

#1642in UI Libraries
0In stores

Description

Diffs, from Pierre, is an open-source library for rendering diffs and code in web applications. It is published as the npm package @pierre/d…

Highlights

  • Open-source diff and code rendering for the web
  • Shiki syntax highlighting and custom themes
  • Edit mode with undo, find and lint markers
  • Merge conflict UI, comments and line selection

Ratings & Reviews

No ratings yet

Be the first to rate diffs.

People also visit

T

trees

@pierre/trees is an open source file tree rendering library

UI Libraries
Launch
R

react-code-compare

A simple and fast text diff viewer component

UI Libraries
Launch
D

diffle

A keyboard-first diff viewer with LSP support and GitHub integration

Developer Tools
Launch
R

react-diff-viewer-continued

Continuation of a simple and beautiful text diff viewer component

UI Libraries
Launch
R

react-diff-viewer-continued-react19

Continuation of a simple and beautiful text diff viewer component

UI Libraries
Launch
D

diffity-diff

Open the diffity diff viewer in the browser to see your changes

AI Skills
Get

diffs FAQ

What is @pierre/diffs?

An open-source library for rendering diffs and code in web apps. It is built on Shiki and can be installed with pnpm.

Is it open source?

Yes. The site describes it as an open-source library, and a public GitHub repository is linked from the site.

Can users edit code in it?

Yes. Edit mode can be enabled in any file or diff component with EditProvider, and includes undo history, find-in-file and lint markers.

Does it handle merge conflicts?

The site lists a merge conflict resolution UI, plus accept and reject controls for changes.

How do I install it?

Run pnpm add @pierre/diffs. The docs cover setup, themes and the component API.

What are the best diffs alternatives?

Popular alternatives to diffs include trees, react-code-compare and react-diff-viewer-continued. See all diffs alternatives

Developer Stuff

Badges