Diffs: A Diff Rendering Library
4 months ago
- #code-diff
- #syntax-highlighting
- #developer-tools
- @pierre/diffs is an open-source diff and code rendering library built on Shiki for syntax highlighting and theming.
- Offers customizable diff views: stacked (unified) or split (side-by-side) with CSS Grid and Shadow DOM for performance.
- Features include syntax highlighting, theme adaptation, flexible annotation framework, and line selection capabilities.
- Supports various diff indicators like classic (+/-), background colors, vertical bars, and inline change highlighting.
- Adapts to font settings globally or per-component and provides tools for custom content injection in headers and annotations.
- Can diff any two files, useful for comparing generative snapshots without linear history.
- Developed by The Pierre Computer Company with extensive experience in developer tools and open-source projects.