tanstack-db-skills-tanstack-db
Installation
SKILL.md
TanStack DB Skills
TanStack DB is the reactive client store for your API. It provides sub-millisecond live queries, instant optimistic updates, and seamless integration with REST APIs and sync engines like ElectricSQL.
Routing Table
| Topic | Directory | When to Use |
|---|---|---|
| Live Queries | live-queries/ |
Querying data: filters, joins, aggregations, groupBy, orderBy, subqueries, reactive updates |
| Mutations | mutations/ |
Writing data: insert/update/delete, optimistic updates, transactions, paced mutations, error handling |
| Collections | collections/ |
Data sources: QueryCollection, ElectricCollection, local collections, sync modes, collection setup |
| Schemas | schemas/ |
Validation: schema definition, TInput/TOutput types, transformations, defaults, error handling |
| Electric | electric/ |
ElectricSQL integration: shapes, txid matching, real-time sync, proxy setup |
Quick Detection
Route to live-queries/ when: