This is a thin adapter that lets you use a Zustand vanilla store as the state backend for json-render, a library that renders UIs from JSON schemas. You wire up your Zustand store through the StateStore interface, and json-render reads and writes state through it instead of managing its own. Supports slicing into nested parts of your state tree if you don't want to hand over the whole thing. Only works with Zustand v5+, not v4, due to breaking changes in the vanilla store API. Honestly pretty niche unless you're already committed to both json-render and Zustand, but if you are, this is the glue code you need.

skills.sh installs
1.9K
GitHub stars
19.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/json-render --skill zustand --agent claude-code

Installs into .claude/skills of the current project.

Files

@json-render/zustand

Zustand adapter for json-render's StateStore interface. Wire a Zustand vanilla store as the state backend for json-render.

Installation

npm install @json-render/zustand @json-render/core @json-render/react zustand

Requires Zustand v5+. Zustand v4 is not supported due to breaking API changes in the vanilla store interface.

Usage

import { createStore } from "zustand/vanilla";
import { zustandStateStore } from "@json-render/zustand";
import { StateProvider } from "@json-render/react";

// 1. Create a Zustand vanilla store
const bearStore = createStore(() => ({
  count: 0,
  name: "Bear",
}));

// 2. Create the json-render StateStore adapter
const store = zustandStateStore({ store: bearStore });

// 3. Use it
<StateProvider store={store}>
  {/* json-render reads/writes go through Zustand */}
</StateProvider>

With a Nested Slice

const appStore = createStore(() => ({
  ui: { count: 0 },
  auth: { token: null },
}));

const store = zustandStateStore({
  store: appStore,
  selector: (s) => s.ui,
  updater: (next, s) => s.setState({ ui: next }),
});

API

zustandStateStore(options)

Sponsors

Details

Repository
github.com/vercel-labs/json-render
Categories
Frontend Development, Cloud & Infrastructure
First seen
May 16, 2026

More from vercel-labs/json-render

All 31
1affaan-m avatarfrontend-designaffaan-m/everything-claude-codefrontend design1.8Kskills.sh installs
2everyinc avatarce-frontend-designeveryinc/compound-engineering-pluginBuild web interfaces with genuine design quality, not AI slop. Use for any frontend work - landing pages, web apps, dashboards, admin panels, components, intera1.8Kskills.sh installs
3github avataroo-component-documentationgithub/awesome-copilotCreate or update standardized object-oriented component documentation using a shared template plus mode-specific guidance for new and existing docs.1.8Kskills.sh installs
4affaan-m avatarangular-developeraffaan-m/everything-claude-codeangular developer1.7Kskills.sh installs
5affaan-m avatarfrontend-design-directionaffaan-m/everything-claude-codefrontend design direction1.7Kskills.sh installs
6lotosbin avatarui-ux-designerlotosbin/claude-skillsui ux designer1.7Kskills.sh installs