Supabase
Select baris dengan filter terstruktur yang di-quote dengan aman, insert, upsert, update dan RPC (agent harus diizinkan), daftar, unduh dan unggah file. Hapus dan signed URL hanya lewat node
Beta v0.1.0 Node.js Wasm 16 aksi
Tentang
Plugin Graphrt untuk satu project Supabase. Baris tabel lewat Data API (PostgREST) dan file lewat Supabase Storage. Filter dibuat terstruktur dan di-encode dengan aman, jadi nilai tidak pernah bisa menyisipkan operator PostgREST atau kondisi tambahan. Dibuat dengan lapisan REST deklaratif (definition.mjs).
Yang bisa dilakukan
- Rows: select_rows (filters, columns incl. related tables, order, limit/cursor paging), insert_rows, upsert_rows (merge or ignore duplicates, on_conflict), update_rows and delete_rows (node only), both requiring at least one filter
- Functions: call_function (RPC POST /rest/v1/rpc/<name> with named arguments)
- Per-user mode for chatbots: SUPABASE_TOOL_MODE=user_rpc makes call_function the only agent tool and sends each call as the end user (their JWT from the agent's tool_context), so one plugin process serves many users (Multi-user chatbots)
- Schema: get_api_schema (OpenAPI of the exposed tables and functions, needs a secret or service_role key since Supabase removed anon access in February 2026)
- Storage: list_buckets, get_bucket, list_objects, get_object_info, download_object (into SUPABASE_DOWNLOAD_DIR), upload_object, delete_objects (node only), create_signed_url (node only)
- api_request: any other project endpoint (agents: GET only, /rest/v1 and Storage reads only)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Get Data API schema
supabase.get_api_schema - Select rows
supabase.select_rows - Insert rows
supabase.insert_rows - Upsert rows
supabase.upsert_rows - Update rows
supabase.update_rows - Delete rows
supabase.delete_rows - Call database function
supabase.call_function - List buckets
supabase.list_buckets - Get bucket
supabase.get_bucket - List objects
supabase.list_objects
Tampilkan semua 16 aksi
- Get object info
supabase.get_object_info - Download object
supabase.download_object - Upload object
supabase.upload_object - Delete objects
supabase.delete_objects - Create signed URL
supabase.create_signed_url - Supabase project API (Data API /rest/v1, Storage /storage/v1) request
supabase.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
SUPABASE_URLWajibProject URL: https://<project-ref>.supabase.co, a custom https domain, or http://127.0.0.1:54321 locally. Origin only (no /rest/v1). -
SUPABASE_KEYWajibAPI key, sent as apikey: a publishable key (sb_publishable_...) or secret key (sb_secret_...), legacy anon/service_role JWTs also work (they are sent as Bearer too). -
SUPABASE_USER_JWTOpsionalA signed-in user's access token, sent as Authorization: Bearer, so row level security sees that user -
SUPABASE_TOOL_ALLOW_WRITESOpsional1 lets agent tools insert, upsert, update, upload and call functions -
SUPABASE_DOWNLOAD_DIRFor downloadsAbsolute directory for download_object -
SUPABASE_UPLOAD_DIRFor local uploadsDirectory that local upload_object files must be inside (https URLs work without it) -
SUPABASE_TOOL_API_EXTRA_PATHSOpsionalMore read paths for agent api_request, comma-separated, * = one segment -
SUPABASE_TOOL_MODEOpsionaldefault, or user_rpc for multi-user chatbots -
SUPABASE_TOOL_RPC_ALLOWLISTIn user_rpcFunctions the call_function tool may call, comma-separated (e.g. get_balance,list_orders), others are refused. Unset: any function in the default mode, none in user_rpc -
SUPABASE_TOOL_TIMEOUT_MSOpsionalDeadline of one call_function tool call, 1000-120000 (default 30000) -
SUPABASE_TOOL_MAX_ROWSOpsionalArray results of the call_function tool are cut to this many rows, with a note to the model, 1-1000 (default 100)
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Supabase.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
terminal
$ graphrt plugin install supabase workflow.yaml
- id: open_todos
type: supabase.select_rows
table: todos
columns: id,title,owner:profiles(name)
filters: [{ column: status, operator: eq, value: open }]
order: created_at.desc
limit: 20
- id: close
type: supabase.update_rows
table: todos
values: { status: done }
filters: [{ column: id, operator: eq, value: "{{#open_todos.data.0.id#}}" }]