Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add `gen tanstack-db` command to the Supabase CLI

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
typescript

Direzione di ricerca

Nell'issue non sono indicati file, test o entry point esistenti. Inizia definendo la UX della CLI e la struttura del modulo di collection generato, poi documenta il comportamento della rigenerazione e le questioni aperte relative a relazioni, chiavi composite, librerie di schemi e schemi personalizzati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement ready-for-agent

What to build

Add a gen tanstack-db command to the Supabase CLI so users can generate TanStack DB collection definitions from their Supabase database schema instead of hand-writing table names, primary keys, schemas, and collection options.

The first version should define the CLI UX and generated output shape. It should focus on the common path: generating collection modules for exposed tables, including table names, primary keys, Standard Schema-compatible row schemas, and supabaseCollectionOptions wiring that users can import into their frontend app.

The issue should also decide how regeneration works. Generated files should be useful as a starting point without making it easy to accidentally overwrite user edits. Open questions include how to represent relationships, composite primary keys, schema libraries, custom schemas, and whether generated output should live beside existing Supabase type generation.

Acceptance criteria

  • Define the intended supabase gen tanstack-db CLI UX.
  • Define the generated collection module shape.
  • Include table names, primary keys, row schemas, and supabaseCollectionOptions wiring.
  • Describe how regeneration avoids clobbering user edits.
  • Document open questions or follow-up work for relationships, composite keys, and schema-library choices.

Blocked by

None - can start immediately.

Lingua principale
TypeScript
Stelle
57
Fork
6
Merge medio
14h 28m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di supabase/tanstack-db

Tutte le issue di supabase/tanstack-db

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.