FIG-001 · MASTHEAD

svelte/json.

A fast, tiny JSON tree viewer for Svelte 5 — built for API explorers, dashboards, logs, docs, and generated JSON artifacts. React API parity, typed snippets, SSR-safe ARIA tree semantics, CSS-variable theming, and zero runtime dependencies.

get started ↗ api reference examples compare blog
FIG-001
SHEET 01 / 07
themes
2
light + dark
snippets
9
typed overrides
aria
tree
keyboard-ready
tarball
14.4kB
packed (npm gz)
runtime deps
0
zero dependencies
licence
MIT
upstream MIT
FIG-002 / JSON TREE

inspect structured data.

Render object and array payloads as an accessible Svelte tree. The viewer follows the active site theme through mode-watcher; no separate theme toggle lives inside the demo.

file · payload.json root keys 5 snippet slots 4 theme ● ARIA TREE
click disclosure controls
JsonView data=28 lines
{
    user:{
      id:42,
      name:"Ada Lovelace",
      roles:[
        "admin",
        "beta"
      ],
      joined:"2024-01-15T09:00:00.000Z"
    },
    metrics:{
      requests:1523,
      errors:0,
      latencyMs:12.4
    },
    featureFlags:{
      compactTopLevel:true,
      clickToExpandNode:true,
      snippets:[
        "string",
        "number",
        "date",
        "label"
      ]
    },
    active:true,
    nextReview:null
}
FIG-003 / CAPABILITIES

why svelte-json-view-lite.

The React viewer API you know, rendered through Svelte 5 primitives.

№ 01 / 06

React API Parity

Keep the familiar react-json-view-lite prop shape while moving rendering into Svelte 5.

№ 02 / 06

Svelte 5 Runes

$props, $state, $derived, and $effect throughout — no Svelte 4 compatibility layer.

№ 03 / 06

Typed Snippet Overrides

Customize strings, numbers, booleans, dates, functions, null, undefined, bigint, and labels inline.

№ 04 / 06

Accessible Treeview

role="tree", aria-expanded, aria-controls, and roving tabindex keyboard navigation.

№ 05 / 06

CSS Variable Themes

Built-in light and dark themes expose every color through the --sjv-* namespace.

№ 06 / 06

Zero Runtime Dependencies

A compact viewer for dashboards, docs, logs, API explorers, and generated JSON artifacts.

FIG-005 / COMPARISON MATRIX

how we compare.

A compact side-by-side look at JSON viewers and editors you might consider for Svelte surfaces.

libraryframeworkread-onlyeditingsnippetsthemingzero deps
@humanspeak/svelte-json-view-lite Svelte 5yesnoyesCSS varsyes
react-json-view-liteReactyesnonothemeyes
svelte-jsoneditorSvelteyesyesnoyesno
vanilla-jsoneditoragnosticyesyesnoyesno
react-json-viewReactyesnonothemeno
@uiw/react-json-viewReactyesnonoyesno
@textea/json-viewerReactyesnonothemeno
view all comparisons →
FIG-006 / AI-READY

built for ai-assisted code.

Point Cursor, Claude Code, or any LLM at the manifests below and they know the full Svelte JSON View Lite API — props, types, snippets, themes, accessibility notes. Migration prompts from React JSON viewers have ground truth.

FIG-007 / EXAMPLES

explore interactive examples.

Playground, snippets, themes, click-to-expand behavior, and edge-case values.

view all examples →
SET / JETBRAINS MONO + INTER
HUMANSPEAK · 2026
MIT LICENCE
● 0.1.2
SHEET 07 / 07
END OF DOCUMENT
↩ TO TOP