rtk-ai/rtk

Add RTK wrapper / filter for supabase db CLI

Open

#1,995 opened on 2026年5月20日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clienhancementhelp wantedpriority:medium

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (平均マージ 11d 1h) (30d で 45 merged PRs)

説明

Context

Using RTK 0.39.0 with Claude Code on macOS. rtk discover over the last 30 days flags supabase db as a sustained unhandled command in Next.js + Supabase projects:

Command Count (30d) Example
supabase db 126 supabase db push / pull / lint / diff

Why it matters

  • supabase db push / pull: each emits long migration-summary tables (table list + colored diff hints) that share repeated columns. Easy compression target (keep migration names + counts, strip ANSI / progress).
  • supabase db diff: SQL diff output is verbose; a --name-only-style summary or grouping by table would help in agent contexts.
  • supabase db lint: results are usually a small set of advisor warnings repeated many times — dedup + count would be a big win.

Suggested approach

Add a supabase filter similar to existing npm / npx / vercel (proposed in #1255) filters:

  • strip ANSI / spinner
  • dedup + summarize advisor rows
  • compress migration/diff tables (table name + counts; drop padding)

No supabase-related issue exists in the repo as of 2026-05-20 (searched supabase, supabase db, and Add RTK wrapper). Filing this so the data is on record.

Environment

  • rtk 0.39.0
  • macOS (Darwin 25.4.0)
  • Claude Code PreToolUse hook

コントリビューターガイド