@byronwade/client
v0.1.0
Published
Supabase-shaped client facades for Fakebase
Maintainers
Readme
@byronwade/client
Part of Fakebase — a Supabase-shaped, local/dev-only development platform for Next.js prototypes. Not for production use.
The Supabase-shaped client facades (auth, storage, realtime, functions) and the chainable query DatabaseBuilder that sit on top of a Fakebase kernel. Most apps consume this through the top-level fakebase package.
Installation
pnpm add fakebaseThis package ships with fakebase and is published as @byronwade/client.
Usage
import { createClient } from "@byronwade/client";
import { createMemoryKernel } from "@byronwade/adapter-memory";
const kernel = createMemoryKernel();
const db = createClient("http://localhost", "anon-key", { kernel });
const { data } = await db.from("posts").select("id, title").limit(10);What's inside
createClient— assembles aFakebaseClientfrom a kernel (theurl/keyargs exist only for API parity).DatabaseBuilder— the chainable PostgREST-style query builder.- Facade factories:
createAuthClient,createStorageClient,createRealtimeClient(+Channel),createFunctionsClient. - Types:
FakebaseClient,FakebaseClientOptions,FakebaseResponse, and the*Facadeinterfaces.
Documentation
License
MIT
