{"_id":"@byronwade/fakebase","name":"@byronwade/fakebase","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/fakebase","version":"0.1.0","description":"Supabase-shaped local dev platform for Next.js prototypes","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./next":{"import":"./dist/next.js","types":"./dist/next.d.ts"}},"dependencies":{"@byronwade/core":"0.1.0","@byronwade/client":"0.1.0","@byronwade/adapter-memory":"0.1.0","@byronwade/auth":"0.1.0"},"devDependencies":{"typescript":"^5.5.0","vitest":"^2.0.0"},"keywords":["supabase","mock","local","dev","nextjs","prototype"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/fakebase"},"author":{"name":"Byron Wade"},"homepage":"https://github.com/byronwade/fakebase#readme","bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"engines":{"node":">=20.0.0"},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src"},"_id":"@byronwade/fakebase@0.1.0","_integrity":"sha512-xNcAtEoMPi72Xkr3h5ZqS3KVQjat8ly3FKKxB9WEZNhZRBJir3klWsUYocj00XrMPoW5mDyVAWLQY0GFLFxapA==","_resolved":"/private/tmp/claude-501/8980c36551e704a65f085b392ea4d80c/byronwade-fakebase-0.1.0.tgz","_from":"file:byronwade-fakebase-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-xNcAtEoMPi72Xkr3h5ZqS3KVQjat8ly3FKKxB9WEZNhZRBJir3klWsUYocj00XrMPoW5mDyVAWLQY0GFLFxapA==","shasum":"74750141e22f51d379450fd5bfb4410d2c5ff647","tarball":"https://registry.npmjs.org/@byronwade/fakebase/-/fakebase-0.1.0.tgz","fileCount":19,"unpackedSize":40348,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAqWGYcgtaQ3HrX0BpvKYRoJRVflbNkCZsvBseJBuq9GAiAydgGPKKHpz5320+VfNVY1OBFq22ipp8nHPeCO/uezvw=="}]},"_npmUser":{"name":"byronwade","email":"bcw1995@gmail.com"},"directories":{},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fakebase_0.1.0_1780452928597_0.48654100767725095"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:28.386Z","0.1.0":"2026-06-03T02:15:28.767Z","modified":"2026-06-03T02:15:28.972Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"Supabase-shaped local dev platform for Next.js prototypes","homepage":"https://github.com/byronwade/fakebase#readme","keywords":["supabase","mock","local","dev","nextjs","prototype"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/fakebase"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `fakebase`\n\n> Part of [**Fakebase**](https://github.com/byronwade/fakebase) — a Supabase-shaped, **local/dev-only** development platform for Next.js prototypes. Not for production use.\n\nThe main entry point. A drop-in-shaped replacement for `@supabase/supabase-js` that bundles the kernel, client, in-memory adapter, and local auth so you can swap a single import and keep building against a fake backend.\n\n## Installation\n\n```bash\npnpm add fakebase\n```\n\n## Usage\n\n```ts\nimport { createClient, createMemoryKernel } from \"@byronwade/fakebase\";\n\nconst kernel = createMemoryKernel({ tables: [], enums: [], functions: [], version: 0 });\nconst db = createClient(\"http://localhost\", \"anon-key\", { kernel });\n\nconst { data, error } = await db.from(\"users\").select(\"*\").eq(\"role\", \"admin\");\n```\n\n## What's inside\n\n- `createClient` — the Supabase-shaped client (re-exported from `@byronwade/client`).\n- `createMemoryKernel` — a zero-setup in-memory kernel (from `@byronwade/adapter-memory`).\n- `fakebase/next` — SSR helpers `createServerClient` / `createBrowserClient` that mirror `@supabase/ssr`.\n- Re-exported types: `FakebaseClient`, `FakebaseClientOptions`, `FakebaseKernel`, `ProjectSchemaIR`, `TableIR`, `ColumnIR`, `LocalSession`, `LocalUser`, `AuthStateChangeEvent`.\n\nThe client and kernel rely on Node built-ins, so use them in **server** code (Route Handlers, Server Components, server actions) — not the browser bundle.\n\n## Documentation\n\n- [Project README](https://github.com/byronwade/fakebase#readme)\n- [Architecture](https://github.com/byronwade/fakebase/blob/main/docs/architecture.md)\n- [Compatibility matrix](https://github.com/byronwade/fakebase/blob/main/docs/compatibility-matrix.md)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b1c9ece9219990743f96234e5efbf4b8"}