mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem `supabase/tanstack-db` (a frontend data layer syncing TanStack DB collections with Postgres via Supabase) has no reference documentation on supabase.com/docs. ## Solution Adds a new `/reference/tanstack-db` SDK reference page documenting `supabaseCollectionOptions()`, `queryOnce()`, and live-query/mutation usage. Since the package has no TypeDoc pipeline (unlike `middleware`/`server`), it uses the legacy hand-written YAML spec pattern already used for Python, Swift, C#, and Dart v1 (`apps/docs/spec/supabase_tanstack_db_v1.yml`), wired into `navigation.references.ts` and the sidebar/breadcrumb constants the same way as the existing `middleware` entry. Content is sourced from the public `supabase/tanstack-db` README and source, since there's no internal ticket for this. ## Review instructions 1. Run `pnpm run codegen:references:legacy` in `apps/docs` and confirm `features/docs/generated/tanstack_db.v1.*.json` are generated. 2. Start local Supabase (`pnpm supabase start`) and `pnpm dev:docs`, then visit `/docs/reference/tanstack_db` and confirm the sidebar entry and content render. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Tiago Antunes <tiagoantunespt@gmail.com>
49 lines
966 B
Plaintext
49 lines
966 B
Plaintext
---
|
|
id: installing
|
|
title: Installing
|
|
slug: installing
|
|
---
|
|
|
|
### Install as a package
|
|
|
|
<RefSubLayout.EducationRow>
|
|
<RefSubLayout.Details>
|
|
|
|
Install `@supabase-labs/tanstack-db` alongside `@tanstack/react-db` and your `@supabase/supabase-js` client.
|
|
|
|
</RefSubLayout.Details>
|
|
|
|
<RefSubLayout.Examples>
|
|
|
|
<Tabs
|
|
size="small"
|
|
type="underlined"
|
|
defaultActiveId="npm"
|
|
queryGroup="platform"
|
|
>
|
|
<TabPanel id="npm" label="npm">
|
|
|
|
```sh Terminal
|
|
npm install @supabase-labs/tanstack-db @tanstack/react-db
|
|
```
|
|
|
|
</TabPanel>
|
|
<TabPanel id="yarn" label="Yarn">
|
|
|
|
```sh Terminal
|
|
yarn add @supabase-labs/tanstack-db @tanstack/react-db
|
|
```
|
|
|
|
</TabPanel>
|
|
<TabPanel id="pnpm" label="pnpm">
|
|
|
|
```sh Terminal
|
|
pnpm add @supabase-labs/tanstack-db @tanstack/react-db
|
|
```
|
|
|
|
</TabPanel>
|
|
</Tabs>
|
|
|
|
</RefSubLayout.Examples>
|
|
</RefSubLayout.EducationRow>
|