@byronwade/adapter-memory
v0.1.0
Published
In-memory adapter for Fakebase — full FakebaseAdapter implementation
Downloads
221
Maintainers
Readme
@byronwade/adapter-memory
Part of Fakebase — a Supabase-shaped, local/dev-only development platform for Next.js prototypes. Not for production use.
The zero-setup, in-memory adapter — the default backing store for local dev. Data lives entirely in-process and resets when the process exits, which makes it perfect for tests and quick prototypes.
Installation
pnpm add fakebaseThis package ships with fakebase and is published as @byronwade/adapter-memory.
Usage
import { createClient } from "@byronwade/fakebase";
import { createMemoryKernel } from "@byronwade/adapter-memory";
const kernel = createMemoryKernel(); // optionally pass a ProjectSchemaIR
const db = createClient("http://localhost", "anon-key", { kernel });What's inside
createMemoryKernel(schema?)— builds a fully wired kernel (data + auth + storage) in one call.MemoryAdapter— the rawFakebaseAdapterimplementation if you want to assemble a kernel yourself.
State is not persisted across restarts — use @byronwade/adapter-json or @byronwade/adapter-sqlite for durability.
Documentation
License
MIT
