Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rxdb

> 前端框架
Open source

The local-first database that runs on every JS runtime and replicates with your existing backend - no vendor, no lock-in - https://rxdb.info/

23.3K stars0 likes3 views
WebsiteGitHub

About

The local-first database that runs on every JS runtime and replicates with your existing backend - no vendor, no lock-in - https://rxdb.info/


A fast, local-first, reactive Database for JavaScript Applications


       

     


  What is RxDB?

RxDB (short for Reactive Database) is a local-first, NoSQL-database for JavaScript Applications. Reactive means that you can not only query the current state, but subscribe to all state changes like the result of a query or even a single field of a document. This is great for UI-based realtime applications in a way that makes it easy to develop and also has great performance benefits.

Use the quickstart, read the documentation or explore the example projects.

  Used by many

RxDB is a proven technology used by thousands of developers worldwide. With its flexibility, RxDB is used in a diverse range of apps and services.


(add yours)

  Multiplayer realtime applications

  Replicate with your existing infrastructure

RxDB provides an easy to implement, battle-tested Sync Engine for realtime replication with your existing infrastructure.
You do not have to use a specific cloud or backend database. The protocol works by implementing three simple HTTP endpoints. There are also production-ready plugins to easily replicate with GraphQL, CouchDB, Websocket, WebRTC (P2P), Supabase, Firestore, NATS or Google Drive.

  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 different JavaScript environments by just switching out the storage settings.

You can use RxDB on top of LocalStorage, IndexedDB, OPFS, LokiJS, Dexie.js, in-memory, SQLite, in a WebWorker thread and even on top of FoundationDB and DenoKV.

No matter what kind of runtime you have, as long as it runs JavaScript, it can run RxDB:

Browsers

Node.js

React Native

Capacitor

NativeScript

Flutter or as an Electron Database

All the features that you need

Since its beginning in 2018, RxDB has gained a huge set of features and plugins which makes it a flexible full solution regardless of which type of application you are building. Every feature that you need now or might need in the future is already there.

Logging
Attachments
ORM
Conflict Handling
Middleware
Signals
TanStack DB
State
Backup
Replication
Server
Storages
Local Documents
Schema Validation
Compression
Migration
Encryption
CRDT
Population

  Quick start

Install

bash
npm install rxdb rxjs --save

Store data

…

Query data once

javascript
const aliveHeroes = await db.heroes.find({
  selector: {
    healthpoints: {
      $gt: 0
    }
  }
}).exec(); // the exec() returns the result once

Observe a Query

javascript
await db.heroes.find({
  selector: {
    healthpoints: {
      $gt: 0
    }
  }
})
.$ // the $ returns an observable that emits each time the result set of the query changes
.subscribe(aliveHeroes => console.dir(aliveHeroes));

  Get started

Get started now by reading the docs or exploring the example-projects.

  Support and Contribute

  • Leave a Star ☝️
  • Check out how you can contribute to this project.
  • Read this when you have found a bug
  • Buy access to the premium plugins
  • Join us at discord to get help
  • Follow us at LinkedIn

More content

Angular Database, Frontend Database, localStorage, React Database, Browser Database, React Native Database, PWA Database, In-memory NoSQL database, JSON database, Angular IndexedDB, 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, TanStack DB Offline, DDIL Database


View llms.txt

Issues· 22 open

View all issuesOpen on GitHub
  • #9145

    Schema migration silently drops documents with premium IndexedDB storage and `multiInstance: false`

    Updated Sep 28, 2026
  • #9128

    addCollections() throws DB6 for an unchanged schema after the device locale changes

    Updated Sep 24, 2026
  • #9127

    A rejected first start() of a replication is unhandled and every later start() rejects with it

    Updated Sep 23, 2026
  • #9061

    Dexie.js RxStorage: find() and findOne() with a selector always returns empty or null respectively

    needs test case :mag_right:staleUpdated Sep 23, 2026
  • #9023

    Fulltext Search High memory usage with 200K+ documents during rehydration and cleanup

    staleUpdated Sep 10, 2026
  • #8965

    React useRxDocument starts loading:false; hooks commit stale settled data on key/query change

    staleUpdated Sep 10, 2026
  • #8473

    Bug: Array fields are not supported in Supabase replication (push fails with "unknown how to handle type: object")

    staleUpdated Sep 3, 2026

> Tags

TypeScriptangularbrowser-databasecouchdbcrdt

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架