MCPcopy Index your code
hub / github.com/ctrlplusb/easy-peasy

github.com/ctrlplusb/easy-peasy @v6.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.1.1 ↗ · + Follow
346 symbols 909 edges 167 files 11 documented · 3% 23 cross-repo links updated 10d agov6.1.1 · 2026-04-08★ 5,0422 open issues

Browse by type

Functions 201 Types & classes 145
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

 

Vegetarian friendly state for React

 

npm MIT License Codecov

Easy Peasy is an abstraction of Redux, providing a reimagined API that focuses on developer experience. It allows you to quickly and easily manage your state, whilst leveraging the strong architectural guarantees and extensive eco-system that Redux has to offer.

  • Zero configuration
  • No boilerplate
  • React hooks based API
  • Extensive TypeScript support
  • Encapsulate data fetching
  • Computed properties
  • Reactive actions
  • Redux middleware support
  • State persistence
  • Redux Dev Tools
  • Global, context, or local stores
  • Built-in testing utils
  • React Native supported
  • Hot reloading supported

 

All of this comes via a single dependency install.

npm install easy-peasy

 

Fly like an eagle 🦅

Create your store

const store = createStore({
  todos: ['Create store', 'Wrap application', 'Use store'],

  addTodo: action((state, payload) => {
    state.todos.push(payload);
  }),
});

Wrap your application

function App() {
  return (
    <StoreProvider store={store}>
      <TodoList />
    </StoreProvider>
  );
}

Use the store

function TodoList() {
  const todos = useStoreState((state) => state.todos);
  const addTodo = useStoreActions((actions) => actions.addTodo);
  return (



      {todos.map((todo, idx) => (


{todo}


      ))}
      <AddTodo onAdd={addTodo} />



  );
}

 

Examples 📚

See the example folder for more examples of how to use easy-peasy.

 

Core Team 🛠

Peter Weinberg Jørn A. Myrland Sean Matheson

 

Our Sponsors ❤️

We have only but great appreciation to those who support this project. If you have the ability to help contribute towards the continued maintenance and evolution of this library then please consider [becoming a sponsor].

 

Documentation

See the official website for tutorials, docs, recipes, and more.

 

OS Awards Nominee

Easy Peasy was nominated under the "Productivity Booster" category.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 181
Interface 131
Method 20
Class 14

Languages

TypeScript95%
Java5%

Modules by API surface

tests/typescript/giant-model.ts23 symbols
index.d.ts23 symbols
src/persistence.js16 symbols
src/lib.js15 symbols
tests/typescript/generic-model.ts10 symbols
src/helpers.js10 symbols
src/hooks.js9 symbols
tests/use-store-state.test.js8 symbols
src/create-store.js8 symbols
examples/react-native-todo/android/app/src/main/java/com/reactnativetodo/MainApplication.java8 symbols
tests/store.test.js7 symbols
tests/typescript/create-context-store.tsx6 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/cli7.22.9 · 1×
@babel/core7.22.9 · 1×
@babel/eslint-parser7.22.9 · 1×
@babel/node7.22.6 · 1×
@babel/plugin-external-helpers7.22.5 · 1×
@babel/plugin-proposal-object-rest-spread7.20.7 · 1×
@babel/plugin-transform-react-jsx7.22.5 · 1×
@babel/plugin-transform-runtime7.22.9 · 1×
@babel/polyfill7.12.1 · 1×
@babel/preset-env7.22.9 · 1×
@babel/preset-react7.22.5 · 1×
@babel/preset-typescript7.22.5 · 1×

For agents

$ claude mcp add easy-peasy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page