ai-agent

Redux Undo

:recycle: higher order reducer to add undo/redo functionality to redux state containers
2,903 stars184 forksJavaScriptUpdated 1/2/2026100% free · open source
What it does

The redux-undo tool adds undo/redo functionality to Redux state containers, allowing users to easily revert or reapply changes made to their application's state.

When to use it
  • When building a complex editing interface where users need to easily undo and redo actions
  • When creating a real-time collaboration tool where multiple users can edit the same document or data
  • When developing a data visualization or analysis tool where users need to experiment with different scenarios and easily revert changes
Ready-to-paste prompt
const undoableReducer = undoable((state = { counter: 0 }, action) => { if (action.type === 'INCREMENT') return { counter: state.counter + 1 }; return state; });
Heads up: Make sure to handle the 'undo' and 'redo' actions in your reducer, or use the 'ignore' option when creating the undoable reducer to ignore certain actions, as some actions may not be intended to be undoable
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/redux-undo && curl -fsSL https://workflowstacks.com/api/skills/redux-undo/claude-skill -o ~/.claude/skills/redux-undo/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Redux Undo works
Codeflow
Free to inspect

Redux Undo is a small JavaScript project (~750 lines across 29 code files, plus 2 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 8 months ago, MIT license, has a test suite.

Size
Small codebase
~750 lines · 29 code files · 6 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 99%TypeScript 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    examples/throttled-drag/.babelrc
    A worked example — copy this to get going
What's in each folder
src/Core code — the actual logic5 files
examples/Examples you can copy31 files
docs/Documentation9 files
.github/CI / automation (GitHub Actions)3 files
test/Tests — proof it works2 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseLast update 8 mo agoArchived — read only
Quick Actions
Details
Creator
omnidan
Language
JavaScript
Category
ai-agent
Published
9/17/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.