MCPcopy Create free account
hub / github.com/TanStack/db

github.com/TanStack/db @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,951 symbols 15,099 edges 700 files ⚖ MIT 482 documented · 12% 48 cross-repo links updated 1d ago@tanstack/offline-transactions@1.0.45 · 2026-08-13★ 3,868146 open issues

Browse by type

Functions 3,143 Types & classes 808
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

<a href="https://npmjs.com/package/@tanstack/db" target="\_parent">
  <img alt="" src="https://img.shields.io/npm/dm/@tanstack/db.svg" alt="npm downloads" />
</a>
<a href="https://github.com/TanStack/db" target="\_parent">
  <img alt="" src="https://img.shields.io/github/stars/TanStack/db.svg?style=social&label=Star" alt="GitHub stars" />
</a>
<a href="https://bundlejs.com/?q=%40tanstack%2Fdb&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
  <img alt="" src="https://deno.bundlejs.com/?q=@tanstack/db&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" alt="Bundle size" />
</a>







<a href="#status">
<img src="https://img.shields.io/badge/status-beta-yellow" alt="Status - BETA">

Best of JS Follow @TanStack

Become a Sponsor!

TanStack DB

Tanstack DB is currently in BETA. See the release post for more details.

The reactive client store for your API.

TanStack DB solves the problems of building fast, modern apps, helping you:

  • Avoid endpoint sprawl and network waterfalls by loading data into normalized collections
  • Optimise client performance with sub-millisecond live queries and real-time reactivity
  • Take the network off the interaction path with instant optimistic writes

Data loading is optimized. Interactions feel instantaneous. Your backend stays simple and your app stays blazing fast. No matter how much data you load.

Read the docs →

Get Involved

Partners

CodeRabbit Cloudflare
ElectricSQL logo Prisma

DB & you?

We're looking for TanStack DB Partners to join our mission! Partner with us to push the boundaries of TanStack DB and build amazing things together.

LET'S CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com » v>

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 1,957
Method 1,186
Class 515
Interface 293

Languages

TypeScript100%

Modules by API surface

packages/db/src/errors.ts264 symbols
packages/db-sqlite-persistence-core/src/persisted.ts113 symbols
packages/db/src/utils/btree.ts62 symbols
packages/db/src/query/live/collection-config-builder.ts56 symbols
packages/db-sqlite-persistence-core/src/sqlite-core-adapter.ts55 symbols
packages/query-db-collection/src/query.ts50 symbols
packages/db/src/query/builder/functions.ts46 symbols
packages/query-db-collection/src/errors.ts42 symbols
packages/electric-db-collection/src/electric.ts42 symbols
packages/db/src/query/ir.ts42 symbols
packages/db/src/query/compiler/index.ts41 symbols
packages/db/src/collection/index.ts41 symbols

Dependencies from manifests, versioned

@angular/build20.3.16 · 1×
@angular/cli20.3.16 · 1×
@angular/common20.3.16 · 1×
@angular/compiler20.3.16 · 1×
@angular/compiler-cli20.3.16 · 1×
@angular/core20.3.16 · 1×
@angular/forms20.3.16 · 1×
@angular/platform-browser20.3.16 · 1×
@angular/platform-browser-dynamic20.3.16 · 1×
@angular/router20.3.16 · 1×
@babel/core7.29.0 · 1×
@capacitor-community/sqlite8.0.1 · 1×

Datastores touched

todo_appDatabase · 1 repos
e2e_testDatabase · 1 repos
shopping_listDatabase · 1 repos

For agents

$ claude mcp add db \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page