New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Jotai adapter that wires a Jotai atom in as the json-render state backend.

skills.sh installs
1.2K
GitHub stars
19.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers creating a StateStore from a writable atom via jotaiStateStore({ atom, store })
  • Includes a shared-store setup so json-render and useAtom() read the same state
  • Documents the options: atom (required, a writable atom) and store (optional, defaults to a new store)
  • Designed for apps that already manage state with Jotai and need json-render to share it

Install

$ npx -y skills add vercel-labs/json-render --skill jotai -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

@json-render/jotai

Jotai adapter for json-render's StateStore interface. Wire a Jotai atom as the state backend for json-render.

Installation

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

Usage

import { atom } from "jotai";
import { jotaiStateStore } from "@json-render/jotai";
import { StateProvider } from "@json-render/react";

// 1. Create an atom that holds the json-render state
const uiAtom = atom<Record<string, unknown>>({ count: 0 });

// 2. Create the json-render StateStore adapter
const store = jotaiStateStore({ atom: uiAtom });

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

With a Shared Jotai Store

When your app already uses a Jotai <Provider> with a custom store, pass it so both json-render and your components share the same state:

import { atom, createStore } from "jotai";
import { Provider as JotaiProvider } from "jotai/react";
import { jotaiStateStore } from "@json-render/jotai";
import { StateProvider } from "@json-render/react";

const jStore = createStore();
const uiAtom = atom<Record<string, unknown>>({ count: 0 });

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

Similar to Jotai

More Frontend & UI Code