Loading video...

Video Failed to Load

Go Home

TanStack DB 1.0 RC1 is out! Backend data that feels local: typed collections, live queries, and edits that show up instantly, then sync. Start with your REST API. Add persistence, offline writes, and real-time sync later. Your queries stay the same.

111,426 views • 3 days ago •via X (Twitter)

29 Comments

TANSTACK's profile picture
TANSTACK3 days ago

DB loads records from your API or sync engine into typed collections. Live queries join and filter across them and update as data changes. Optimistic edits apply at once and sync to your backend, with rollbacks handled for you.

TANSTACK's profile picture
TANSTACK3 days ago

You adopt it a step at a time. Start with your existing REST APIs and TanStack Query. Add local persistence, durable offline writes, or real-time sync when you need them. The query model stays the same, so going local-first doesn't mean a rewrite.

TANSTACK's profile picture
TANSTACK3 days ago

New since 0.6: • Server rendering and deep TanStack Start integration • Neon Realtime and Convex adapters • Preact, our sixth framework adapter • Faster and smaller, with a long list of bug fixes

TANSTACK's profile picture
TANSTACK3 days ago

Teams already ship DB in production: Prisma in Prisma Studio, Unkey across its developer dashboard, and Skylight in its React Native family calendar app, offline features included. The core DB package now gets over a million weekly npm downloads.

TANSTACK's profile picture
TANSTACK3 days ago

How we got to 1.0: 211 oracle test files across 15 packages. Each oracle is a small, independent model of how part of DB should behave. Generated histories run through both, and any mismatch is a bug or a design question. 420K lines of new tests later, the API is stable.

TANSTACK's profile picture
TANSTACK3 days ago

Try the RC in your most demanding app and tell us how it goes. Get started: Upgrading: Release post:

TANSTACK's profile picture
TANSTACK3 days ago

Built by @kylemathews , @samwillis , and @KevinDP55 with the TanStack community, and backed by @ElectricSQL and @neondatabase. Thank you to everyone who filed issues, sent PRs, and shipped DB before 1.0.

Andric's profile picture
Andric3 days ago

Is that Convex support I spy! Finally!

Eddie's profile picture
Eddie3 days ago

Does it work with React Native?

Arne Wiese's profile picture
Arne Wiese3 days ago

This is the only thing I’m missing with @convex for offline support 🫣

Andre Landgraf's profile picture
Andre Landgraf3 days ago

Huge

Brandon 🚀 Ravion's profile picture
Brandon 🚀 Ravion3 days ago

🚀

Behrooz's profile picture
Behrooz3 days ago

This is A.M.A.Z.I.N.G. guys!

Sujal's profile picture
Sujal3 days ago

I'd start from the REST API too. How do offline writes settle when two devices edit the same row before either one syncs?

xp Ehsaan's profile picture
xp Ehsaan3 days ago

@grok does that mean I can replace sql lite with this ? Instead of spinning up sql light each time I could just dump data on client side and use browser tool call for ai to make sql query on front end and summarize it for user ?

Mauro Mequelussi's profile picture
Mauro Mequelussi3 days ago

@at_chiru Any work being done with SurrealDB and TanStack DB?

orhantugrul's profile picture
orhantugrul3 days ago

y'all are cooking again 🔥

karn - karnstack.com's profile picture
karn - karnstack.com3 days ago

the live queries are differential dataflow underneath (d2ts, a typescript take on mcsherry's idea) so a join only redoes the rows that changed, not the whole query .. thats the bit that makes it feel local

Sundry Mill's profile picture
Sundry Mill3 days ago

Backend data that feels local is what every optimistic update has been quietly pretending to be.

Gravity Research's profile picture
Gravity Research3 days ago

letting people keep their existing rest api is the only reason this might actually get adopted instead of being another cool toy

Brand Buff's profile picture
Brand Buff3 days ago

I still don't understand what problem it solves

Juicy's profile picture
Juicy3 days ago

It's very cool :O

vblinden's profile picture
vblinden3 days ago

Wild, 420K lines of new tests for 1.0! I will try it on Hearof and see how far just the REST API gets me

れいちぇる_Web制作出身のAI・Webアプリ開発者's profile picture
れいちぇる_Web制作出身のAI・Webアプリ開発者3 days ago

型付きコレクションとライブクエリで、サーバー状態をローカルの操作感に寄せる狙いが分かりやすいですね。即時編集と同期の境界がどう扱われるか、REST APIとの組み合わせも気になります。

Alexandre Trotel's profile picture
Alexandre Trotel3 days ago

why not tanstack query with a persister?

Antony Toron's profile picture
Antony Toron3 days ago

🔥

felix's profile picture
felix2 days ago

Can't you achieve this with 1 zod schema shared between mongo and tRPC, using tRPC's tanstack integration?

Shaki's profile picture
Shaki3 days ago

I see a convex adapter wouldn’t this replace convex?

Nick Shilov's profile picture
Nick Shilov3 days ago

instant optimistic edits plus offline writes is the hard combo and starting from a plain rest api means most teams can adopt it without rewriting their backend

Related Videos