Open a .txt/.md file from your disk, edit it below, and save changes back to the same file. This is the native-editor round-trip. (Chromium only — else a fallback runs.)
The core concept most tutorials skip. "Save" reuses the handle you already have (no dialog). "Save As" calls showSaveFilePicker() for a brand-new handle.
createWritable() writes to a temp file and only commits on close() — a crash mid-write leaves your original file intact, not corrupted.
Pick a folder and iterate its contents with for await...of. Each entry has a kind of 'file' or 'directory'. (Chromium only.)
Handles are structured-cloneable, so you can store them in IndexedDB and reopen the actual file later. But permission isn't persisted — you must re-check on return.
A sandboxed, origin-private store via navigator.storage.getDirectory(). No permission prompt, invisible to the user's file manager, and supported in all modern browsers (unlike the pickers).