Skip to content

docs: add TanStack DB + RxDB + Supabase article#8633

Open
pubkey wants to merge 3 commits into
masterfrom
claude/determined-dijkstra-rbrbnl
Open

docs: add TanStack DB + RxDB + Supabase article#8633
pubkey wants to merge 3 commits into
masterfrom
claude/determined-dijkstra-rbrbnl

Conversation

@pubkey

@pubkey pubkey commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a new article tanstack-db-supabase that explains how to combine TanStack DB, RxDB, and Supabase into one local-first stack.

The article covers:

  • Using TanStack DB with RxDB as the persistence layer via the @tanstack/rxdb-db-collection package (rxdbCollectionOptions + createCollection), including live queries with useLiveQuery and optimistic mutations.
  • Syncing Supabase with RxDB using the replicateSupabase plugin, with the required text primary key, _modified timestamp, and _deleted soft-delete column, plus Realtime publication setup.
  • Benefits of the stack: sub-millisecond live queries via differential dataflow, durable offline-first storage, real-time Postgres sync, optimistic UI, cross-tab consistency, and no backend lock-in.
  • Comparisons to the plain Supabase client, TanStack DB Query Collections, ElectricSQL/Zero, and RxDB alone.

Changes

  • docs-src/docs/articles/tanstack-db-supabase.md - new article
  • docs-src/sidebars.js - register the article under Articles
  • orga/changelog/add-tanstack-db-supabase-article.md - changelog entry

Notes

The lint/test hooks fail in this environment due to missing dependencies (@eslint/compat, nconf) that are unrelated to this docs-only change.

https://claude.ai/code/session_014Ljhg9vBLJNGGmmQ7nJkwe


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants