{"_id":"@byronwade/adapter-json","name":"@byronwade/adapter-json","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/adapter-json","version":"0.1.0","description":"File-backed JSON snapshot adapter for Fakebase","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@byronwade/core":"0.1.0","@byronwade/auth":"0.1.0","@byronwade/storage":"0.1.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.5.0","vitest":"^2.0.0"},"author":{"name":"Byron Wade"},"homepage":"https://github.com/byronwade/fakebase#readme","bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/adapter-json"},"engines":{"node":">=20.0.0"},"sideEffects":false,"publishConfig":{"access":"public"},"keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src"},"_id":"@byronwade/adapter-json@0.1.0","_integrity":"sha512-HCOTILhhIAXjg4vWBDE4VFUWOeWz4A2NpTBAT84tJDPL9TzvBqIEBxB+4ZuEfdnxSWUabXg7bViELFqsFSmxrw==","_resolved":"/private/tmp/claude-501/9cf3db42d22750a85eea474bbdc3840f/byronwade-adapter-json-0.1.0.tgz","_from":"file:byronwade-adapter-json-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-HCOTILhhIAXjg4vWBDE4VFUWOeWz4A2NpTBAT84tJDPL9TzvBqIEBxB+4ZuEfdnxSWUabXg7bViELFqsFSmxrw==","shasum":"1e54b750715857ba16e30f7dbb5033f543c5463f","tarball":"https://registry.npmjs.org/@byronwade/adapter-json/-/adapter-json-0.1.0.tgz","fileCount":15,"unpackedSize":43601,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmuUorY0t3OHPNajJSGnXZ0ZgMf+CaLIoxOvK3k+RmwQIgRtNxorB5HhIRitbvtfVIc70Bk6d7CmFKO+pAH+PP4LY="}]},"_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/adapter-json_0.1.0_1780452915883_0.0312795308459044"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:15.671Z","0.1.0":"2026-06-03T02:15:16.022Z","modified":"2026-06-03T02:15:16.230Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"File-backed JSON snapshot adapter for Fakebase","homepage":"https://github.com/byronwade/fakebase#readme","keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/adapter-json"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `@byronwade/adapter-json`\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\nA file-backed JSON adapter. Each table is persisted as a JSON file under `.fakebase/` (synchronously flushed on every write), so your prototype data survives restarts while staying easy to inspect and diff.\n\n## Installation\n\n```bash\npnpm add @byronwade/adapter-json\n```\n\nInstall this optional adapter directly; it is not bundled with the top-level `fakebase` package.\n\n## Usage\n\n```ts\nimport { createClient } from \"@byronwade/fakebase\";\nimport { createJsonKernel } from \"@byronwade/adapter-json\";\n\nconst kernel = createJsonKernel({ dir: \".fakebase\" });\nconst db = createClient(\"http://localhost\", \"anon-key\", { kernel });\n```\n\n## What's inside\n\n- `createJsonKernel({ dir?, schema? })` — a kernel that reads/writes JSON files (under `<dir>/data`).\n- `JsonAdapter` — the raw adapter, plus type `JsonAdapterOptions`.\n\nDev-only persistence — fine for prototypes, not a production datastore.\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-5d67626ffecf2f0544986e7fe1701bd3"}