Playground & Docs
A thin passthrough to @supabase/supabase-js. It translates the QueryDescriptor back into native Supabase client calls.
npm install @supabase/supabase-js
import { createClient } from '@vibecode-db/client';
import { SupabaseAdapter } from '@vibecode-db/client/adapters/supabase';
const adapter = new SupabaseAdapter({
supabaseUrl: 'https://xxx.supabase.co',
supabaseKey: 'your-anon-key',
});
const client = createClient(url, key, { adapter });
import { createClient as createSupabase } from '@supabase/supabase-js';
const supabase = createSupabase(url, key);
const adapter = new SupabaseAdapter({
supabaseUrl: url,
supabaseKey: key,
client: supabase, // reuse existing instance
});
| Option | Type | Description |
|---|---|---|
supabaseUrl | string | Your Supabase project URL |
supabaseKey | string | Your anon or service role key |
client | SupabaseClient | Optional existing client instance |
Use the adapter switcher above to try this with a real Supabase project.