Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.
Overview
RxDB is a local-first NoSQL database for JavaScript applications. Data lives on the client for low-latency reads and offline use, while a sync engine can keep collections aligned with remote infrastructure when connectivity returns.
Queries are reactive: besides reading current state, applications can subscribe to changes in query results or individual document fields, which suits UI layers that must stay in sync with stored data.
Replication can target custom HTTP endpoints with three required routes, or use ready-made plugins for GraphQL, CouchDB, WebSockets, WebRTC peer sync, Supabase, Firestore, NATS, Google Drive, and other backends noted in the documentation. The storage layer is swappable across IndexedDB, LocalStorage, SQLite, in-memory stores, worker threads, and additional engines.
The project ships with plugins for attachments, encryption, schema validation, migrations, conflict handling, CRDT-related features, backups, and server-side tooling. It is used across browsers, Node.js, React Native, Capacitor, NativeScript, Flutter wrappers, and Electron-style desktop apps.
Key features
- Reactive query subscriptions
- Offline local-first storage
- Pluggable storage engines
- HTTP sync with three endpoints
- GraphQL and CouchDB replication
- Schema validation and migrations
- Conflict handling and CRDT support
- Encryption and attachments
Use cases
- Offline-capable mobile field apps
- Realtime multiplayer interfaces
- Progressive web app data layers
- Cross-platform shared schemas
- Electron and hybrid app storage
Open-source alternative to
Firebase Realtime Database“exedDB, React IndexedDB, Optimistic UI, local database, React Native Encryption, Vue Database, jQuery Database, Vue IndexedDB, Firestore Alternative, Firebase Realtime Database Alternative, Ionic Storage, Electron SQLite, SQLite Sync, TanStack DB Offline, DDIL Database” source