
Zustand
vercel-labs/json-renderOfficial
Zustand v5 adapter that wires a vanilla Zustand store in as json-render's state backend.
- skills.sh installs
- 1.9K
- GitHub stars
- 19.8K
- last updated
- Aug 21, 2026
What it does
- Covers creating a
StateStorefrom a Zustand vanilla store viazustandStateStore({ store })for use withStateProvider - Includes optional
selectorandupdateroptions for binding a nested slice and controlling how state is written back - Defaults to reading the entire store state and applying updates as a shallow merge unless overridden
- Requires Zustand v5 or later, since v4 is unsupported because of breaking changes to the vanilla store interface
Install
$ npx -y skills add vercel-labs/json-render --skill zustand -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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)
Details
- Repository
- github.com/vercel-labs/json-render
- Category
- Frontend & UI Code
- First seen
- May 16, 2026
More from vercel-labs/json-render
All 30- Remotion1.8K
- Image1.6K
- Remotion Best Practices1.6K
- Vue1.4K
- React Email1.4K
- Ink1.3K
- Svelte1.3K
- Shadcn Svelte1.2K
- Redux1.2K
- Jotai1.2K
- Xstate1.1K
- Solid1.1K
- Yaml1.1K
- Json Render React391
- Json Render Core340
- Json Render Shadcn255
- Json Render Remotion153
- Json Render React Native142
- React19.1K
- Core17.7K
- Codegen8.9K
- Next8.6K
- Devtools8.4K
- Directives8.1K
Similar to Zustand
More Frontend & UI Code
reduxSkillvercel-labs/json-render1.2K installsRedux adapter that backs json-render's StateStore with a Redux or Redux Toolkit store.
xstateSkillvercel-labs/json-render1.1K installsAdapter that wires an @xstate/store atom in as the json-render state backend.
tanstack-storeSkilltanstack-skills/tanstack-skills1.9K installsFramework-agnostic reactive store with Derived and Effect primitives plus adapters for five frameworks.
store-data-structuresSkilllobehub/lobehub2.4K installsCompatibility entry that points Zustand store data-shape work to its reference guide.
jutsu-zustandPluginTheBushidoCollective/han201 starsComprehensive Zustand state management skills for React applications with store patterns, middleware, and TypeScript integration.