Skip to main content

The local Database for JavaScript Applications


  • Realtime Queries
  • Realtime Replication
  • Works Offline
  • Supports all JavaScript runtimes
  • Great Performance
Get Started
RxDB github star
Open Source on
GitHub
stars
19247

Realtime applications made easy

From the results of a query, to a single field of a document, with RxDB you can observe everything. This enables you to build realtime applications fast and reliable. It does not matter if the data was changed by a user event, another browser tab or by the replication. Whenever your data changes, your UI reflects the new state.

Writeawait collection.upsert({
  id: 'foobar',
  color: '#e6008d'
});


Observeawait collection.findOne('foobar')
 .$ // get observable
 .subscribe(d => {
   screen.backgroundColor = d.color;
 });





Replicate with your existing infrastructure

RxDB supports replication with a CouchDB server or any custom GraphQL endpoint which smoothly integrates with your existing infrastructure. Also you can use the replication primitives plugin to create custom replications over any protocol like REST, Websocket, WebRTC or Firestore.

RxDB Discord chat
Chat on
Discord
members
414
offline

Online is optional

RxDB follows the Offline First paradigm where an application must work as well offline as it does online. This is done by persisting data locally on the client side and replicating it in the background. RxDB can even be used solely on the client side, with no backend at all.

  • Your application still works offline
  • Increases perceived performance
  • Easier and faster implementation
  • Needs less backend resources and scales better
angularAngular
capacitorCapacitor
denoDeno
Node.jsNode.js
ReactReact
SvelteSvelte





Flexible storage layer

RxDB is based on a storage interface that enables you to swap out the underlying storage engine. This increases code reuse because the same database code can be used in any JavaScript runtime by just switching out the storage settings.

Trusted and open source

github star
Github Stars
19247
npm downloads
npm downloads
238572
contributor
Contributors
133
commit
Commits
6891
gear
Projects build with RxDB
825
twitter
Twitter followers
2843

Pricing Models

RxDB Basics

Free & Open Source
  • Basic RxStorages
  • Realtime Replication
  • Live Queries
  • Schema Validation
  • Multi-Tab Support
  • Encryption
  • Compression
Get the Code

Consulting Session

fast in person consulting

Book a one hour consulting session with the RxDB maintainer. I will answer all your questions, give proposals for your use case and we can even do a pair programming session if you have a specific problem in your source code.
You can book this by doing a one-time donation via github sponsors.

Book Now