A system to use Redux without writing action creators, reducers, or dispatch calls.
Redux-Schema is a library that automates Redux state management by generating actions, reducers, and validation from schema definitions. It solves the problem of Redux boilerplate by allowing developers to define models with types and methods, then interact with state using familiar object-oriented syntax while maintaining Redux's immutable principles.
Frontend developers using Redux who want to reduce boilerplate code for actions and reducers, especially those building complex applications with many state mutations.
Developers choose Redux-Schema because it eliminates the need to manually write action creators, reducers, and dispatch calls, reducing code volume and maintenance while providing an intuitive object-oriented interface to Redux state.
Automatic actions, reducers and validation for Redux
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically generates actions and reducers from schemas, drastically reducing code volume as demonstrated in the todo example comparison to vanilla Redux.
Handles union types and references natively, enabling sophisticated data structures like circular relationships without manual implementation.
Provides class-like syntax with constructors, getters, setters, and methods, making state mutations feel more natural and less fragmented.
Caches identical object references to ensure data integrity, as shown in the address example where ref1 === ref2 despite state changes.
The README explicitly lists missing capabilities like setting defaults and automatic promise resolution, indicating it's not production-ready for all use cases.
Admits being a work in progress with 'Better documentation' needed, which can hinder onboarding and troubleshooting.
As a niche library, it lacks the community support, plugins, and resources of mainstream Redux solutions, making integration and debugging more challenging.