Daux is an immutable model-based state management solution for your JavaScript apps. It's built by combining some of the concepts of Ember Data and Redux.
In our apps, we usually have models that represent critical states. For example, in a social network app, they may be users, groups, posts, comments, etc. The non-critical states are the likes of "is this dialog open?". For the former, we'll be using Daux to manage those states.
These model states tend to be complex, repetitive, and problematic to implement. Some of the challenges includes:
- Deserializing our API response
- Caching the data
- Maintaining relationships
With Daux, the Store will be able to do all those for you.
Assuming that you're using npm as your package manager:
npm install --save daux
If you're not using any module bundler, you can use the precompiled production and development UMD builds in the dist folder. For this build, Daux would be available as a window.Daux global variable. You can download the files at unpkg.
Check out the docs
git clone <repository-url>cd dauxnpm install
npm test
This project is licensed under the MIT License.