TanStackDB
BETA

A reactive client store for building super fast apps on sync

TanStack DB extends TanStack Query with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥

Get Started
8888888,809
NPM Downloads
3,087
Stars on Github
41
Contributors on GitHub
0
Dependents on GitHub

Collections

Collections are typed sets of objects. Sync or load data into them. Query across them with live queries and write locally to them using optimistic mutations.

Live Queries

Live queries run reactively against and across collections. They're super fast, powered by differential dataflow, with support for joins, filters and aggregates.

Optimistic mutations

Batch and stage instant local changes across collections. Sync transactions to the backend with automatic management of rollbacks and optimistic state.

Blazing fast apps 🔥

Built on a Typescript implementation of differential dataflow, TanStack DB gives you real-time sync, live queries and local writes. With no stale data, super fast re-rendering and sub-millisecond cross-collection queries — even for large complex apps.

🔥 Blazing fast query engine

For sub-millisecond live queries.

âš¡ Instant local writes

With sync and lifecycle support.

🎯 Fine-grained reactivity

To minimize component re-rendering.

🌟 Normalized data

To keep your backend simple and fast.

Partners

Code Rabbit
TanStack uses CodeRabbit to streamline reviews and elevate code quality. Its AI flags readability, correctness, and security issues on pull requests, reducing back-and-forth and review time. That lets us focus on architectural decisions and ship with confidence—fewer regressions, faster cycles.
Learn More
Cloudflare
Cloudflare and TanStack are partnering to bring global edge performance, serverless compute, and robust security to modern apps built with TanStack. From Workers and KV to CDN and security, Cloudflare helps TanStack developers ship faster and scale effortlessly.
Learn More
Electric
Electric and TanStack are teaming up on TanStack DB to bringrobust real-time sync to mainstream apps. ElectricSQL delivers offline-first data, conflict resolution, and low-latency replicationbacked by Postgres—no bespoke plumbing required. Paired with TanStack DB's type-safe APIs and developer experience, teams can ship collaborative features faster and keep UIs consistent across clients and the edge.
Learn More
Prisma
TanStack and Prisma Postgres: Skip the database setup, get to building. Prisma Postgres provisions production-ready Postgres databases in seconds—no resource config, no infrastructure planning, no late-night "why is my connection pool maxed out?" debugging sessions. Just connect your TanStack app and start building features that matter.
Learn More
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
An ad on an open source project? What is this, 1999?
Please... TanStack is 100% privately owned, with no paid products, venture capital, or acquisition plans. We're a small team dedicated to creating software used by millions daily. What did you expect?
Check out our ethos to learn more about how we plan on sticking around (and staying relevant) for the long-haul.
Wow, you've come a long way!
Only one thing left to do...
Get Started!