SyncedStore VS RxDB

Compare SyncedStore vs RxDB and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
SyncedStore RxDB
7 46
1,618 20,581
- -
4.6 9.9
about 2 months ago about 15 hours ago
TypeScript TypeScript
MIT License Apache License 2.0
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.

SyncedStore

Posts with mentions or reviews of SyncedStore. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-02.
  • Local-first software: You own your data, in spite of the cloud (2019)
    8 projects | news.ycombinator.com | 2 Oct 2023
    This article has been quite the inspiration for many projects and progress on this front. I think we're seeing more and more developments around CRDTs and local-first frameworks / applications.

    I'm working on a few projects in this area:

    - https://www.typecell.org - Notion meets Notebook-style live programming for TypeScript / React

    - https://www.blocknotejs.org - a rich text editor built on TipTap / Prosemirror that supports Yjs for local-first collaboration

    - https://syncedstore.org - a wrapper around Yjs for easier development

    In my experience so far, some things get more complicated when building a local-first application, and some things get a lot easier. What gets easier is that once you've modeled and implemented the data-layer (which does require you to rethink / unlearn a few principles), you don't need to worry about data-fetching, errors etc. as much as in a regular "API-based" app.

    Another interesting video I recommend on this topic is about Linear's "Sync Engine" which employs some of the local-first techniques as well: https://www.youtube.com/watch?v=Wo2m3jaJixU

  • SyncedStore - build CRDT-powered collaborative Vue apps for the web
    1 project | /r/vuejs | 8 Dec 2021
  • SyncedStore - build CRDT-powered collaborative React apps for the web
    1 project | /r/reactjs | 8 Dec 2021
  • SyncedStore - build multiplayer CRDT-powered collaborative apps for the web
    1 project | /r/javascript | 8 Dec 2021
    1 project | /r/webdev | 8 Dec 2021
  • 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

  • Web Applications from the Future: A Database in the Browser
    2 projects | news.ycombinator.com | 8 Jun 2021
    I’m exploring the ideas (an easy to use framework to build local-first [1] apps) in my library Reactive-CRDT (https://github.com/yousefed/reactive-crdt). Feedback welcome!

    All credit for the underlying tech to YJS, which has been amazing as mentioned by others in this thread.

    [1]: https://www.inkandswitch.com/local-first.html

RxDB

Posts with mentions or reviews of RxDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-17.
  • Ask HN: How Can I Make My Front End React to Database Changes in Real-Time?
    8 projects | news.ycombinator.com | 17 Apr 2024
    I'm interested in this problem also!

    I think there is a large overlap with projects that market/focus on offline-first experiences.

    AFAIK this problem can be solved by:

    1) Considering a client-side copy of the database that gets synced with the remote DB. This is an approach [PowerSync](https://www.powersync.com/) and [ElectricSql](https://electric-sql.com/) and [rxdb](https://rxdb.info/) take!

  • You can't leak users' data if you don't hold it
    2 projects | news.ycombinator.com | 30 Mar 2024
    Hey, after I posted that, I went and gave a second look online to see if I could find something that would allow me to develop a local-first app with offline persistence and syncing capabilities.

    I ended up finding some possibilities out there that could potentially help me build stuff. One of them is RxDB [1], which offers WebRTC syncing - you'd still need a signaling server, I suppose, but all sensitive information could be synced E2E-encrypted via WebRTC.

    Then there's CRDT's [2], which is a universe that turned out to have multiple possibilities that match (at least partially) my needs. In particular, the next thing I want to take a look at is cr-sqlite [3], which might be just thing I needed to kick-off some side-projects.

    I'm posting here cause I just found some hope of not needing to build a traditional client-server app and having to deal with all the hassle involved in securing a server (and with fear that my efforts could be not good enough), and I thought someone else could benefit from getting to know these things.

    [1] https://rxdb.info/

  • SignalDB: Bringing Meteor-Like Reactivity to the Modern Age
    1 project | dev.to | 26 Oct 2023
    About a year ago, I discovered a cool offline-first framework called RxDB. Initially, I thought that on the frontend side, this was exactly what I had been searching for over the past years. After tinkering around and even using it in production for some time, I realized that it wasn't well-suited for my intended use. RxDB was initially created as an RxJS layer for PouchDB with a server replication interface. Over time, other storage types besides PouchDB were introduced (e.g., IndexedDB, SQLite) and the replication interface became more sophisticated. The replication interface is really cool and exactly what I wanted. The biggest problem I have with RxDB is that it is so tightly coupled with RxJS. While RxJS is technically very powerful, it offers a dreadful developer experience. It's really hard to understand at first and integrating it into an existing codebase, which isn't using RxJS, is tedious.
  • Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
    10 projects | news.ycombinator.com | 20 Sep 2023
    Congrats to the team. Once I’ve tried https://rxdb.info/ and it wasn’t funny at all to do the remote replication (PG) and to deal with conflicts. I do need to check this out!
  • What is the best DB for offline-first?
    3 projects | /r/reactnative | 14 Sep 2023
    RxDB (Open Source but paid plugins)
  • RxDB VS signaldb - a user suggested alternative
    2 projects | 1 Aug 2023
  • RxDB: The Local Database for JavaScript Applications
    1 project | news.ycombinator.com | 12 Jun 2023
  • RxDB - The local Database for JavaScript Applications
    1 project | /r/node | 12 Jun 2023
  • Best offline&local database to use with electron?
    2 projects | /r/electronjs | 11 Jun 2023
  • Offline First
    1 project | news.ycombinator.com | 18 May 2023

What are some alternatives?

When comparing SyncedStore and RxDB you can also consider the following projects:

FluidFramework - Library for building distributed, real-time collaborative web applications

WatermelonDB - 🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️

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

TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

adama-lang - A headless spreadsheet document container service.

PouchDB - :koala: - PouchDB is a pocket-sized database.

Immer - Create the next immutable state by mutating the current one

Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

osmosis-js - JS reference implementation of Osmosis, a JSON data store with peer-to-peer background sync

ObjectBox Java (Kotlin, Android) - Java and Android Database - fast and lightweight without any ORM

y-websocket - Websocket Connector for Yjs

Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.