Render diffs and code, now with edit

@pierre/diffs is an open source diff and code rendering library. Rich syntax highlighting, edit mode, support for custom and Shiki themes, virtualization, and more. Made by The Pierre Computer Company.

Documentation

Currently v1.7.2

Introducing

Highlights

Super-fast syntax highlighting for code and diffs, written from the ground up to be nearly 300× faster than Shiki. Now in beta.

Get started

Edit diffs and code

Enable edit mode in any File or FileDiff component with the EditProvider. Includes support for selection management, auto-indention, undo history, find-in-file, lint markers, and more. Pairs nicely with @pierre/trees for AUI style experiences. Learn more about edit mode.