@byronwade/storage
v0.1.0
Published
Local file storage engine for Fakebase — buckets, objects, signed URLs
Maintainers
Readme
@byronwade/storage
Part of Fakebase — a Supabase-shaped, local/dev-only development platform for Next.js prototypes. Not for production use.
The local filesystem storage engine — buckets, objects, and signed URLs written to disk. It mirrors the supabase.storage surface and backs the db.storage facade.
Installation
pnpm add fakebaseThis package ships with fakebase and is published as @byronwade/storage.
Usage
import { LocalStorageService } from "@byronwade/storage";
const storage = new LocalStorageService(
".fakebase/storage",
new Map(),
new Map(),
new Map(),
);
storage.createBucket("avatars");What's inside
LocalStorageService— bucket/object CRUD, uploads, public + signed URLs, backed by a directory on disk.- Type
SignedUrlRecord. Storage value types (BucketRecord,FileObject,ObjectRecord, …) are re-exported from@byronwade/core.
Dev-only — "signed" URLs are local tokens, not cryptographically secured cloud URLs.
Documentation
License
MIT
