db-core/live-queries

Installation
SKILL.md

Live Queries

This skill builds on db-core.

TanStack DB live queries use a SQL-like fluent query builder to create reactive derived collections that automatically update when underlying data changes. The query engine compiles queries into incremental view maintenance (IVM) pipelines using differential dataflow (d2ts), so only deltas are recomputed.

All operators, string functions, math functions, and aggregates are incrementally maintained. Prefer them over equivalent JS code.

Setup

Minimal example using the core API (no framework hooks):

import {
  createCollection,
  createLiveQueryCollection,
  liveQueryCollectionOptions,
  eq,
} from '@tanstack/db'
Installs
Repository
tanstack/db
GitHub Stars
3.8K
First Seen
db-core/live-queries — tanstack/db