{"_id":"@byronwade/storage","name":"@byronwade/storage","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/storage","version":"0.1.0","description":"Local file storage engine for Fakebase — buckets, objects, signed URLs","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"},"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/storage"},"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/storage@0.1.0","_integrity":"sha512-T3YI9Hp0HRn0PVlcndD+n8I3hHII+d4VGMY5FLR+U5BosfMU2NzdedILCurY3wu8W/TowzTWZaRwz2ltsS1Fig==","_resolved":"/private/tmp/claude-501/3d660f6de31250662217f45fa7042aa1/byronwade-storage-0.1.0.tgz","_from":"file:byronwade-storage-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-T3YI9Hp0HRn0PVlcndD+n8I3hHII+d4VGMY5FLR+U5BosfMU2NzdedILCurY3wu8W/TowzTWZaRwz2ltsS1Fig==","shasum":"daceeabf994d4d8b7bfe1c371398cb4f5320d0cd","tarball":"https://registry.npmjs.org/@byronwade/storage/-/storage-0.1.0.tgz","fileCount":19,"unpackedSize":73401,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHMmSlcc/Qj/tjPRGIf+lrvhU+MHAy7GXJ4Y2r0BFFizAiEAlMaKGTKV0Hm84pcoDjg5NPJ7VEUet7e/FrkR8hWOeOM="}]},"_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/storage_0.1.0_1780452911864_0.6926546029576057"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:11.747Z","0.1.0":"2026-06-03T02:15:12.077Z","modified":"2026-06-03T02:15:12.224Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"Local file storage engine for Fakebase — buckets, objects, signed URLs","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/storage"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `@byronwade/storage`\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 local filesystem storage engine — buckets, objects, and signed URLs written to disk. It mirrors the `supabase.storage` surface and backs the `db.storage` facade.\n\n## Installation\n\n```bash\npnpm add fakebase\n```\n\nThis package ships with `fakebase` and is published as `@byronwade/storage`.\n\n## Usage\n\n```ts\nimport { LocalStorageService } from \"@byronwade/storage\";\n\nconst storage = new LocalStorageService(\n  \".fakebase/storage\",\n  new Map(),\n  new Map(),\n  new Map(),\n);\n\nstorage.createBucket(\"avatars\");\n```\n\n## What's inside\n\n- `LocalStorageService` — bucket/object CRUD, uploads, public + signed URLs, backed by a directory on disk.\n- Type `SignedUrlRecord`. Storage value types (`BucketRecord`, `FileObject`, `ObjectRecord`, …) are re-exported from `@byronwade/core`.\n\nDev-only — \"signed\" URLs are local tokens, not cryptographically secured cloud URLs.\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-52d12f956fd7400573905872efbccdee"}