Fast, tiny JSON tree viewer for Svelte 5.
A port of react-json-view-lite with runes, SSR, snippet
overrides, CSS-variable theming, and zero runtime dependencies.
Edit the JSON on the left; the tree on the right updates as you type.
The React API you already know, with Svelte 5 runes under the hood and enough new surface to make the port worth the swap.
$props, $state, $derived, $effect throughout — no Svelte 4 shims, no legacy reactivity syntax.
Same prop names, themes, and strategy helpers as react-json-view-lite — proven ergonomics, idiomatic Svelte 5.
Per-type Svelte snippets for string, number, date, boolean, and every other primitive.
Every color exposed as a --sjv-* custom property. Retheme without swapping the style prop.
$props.id() keeps aria-controls stable across server render and client hydration.
role="tree" with roving tabindex, arrow-key navigation, and collapse/expand labels.
Snippet overrides, CSS-variable themers, click-to-expand, edge cases, and the full live playground — all with live code.
Browse Examples