FIG-001 · MASTHEAD

svelte/diff.

Readable, reactive text diffs for Svelte 5. Semantic cleanup, expected-pattern matching, typed snippets, CSS classes, and processing telemetry in one focused component.

get started ↗ examples api reference compare
FIG-001
SHEET 01 / 05
component
1
drop-in svelte
segment types
4
remove / insert / equal / expected
cleanup modes
3
raw / efficiency / semantic
timeout
1s
configurable default
tarball
17.7kB
packed from npm
licence
MIT
open source
FIG-002 / LIVE DIFF

edit the comparison.

Change either document. SvelteDiff reacts immediately, applies semantic cleanup, and reports the work it performed.

open full example ↗
file · homepage-diff.svelte main 0.00ms cleanup 0.00ms segments 0 ● LIVE
OUT / SEMANTIC DIFF total · 0.00ms
Release v1.82.0.0 is ready for final review.
The documentation will ship afterwith the launch.
Owner: Product EngineeringDeveloper Experience
FIG-003 / CAPABILITIES

why svelte-diff.

A compact API with deliberate escape hatches for styling, markup, and telemetry.

FIG-004 / AI-READY

built for ai-assisted code.

Point Cursor, Claude Code, or any LLM at the manifests below and it gets the complete SvelteDiff contract: cleanup precedence, expected patterns, renderer snippets, callback types, and runnable examples.