React package · v0.1.0
react-json-glimpse
A small, virtualized JSON viewer for React apps where payload previews need to be readable, fast, and boring in the best way.
React package · v0.1.0
A small, virtualized JSON viewer for React apps where payload previews need to be readable, fast, and boring in the best way.
Why it exists
Sometimes the job is simple: show a large JSON payload without making the page feel large. Visible rows are virtualized, collapsed branches stay cheap, and styling uses CSS variables instead of another theme dependency.
Live demo
180 nested rows, rendered through the actual package.
payload.summary
Object(4)
Install
pnpm add react-json-glimpseUse
import { JsonGlimpse } from "react-json-glimpse";
export function PayloadPreview({ payload }: { payload: unknown }) {
return (
<JsonGlimpse
value={payload}
height={520}
initialExpandedDepth={2}
onSelect={({ path, value }) => console.log(path, value)}
/>
);
}What it is good at
Need a clearer way to inspect JSON?
Open the package to install it, or contact me to talk through your React data-preview use case.