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

Redux adapter that backs json-render's StateStore with a Redux or Redux Toolkit store.

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

What it does

  • Covers wiring a Redux store or Redux Toolkit slice as the state backend for json-render's StateStore interface
  • Provides reduxStateStore({ store, selector, dispatch }) to select the json-render slice and replace it through a dispatched action
  • Requires a selector that picks the json-render state from the Redux tree, or (s) => s when the whole state is the model
  • Designed for integrating json-render with Redux or Redux Toolkit through @json-render/redux, @json-render/core, and @json-render/react

Install

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

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

Files

@json-render/redux

Redux adapter for json-render's StateStore interface. Wire a Redux store (or Redux Toolkit slice) as the state backend for json-render.

Installation

npm install @json-render/redux @json-render/core @json-render/react redux
# or with Redux Toolkit (recommended):
npm install @json-render/redux @json-render/core @json-render/react @reduxjs/toolkit

Usage

import { configureStore, createSlice } from "@reduxjs/toolkit";
import { reduxStateStore } from "@json-render/redux";
import { StateProvider } from "@json-render/react";

// 1. Define a slice for json-render state
const uiSlice = createSlice({
  name: "ui",
  initialState: { count: 0 } as Record<string, unknown>,
  reducers: {
    replaceUiState: (_state, action) => action.payload,
  },
});

// 2. Create the Redux store
const reduxStore = configureStore({
  reducer: { ui: uiSlice.reducer },
});

// 3. Create the json-render StateStore adapter
const store = reduxStateStore({
  store: reduxStore,
  selector: (state) => state.ui,
  dispatch: (next, s) => s.dispatch(uiSlice.actions.replaceUiState(next)),
});

Details

Repository
github.com/vercel-labs/json-render
Categories
Frontend & UI Code, AI Agents & LLM Apps
First seen
May 16, 2026

More from vercel-labs/json-render

All 30

Similar to Redux

More Frontend & UI Code