{"_id":"@anymux/browser-fs","name":"@anymux/browser-fs","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anymux/browser-fs","version":"0.1.0","type":"module","license":"MIT","description":"Browser-based file system using the File System Access API for AnyMux","keywords":["anymux","filesystem","browser","file-system-access-api"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/browser-fs"},"homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/browser-fs#readme","engines":{"node":">=20"},"main":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"zod":"^3.24.1","@anymux/file-system":"0.1.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.4","@types/node":"^22.10.2","publint":"^0.3.8","tsdown":"^0.10.2","typescript":"^5.7.3","@anymux/typescript-config":"0.0.0"},"scripts":{"build":"tsdown","check":"tsc -p tsconfig.json --noEmit"},"_id":"@anymux/browser-fs@0.1.0","bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"_integrity":"sha512-aGHD7I0MQ5L93nRa8pnXj28j0cxlbJWn5Ep+ICMtaqbFxCurnfNBmQ+uecv3gBheF4m+e609nXwvAsTdyVRaTA==","_resolved":"/tmp/1f26157d0ebfabb638bd118771b2349c/anymux-browser-fs-0.1.0.tgz","_from":"file:anymux-browser-fs-0.1.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-aGHD7I0MQ5L93nRa8pnXj28j0cxlbJWn5Ep+ICMtaqbFxCurnfNBmQ+uecv3gBheF4m+e609nXwvAsTdyVRaTA==","shasum":"dca895e1f3768b3e40baa2c5a6a5d4c78feb13fe","tarball":"https://registry.npmjs.org/@anymux/browser-fs/-/browser-fs-0.1.0.tgz","fileCount":23,"unpackedSize":233510,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGZozHs9OLDRg+OL+4X/h369MKS+tMNi2HHwACMwcNsuAiEAhGSxTGyERQGPnRQ1HMBK+prOmVMvVoFcJk4OS3gcIAE="}]},"_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/browser-fs_0.1.0_1774335419523_0.031229277273385092"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T06:56:59.426Z","0.1.0":"2026-03-24T06:56:59.676Z","modified":"2026-03-24T06:56:59.914Z"},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"description":"Browser-based file system using the File System Access API for AnyMux","homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/browser-fs#readme","keywords":["anymux","filesystem","browser","file-system-access-api"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/browser-fs"},"bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"license":"MIT","readme":"# @anymux/browser-fs\n\nBrowser-based file system implementation using the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API).\n\n## Installation\n\n```bash\npnpm add @anymux/browser-fs\n```\n\n## Usage\n\n```typescript\nimport { BrowserFileSystem } from \"@anymux/browser-fs\";\n\n// Prompt user to pick a directory\nconst dirHandle = await window.showDirectoryPicker();\nconst fs = new BrowserFileSystem(dirHandle);\n\nconst files = await fs.readdir(\"/\");\nconst content = await fs.readFile(\"/readme.txt\", \"utf-8\");\n```\n\n## API Overview\n\nImplements the full `IFileSystem` interface from `@anymux/file-system`, backed by the browser's native File System Access API.\n\n- Read and write files in user-selected directories\n- Create and remove directories\n- List directory contents with `Dirent` support\n- File metadata via `stat()`\n\n## Requirements\n\n- A browser supporting the File System Access API (Chrome, Edge, Opera)\n- User must grant directory access via `showDirectoryPicker()`\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b9fddeb3222a3ed71b901d017da0dfe0"}