{"id":16720358,"url":"https://github.com/tomokimiyauci/file-system-access","last_synced_at":"2025-06-13T02:02:54.154Z","repository":{"id":250878225,"uuid":"835745873","full_name":"TomokiMiyauci/file-system-access","owner":"TomokiMiyauci","description":"File System Access, based on WICG spec reference implementation","archived":false,"fork":false,"pushed_at":"2024-09-03T05:27:29.000Z","size":236,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T02:02:06.772Z","etag":null,"topics":["file-system-access","file-system-access-api","wicg"],"latest_commit_sha":null,"homepage":"https://jsr.io/@miyauci/file-system-access","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomokiMiyauci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-30T12:57:52.000Z","updated_at":"2024-09-03T07:13:48.000Z","dependencies_parsed_at":"2024-08-17T08:43:55.419Z","dependency_job_id":"4b61130d-2a4c-4a86-9c21-38b6006f833c","html_url":"https://github.com/TomokiMiyauci/file-system-access","commit_stats":null,"previous_names":["tomokimiyauci/file-system-access"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/TomokiMiyauci/file-system-access","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Ffile-system-access","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Ffile-system-access/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Ffile-system-access/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Ffile-system-access/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomokiMiyauci","download_url":"https://codeload.github.com/TomokiMiyauci/file-system-access/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomokiMiyauci%2Ffile-system-access/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259565528,"owners_count":22877344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-system-access","file-system-access-api","wicg"],"created_at":"2024-10-12T22:06:50.262Z","updated_at":"2025-06-13T02:02:54.110Z","avatar_url":"https://github.com/TomokiMiyauci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-system-access\n\n\u003e 🚧 WIP at\n\u003e [beta branch](https://github.com/TomokiMiyauci/file-system-access/tree/beta)\n\n[File System Access](https://wicg.github.io/file-system-access/) ponyfill for\nserver side runtime.\n\nThis allows the native file dialog and the file system handle API to be used on\nthe server side.\n\nComplies with\n[WICG, File System Access](https://github.com/WICG/file-system-access) and\n[File System Standard](https://github.com/whatwg/fs).\n\n## Usage\n\n`FileSystemAccess` binds the\n[File System Access API](https://wicg.github.io/file-system-access/). The\nconstructor requires [adaptor](#adaptors).\n\n```ts\nimport { type Adaptor, FileSystemAccess } from \"@miyauci/file-system-access\";\n\ndeclare const adaptor: Adaptor;\nconst { showOpenFilePicker, showDirectoryPicker } = new FileSystemAccess(\n  adaptor,\n);\n\nconst [handle] = await showOpenFilePicker();\nconst writable = await handle.createWritable();\nawait writable.write(\"hello\");\nawait writable.write(\"world\");\nawait writable.close();\n\nconst file = await handle.getFile();\nawait file.text(); // helloworld;\n```\n\n### Adaptors\n\nAdaptor is an abstraction that absorbs runtime differences.\n\n#### Deno\n\nAdaptor for deno runtime with asynchronous BLOB.\n\n```ts\nimport { DenoAdaptor } from \"@miyauci/file-system-access/deno\";\nimport { FileSystemAccess } from \"@miyauci/file-system-access\";\n\nconst adaptor = new DenoAdaptor();\nconst { showOpenFilePicker } = new FileSystemAccess(adaptor);\n```\n\nWhen using `DenoAdaptor`, the following flags are required.\n\n- `--unstable-ffi`\n\nIt also requires the following permission.\n\n- `--allow-ffi`\n- `--allow-read`(When read directory or file)\n- `--allow-write`(When write file)\n\n#### Node\n\n// TODO\n\n#### Bun\n\n// TODO\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\n[MIT](LICENSE) © 2024 Tomoki Miyauchi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomokimiyauci%2Ffile-system-access","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomokimiyauci%2Ffile-system-access","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomokimiyauci%2Ffile-system-access/lists"}