Skip to content
AI Primer

Diffs

A diff rendering library

@pierre/diffs is an open-source diff and code-rendering library built on Shiki. Supports stacked/split layouts, any Shiki theme (including Pierre's light/dark pack), configurable change styles, annotations for comments and accept/reject UI, merge-conflict primitives, line selection, and token-hover callbacks. Installed with `bun i @pierre/diffs`. Pitched at developer-tool builders — especially AI-assisted coding UIs like Cursor — who need a Cursor-grade diff experience as a drop-in component.

Screenshot of Diffs website

Recent stories

0 linked stories
No linked stories yet.
AI PrimerAI Primer

Your daily guide to AI tools, workflows, and creative inspiration.

© 2026 AI Primer. All rights reserved.