{"_id":"@anymux/indexeddb","name":"@anymux/indexeddb","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anymux/indexeddb","version":"0.1.0","type":"module","license":"MIT","description":"IndexedDB file system adapter for AnyMux (browser)","keywords":["anymux","filesystem","indexeddb","browser","storage"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/indexeddb"},"homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/indexeddb#readme","engines":{"node":">=20"},"main":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"idb":"^8.0.0","zod":"^3.24.1","@anymux/file-system":"0.1.0"},"devDependencies":{"fake-indexeddb":"^6.0.0","publint":"^0.3.8","tsdown":"^0.10.2","typescript":"^5.7.3","vitest":"^3.0.0","@anymux/typescript-config":"0.0.0"},"scripts":{"build":"tsdown","check":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@anymux/indexeddb@0.1.0","bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"_integrity":"sha512-X9sT0fZd+nASRX5VIBxZmvx61smwDH4y/exiu5won5fIxPlS7F5Qrvk3tzj/GF4tRZJdmpnDyPO0HjIVn4W5yw==","_resolved":"/tmp/9bdacf3aa596f6f96d6debcdc6b525c2/anymux-indexeddb-0.1.0.tgz","_from":"file:anymux-indexeddb-0.1.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-X9sT0fZd+nASRX5VIBxZmvx61smwDH4y/exiu5won5fIxPlS7F5Qrvk3tzj/GF4tRZJdmpnDyPO0HjIVn4W5yw==","shasum":"f6ce2308ecff8e111d1de5e9fa03bea2a85153b6","tarball":"https://registry.npmjs.org/@anymux/indexeddb/-/indexeddb-0.1.0.tgz","fileCount":10,"unpackedSize":93259,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDRWPKqOWFBgxB4Vg041Tm2UGtxwkeNzS+Mo/HAk5OLXAiBQVM0uiH6aZmammWT3dvdURc2Ex5jJotNvRayPgSHh4g=="}]},"_npmUser":{"name":"yatsyk","email":"yatsyk@gmail.com"},"directories":{},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/indexeddb_0.1.0_1774335422559_0.19131297035872352"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T06:57:02.496Z","0.1.0":"2026-03-24T06:57:02.753Z","modified":"2026-03-24T06:57:02.937Z"},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"description":"IndexedDB file system adapter for AnyMux (browser)","homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/indexeddb#readme","keywords":["anymux","filesystem","indexeddb","browser","storage"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/indexeddb"},"bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"license":"MIT","readme":"# @anymux/indexeddb\n\nIndexedDB-backed file system for AnyMux. Persistent browser storage with full `IFileSystem` support.\n\n## Installation\n\n```bash\npnpm add @anymux/indexeddb\n```\n\n## Usage\n\n```typescript\nimport { IndexedDbFileSystem } from \"@anymux/indexeddb\";\n\nconst fs = new IndexedDbFileSystem({ dbName: \"my-app-fs\" });\nawait fs.initialize();\n\nawait fs.mkdir(\"/documents\", { recursive: true });\nawait fs.writeFile(\"/documents/note.txt\", \"Hello!\");\n\n// Data persists across page reloads\nconst content = await fs.readFile(\"/documents/note.txt\", \"utf-8\");\n```\n\n## API Overview\n\nImplements the full `IFileSystem` interface from `@anymux/file-system`, storing files and directories in IndexedDB.\n\n- Persistent storage that survives page reloads\n- No file size prompts or permissions dialogs\n- Works in all modern browsers\n- Supports directories, metadata, and binary data\n\n### Configuration\n\n- `dbName` — IndexedDB database name (default: `\"anymux\"`)\n- `storeName` — Object store name (default: `\"files\"`)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-bfeab51d45e76713871d51ba5ed59e19"}