@pierre/diffs
An open source library for rendering diffs and code with split or stacked layouts.
- Category
- Libraries & Components
- Added
- Price
- Free
About
About @pierre/diffs
@pierre/diffs is an open source library from The Pierre Computer Company for rendering code and diffs. It supports split and stacked layouts built on CSS Grid and Shadow DOM, several ways to mark changed lines, inline word-level highlights, and Shiki or custom themes. Newer features include an edit mode and virtualization.
You add it as an npm package with pnpm and render it in your own interface, for example in a code review screen or a chat that shows file changes. Its annotation system lets you attach comments, CI output or accept and reject buttons to lines. It is a general library, so it fits next to shadcn/ui rather than being part of it.
@pierre/diffs features
6 features
- Split and stacked diff layouts
- Line selection with click and drag
- Annotations for comments and CI output
- Merge conflict resolution view
- Token hover callbacks
- Shiki and custom themes
Install @pierre/diffs
1 command
Terminal
$ pnpm add @pierre/diffsWhat you can build with @pierre/diffs
3 use cases
- Building a code review screen with inline comments
- Showing accept and reject controls for AI-suggested edits
- Rendering merge conflicts with a resolution picker
Libraries & Components
Similar to @pierre/diffs
More libraries & components like @pierre/diffs: the closest by what they do, then the most starred.
TreesLibraryTrees (@pierre/trees) renders file trees that stay fast with thousands of items, with Git status badges, flattened folders, search and custom menus.
Indie UILibraryIndie UI is a free, MIT-licensed collection of React and Tailwind CSS components with variants, dark mode support and TypeScript types for web apps.
mindmapcnLibrarymindmapcn adds theme-aware mind map components to your app. Install one registry file with the shadcn CLI, and get zoom, fit and export controls.
shadcn/ui expansionsLibraryshadcn/ui expansions adds components the base set lacks: autosize textarea, datetime picker, multiple selector and infinite scroll. Copy and paste them.
Minimal TiptapLibraryMinimal Tiptap is a customizable rich text editor for shadcn/ui projects, with image upload, code blocks, tables and HTML, JSON or Markdown output.
EmblorLibraryEmblor is an npm package that adds a tag input to shadcn/ui forms. It is accessible, customizable and ready to drop into a React form with a few props.
Pricing
Ship it with Pro
The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What @pierre/diffs is, how to install it, its license and its alternatives.
An open source library for rendering diffs and code with split or stacked layouts.
@pierre/diffs lists Split and stacked diff layouts, Line selection with click and drag, Annotations for comments and CI output, Merge conflict resolution view, Token hover callbacks and Shiki and custom themes.
The directory lists these uses for @pierre/diffs: Building a code review screen with inline comments, Showing accept and reject controls for AI-suggested edits and Rendering merge conflicts with a resolution picker.
The directory does not name a maker for @pierre/diffs. Its site is https://diffs.com/.
@pierre/diffs was added to the directory on April 24, 2026.
@pierre/diffs is in Libraries & Components. Component libraries and standalone components built on shadcn/ui, covering the data tables, pickers, editors and charts the core set leaves out.
Code display, Components, Open source, Customizable and Dark mode. Each tag has a page listing the other resources that carry it.
Yes. @pierre/diffs's page has a Live tab beside the screenshot that loads its site in a frame.
Run pnpm add @pierre/diffs. The site also links documentation and notes for agents.
Yes. The annotation framework lets you inject your own content, such as line comments or results from CI jobs.
@pierre/diffs lists this command: `pnpm add @pierre/diffs`.
The directory lists no shadcn CLI command for @pierre/diffs. Check its docs at https://diffs.com/ for how to add it.
The directory links no repository for @pierre/diffs. Its site is https://diffs.com/.
The directory links no separate docs for @pierre/diffs; start from its site at https://diffs.com/.
The directory records no license for @pierre/diffs. Check its repository or site before you use it.
The directory records no price for @pierre/diffs. Its site, https://diffs.com/, is where its pricing, if any, is stated.
No. @pierre/diffs is made by its own maker and listed here as a link. A shadcn.io Pro plan covers shadcn.io's own blocks, templates and tools.
Other resources in Libraries & Components, newest first: Trees, Indie UI, mindmapcn and shadcn/ui expansions. Their pages are linked under Similar to @pierre/diffs.
Open its category, Libraries & Components, or one of its tags (Code display, Components and Open source): each page lists the resources that share it.
4.9 out of 5 from 150+ developers
Found your stack? Ship it.
6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.
Get Pro






