All Projects → infinum → Mobx Jsonapi Store

infinum / Mobx Jsonapi Store

Licence: mit
JSON API Store for MobX

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Mobx Jsonapi Store

Datx
DatX is an opinionated JS/TS data store. It features support for simple property definition, references to other models and first-class TypeScript support.
Stars: ✭ 111 (+113.46%)
Mutual labels:  data, mobx
mobx-collection-store
Data collection store for MobX
Stars: ✭ 36 (-30.77%)
Mutual labels:  data-structure, mobx
Samples
Sample projects using Material, Graph, and Algorithm.
Stars: ✭ 386 (+642.31%)
Mutual labels:  data-structure, data
Django Databrowse
Databrowse is a Django application that lets you browse your data.
Stars: ✭ 41 (-21.15%)
Mutual labels:  data
Resonance
◾️Resonance | 5kb React animation library
Stars: ✭ 1,011 (+1844.23%)
Mutual labels:  data
Getlandsat
get landsat 8 images and metadata
Stars: ✭ 47 (-9.62%)
Mutual labels:  data
Weeklypedia
A weekly email update of all the most popular wikipedia articles
Stars: ✭ 50 (-3.85%)
Mutual labels:  data
Digeds cat
This research seeks to examine best practice in the field of digital editions by collating relevant evidence in a detailed catalogue of extant digital projects.
Stars: ✭ 40 (-23.08%)
Mutual labels:  data
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 49 (-5.77%)
Mutual labels:  data
Github nuggestsforpython3.0
Modification of Github_Nuggests based on @az0ne,Thanks! This script full support for Python3.0
Stars: ✭ 45 (-13.46%)
Mutual labels:  data
Fpp3 Package
All data sets required for the examples and exercises in the book "Forecasting: principles and practice" (3rd ed, 2020) by Rob J Hyndman and George Athanasopoulos <http://OTexts.org/fpp3/>. All packages required to run the examples are also loaded.
Stars: ✭ 43 (-17.31%)
Mutual labels:  data
Awesome Competitive Programming
💎 A curated list of awesome Competitive Programming, Algorithm and Data Structure resources
Stars: ✭ 9,119 (+17436.54%)
Mutual labels:  data-structure
Data Structure And Algorithms
A complete and efficient guide for Data Structure and Algorithms.
Stars: ✭ 48 (-7.69%)
Mutual labels:  data-structure
People
Curated information on all state legislators & governors.
Stars: ✭ 42 (-19.23%)
Mutual labels:  data
Jsonapi parameters
Rails-way to consume JSON:API input
Stars: ✭ 50 (-3.85%)
Mutual labels:  json-api
Quilt
Quilt is a self-organizing data hub for S3
Stars: ✭ 1,007 (+1836.54%)
Mutual labels:  data
React Mobx Project
react-mobx-router开发模版
Stars: ✭ 49 (-5.77%)
Mutual labels:  mobx
Covid19 Brazil Timeseries
Data collection to analyze the dissemination of COVID-19 through Brazilian states. Contributions are welcome.
Stars: ✭ 43 (-17.31%)
Mutual labels:  data
Usermanager React Native
Login and Signup system with PHP/MySQL and Json in React native
Stars: ✭ 42 (-19.23%)
Mutual labels:  json-api
Mobx React Form
Reactive MobX Form State Management
Stars: ✭ 1,031 (+1882.69%)
Mutual labels:  mobx

mobx-jsonapi-store

JSON API Store for MobX

Deprecation and migration

mobx-jsonapi-store and mobx-collection-store are deprecated in favor of datx - it follows the same concepts, but adds support for MobX 4 and 5, better TypeScript support and more extensibility.

If you're new to the libraries, check out the datx examples and docs.

If you already use mobx-jsonapi-store, check out the migration guide.


Don't need any JSON API specific features? Check out mobx-collection-store.

Can be used with Redux DevTools.

Build Status Test Coverage npm version

Dependency Status devDependency Status Greenkeeper badge

Basic example

import {Store} from 'mobx-jsonapi-store';

const store = new Store();
const user = store.sync(userResponse); // Assumption: userResponse was received from some API call and it's a valid JSON API response
console.log(user.name); // "John"

For more, check out the Getting started guide.

Installation

To install, use npm or yarn. The lib has a peer dependency of mobx 2.7.0 or later (including MobX 3) and mobx-collection-store.

npm install mobx-jsonapi-store mobx-collection-store mobx --save
yarn add mobx-jsonapi-store mobx-collection-store mobx

Since the lib is exposed as a set of CommonJS modules, you'll need something like webpack or browserify in order to use it in the browser.

Don't forget to prepare your code for production for better performance!

Migration from v3 to v4

Version 4 has a few breaking changes described in the migration guide.

Getting started

The main idea behind the library is to have one instance of the store that contains multiple model types. This way, there can be references between models that can handle all use cases, including circular dependencies.

JSON API Spec

mobx-jsonapi-store is 100% compatible with the JSON API v1.0 spec

API reference

License

The MIT License

Credits

mobx-jsonapi-store is maintained and sponsored by Infinum.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].