talira

A fast, local-first, reactive database for JavaScript applications

open coreApache-2.0self-hostablefree

RxDB (Reactive Database) is a local-first NoSQL document database that runs inside JavaScript apps: browsers, Node.js, React Native, Electron, Capacitor, Deno and Bun. Data lives on the client, so queries return with zero latency and the app keeps working offline, and queries are observable: the UI can subscribe to a query's result, a document or a single field and update as it changes. Its sync engine replicates with any backend that implements three HTTP endpoints, with ready-made plugins for GraphQL, CouchDB, WebSocket, WebRTC peer-to-peer, Supabase, Firestore, MongoDB, NATS and Google Drive. Storage is pluggable (IndexedDB, OPFS, SQLite, the filesystem, Dexie.js, memory), with schemas, migrations and encryption. The core is Apache 2.0; faster storages and performance plugins are paid Pro tiers.

Problems it solves

  • my web app has to keep working offline and sync when it's back online
  • a client-side database for React Native or Electron that syncs with our own backend
  • update the UI automatically whenever data in the local database changes
  • sync browser data with CouchDB, Supabase, Firestore or a GraphQL API
  • zero-latency queries in a local-first app instead of waiting on the server
  • store structured data in IndexedDB or OPFS without its awkward API
  • peer-to-peer sync between browsers over WebRTC
  • encrypt data stored on the client

Features

  • observable queries, documents and fields
  • replication protocol over three HTTP endpoints
  • replication plugins for GraphQL, CouchDB, WebSocket, WebRTC, Supabase, Firestore, MongoDB, NATS and Google Drive
  • swappable storage engines (IndexedDB, OPFS, SQLite, filesystem, Dexie.js, memory, LokiJS)
  • JSON schema validation and migrations
  • WebCrypto encryption (Pro)
  • full-text search (Pro)
  • RxServer
  • runs in browsers, Node.js, React Native, Electron, Capacitor, Deno and Bun

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what RxDB does.

  1. PouchDB The JavaScript database that syncs
  2. Cloud Firestore A flexible, scalable NoSQL cloud database for mobile, web and server development
  3. InstantDB An open-source realtime backend with relational queries, auth, permissions, storage and presence
  4. Realm Open source object database that runs inside mobile apps

Compare RxDB with the top 3