TanStack DB logo

TanStack DB

state

A reactive client store focused on real-time sync and speed. It extends TanStack Query with typed collections, live queries, and optimistic mutations to keep UIs consistent and blazing fast.Collections model normalized, typed sets of data that can be queried reactively across relationships. Live queries deliver sub-millisecond results, even with joins, filters, and aggregates, powered by a TypeScript implementation of differential dataflow. Fine‑grained reactivity minimizes component re-renders by tracking exactly what changed.Optimistic mutations and robust transaction primitives enable instant local writes, batching and staging updates, and syncing to a backend with automatic rollbacks and lifecycle hooks. Designed for large, complex applications, it brings normalized data, fast cross-collection queries, and a smooth developer experience to any frontend stack.

Features

  • Reactive client store with typed collections
  • Live queries with joins, filters, and aggregates
  • Sub-millisecond query engine powered by differential dataflow
  • Fine-grained reactivity to minimize re-renders
  • Optimistic mutations with robust transaction primitives
  • Instant local writes with sync and lifecycle support
  • Automatic rollbacks for failed syncs
  • Normalized data modeling across collections
  • Cross-collection querying at scale
  • TypeScript-first APIs and types
  • Integrates with TanStack Query
  • Framework-agnostic usage

Stats

GitHub Stars2.9K

NPM Downloads6.1K/week

Details

Latest Version0.1.3

Created at3/11/2025

Updated at8/17/2025

LicenseMIT License

Related Items

About KickstartUI

KickstartUI is your ultimate destination for discovering the best UI frameworks, libraries, and build tools. We meticulously curate top-notch resources to empower developers in bringing their UI ideas to life. Whether you're building a responsive web app, crafting a mobile interface, or designing an interactive prototype, our platform offers the essential tools to accelerate your projects and enhance user experiences. Explore our extensive collection to stay ahead of the latest trends, unlock new possibilities, and elevate your UI designs. Ready to kickstart your next project? Dive into our featured resources or search for specific tools tailored to your needs.