Reference
Shared vocabulary for this workspace. Lessons stick to these meanings. Terms grow as you demonstrate understanding — this seed covers lessons 1–5.
navigator.storage.getDirectory().
showOpenFilePicker, etc.) with permission prompts — not
OPFS. In this workspace, “user-visible FS” always means that path.
getFileHandle / getDirectoryHandle to
create or open children.
createWritable() / getFile(). In a dedicated
worker, can open a
sync access handle for high-throughput
byte I/O.
createSyncAccessHandle() (async open; sync methods).
Dedicated workers + OPFS only — not the window main
thread, not user-visible picker files. Fast path for Wasm/DB engines;
not the default for ordinary text/blob I/O.
createSyncAccessHandle mode
(readwrite) takes an exclusive lock on that OPFS file.
Other exclusive sync handles or createWritable streams
fail until close(). Modes
read-only and readwrite-unsafe change sharing
rules — design multi-tab deliberately.
new Worker(…) script with its own global scope.
Required home for FileSystemSyncAccessHandle. Distinct
from shared workers and service workers for this API surface.
localStorage / sessionStorage: synchronous
string maps with small practical limits. Wrong tool for bulk files or
structured records at scale.
QuotaExceededError.
navigator.storage.persist(); check with
persisted(). Not immortality — users can still clear site
data. Granting is permission/heuristic dependent by browser.
write, then close to persist. Prefer this
over sync access handles for ordinary async app code.
handle.remove() on the entry itself
(optional recursive for directories), or
parent.removeEntry(name) by child name.