TanStack DB
Reactive client store that loads API data into typed collections and queries it with live queries and optimistic mutations.
TanStack DB is a client-side store that holds API data in typed collections. Components read it through live queries, which update affected results as the underlying records change. Writes apply to the collection at once and are rolled back if the handler you define fails to persist them to the server. The project describes itself as an extension of TanStack Query that adds collections, live queries and optimistic mutations. Collections can be filled from TanStack Query, from a sync engine such as ElectricSQL or PowerSync, or from browser storage.
Each framework has its own npm package that re-exports the core package, so the core API is available from React, Vue, Svelte, Solid, Preact and Angular alike. The installation guide lists those packages next to the collection and persistence packages.
Worth knowing
The README says the project is in beta, and the overview includes a migration guide for the release candidate.
Sources
- 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/TanStack/db - 2026-11-16: links, Categories, Built on
tanstack.com/db/latest/docs/overview - 2026-11-16: Maintainer
raw.githubusercontent.com/TanStack/db/main/LICENSE - 2026-11-16: Categories
raw.githubusercontent.com/TanStack/db/main/README.md - 2026-11-16: First release, Current major version
api.github.com/repos/TanStack/db/releases - 2026-11-16: Last release
registry.npmjs.org/@tanstack/db - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@tanstack/db - 2026-11-16: Contributors
api.github.com/repos/TanStack/db/contributors?per_page=1 - 2026-11-16: Install with
tanstack.com/db/latest/docs/installation