Skip to main content
OPFS mounts a folder of the browser’s Origin Private File System. Its files stay scoped to the page’s origin and survive page reloads.

Connect

Layout

  • root is a folder under the origin’s OPFS root, so several workspaces can keep apart. It defaults to the OPFS root itself.
  • Browser only. In Python or Node, use Disk.
  • capacity: '100MB' caps the bytes the folder holds; see capacity.

Sample runs

Every command that writes works on a write mount. The browser sets the origin’s quota and may evict the data under storage pressure; the OPFS guide shows how to check usage and ask for persistent storage.

SDK guides

TypeScript

Every config field, the VFS.md and write support.