TanStack DB: The Embedded Client Database for TanStack Query

This announcement introduces TanStack DB 0.1 (beta), a client-side database layer built on top of TanStack Query. It adds collections, live queries, and transactional mutations, enabling reactive, relational data handling directly in the browser. With differential dataflow at its core, it updates only what changes, delivering sub‑millisecond query results even across datasets with tens of thousands of records.
The post highlights powerful integrations: you can continue using REST or GraphQL with Query; or plug into sync engines like ElectricSQL to keep collections automatically up-to-date. TanStack DB handles optimistic writes with automatic rollback, supports joins across collections, and allows incremental adoption—layering the new system into existing apps one collection at a time.
Practical use cases include real-time dashboards, collaborative UIs, and high-interaction apps where render performance suffers under heavy state usage. With the beta available now, developers are encouraged to explore its low‑latency, reactive architecture and begin migrating parts of their tanstack-query–powered codebases.