Skip to content
/ daux Public

An immutable model-based state management solution for your JavaScript apps

License

Notifications You must be signed in to change notification settings

dauxjs/daux

Repository files navigation

Daux

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.

Why use Daux?

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.

Installation

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.

Usage

Check out the docs

Contributing

Installation

  • git clone <repository-url>
  • cd daux
  • npm install

Running tests

  • npm test

License

This project is licensed under the MIT License.

About

An immutable model-based state management solution for your JavaScript apps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published