Playground & Docs
The MockAdapter stores everything in memory. Perfect for frontend development, unit tests, prototyping, and this playground.
import { createClient } from '@vibecode-db/client';
import { MockAdapter } from '@vibecode-db/client/adapters/mock';
const adapter = new MockAdapter();
const client = createClient('', '', { adapter });
adapter.seed('users', [
{ id: 1, name: 'Alice', age: 30, status: 'active' },
{ id: 2, name: 'Bob', age: 25, status: 'inactive' },
]);
adapter.registerRpc('add', (args) => args.a + args.b);
adapter.registerRpc('greet', (args) => `Hello, ${args.name}!`);
adapter.reset(); // Clears all tables, RPCs, auth, storage, realtime
id.or() filter parsing (PostgREST syntax).single() / .maybeSingle() semantics matching Supabase