/libx

Collection + Model infrastructure for MobX applications.

Primary LanguageTypeScriptMIT LicenseMIT

libx

npm dependency Status devDependency Status Build Status Coveralls npm npm node

Collection + Model infrastructure for MobX applications. Written in TypeScript.

Install

npm install --save libx

Why?

Maintaining large application state is hard. Maintaining single references to entities for a single source of truth is hard. But it doesn't have to be.

LibX is inspired by Backbone's notion of Collections and Models, and makes it sexy by using MobX to manage state, instead of using events.

TL;DR: Maintaining only a single instance of a model is a chore. With LibX, it's not.

Examples

See the TypeScript example and Babel example for runnable examples (in Node).

Documentation

Coming sooner or later - until then, feel free to inspect the examples and source code.

Author

Jeff Hansen - @Jeffijoe