MobX VS state

Compare MobX vs state and see what are their differences.

state

A Redux-based state container for local-first software, offering seamless synchronization using Automerge CRDTs. (Formerly known as 🐟 Cevitxe). (by local-first-web)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
MobX state
44 2
27,176 176
0.5% 2.8%
8.0 0.0
18 days ago over 1 year ago
TypeScript TypeScript
MIT License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

MobX

Posts with mentions or reviews of MobX. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-05.

state

Posts with mentions or reviews of state. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-08.
  • Show HN: SyncedStore CRDT – build multiplayer collaborative apps for React / Vue
    11 projects | news.ycombinator.com | 8 Dec 2021
    Hi! Great questions :)

    First of all, SyncedStore does not implement any CRDT algorithms. Credits for this go to Yjs [1] (and its author Kevin), which it uses as underlying CRDT.

    Yjs and Automerge are (afaik) the two most commonly used CRDT implementations. Both have their pros and cons, but Yjs has focused a lot on performance [2].

    Automerge has a bit friendlier "Immer style" [3] API. I'm not too familiar with @localfirst/state, but it seems to add a Redux style API on top of Automerge.

    My approach with SyncedStore was really to provide an API on top of Yjs that's as simple as possible to use in React / Vue / Svelte or plain JS app. I.e.: only use a single React Hook to observe changes, and use regular Javascript assigments to update values. The API is inspired mostly by Reactive Programming libraries such as MobX [4] (from the same author as Immer).

    Hope you're still following along :) Maybe it helps to compare the TODO-MVC applications, as both SyncedStore (https://github.com/YousefED/SyncedStore/tree/main/examples) and @localfirst/state (https://github.com/local-first-web/state/tree/main/examples/...) have implemented these as examples!

    [1]: https://github.com/yjs/yjs

What are some alternatives?

When comparing MobX and state you can also consider the following projects:

zustand - 🐻 Bear necessities for state management in React

automerge - A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.

RxJS - A reactive programming library for JavaScript

SyncedStore - SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.

Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

yjs - Shared data types for building collaborative software

riverpod - A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.

swarmbase - swarmbase is a peer-to-peer dweb database with access control

valtio - πŸ’Š Valtio makes proxy-state simple for React and Vanilla

automerge-rs - Rust implementation of automerge [Moved to: https://github.com/automerge/automerge]

Cycle.js - A functional and reactive JavaScript framework for predictable code

crdt-benchmarks - A collection of CRDT benchmarks