STORAGE // TIER 1
OPFS (Origin Private File System)
A fast, private filesystem endpoint accessible directly by the origin origin. Inside a Dedicated Web Worker, it exposes FileSystemSyncAccessHandle, enabling direct in-place byte reads and writes at near-native raw SSD speeds.
STORAGE // TIER 2
IndexedDB (IDB)
The historical asynchronous object store in all major browsers. While ubiquitous, it suffers from structured cloning serialization overhead, lack of synchronous transactional loops, and unpredictable transaction aborts during main-thread contention.
STORAGE // TIER 3
WebAssembly SQLite VFS
The official SQLite consortium build compiled to WebAssembly. By implementing a custom Virtual File System (VFS) mapped to OPFS, developers obtain full SQL querying, indexes, WAL mode, and ACID transactions inside the web client.
STORAGE // TIER 4
Persistent Storage Grants
By executing navigator.storage.persist(), an application requests an exemption from automated browser cache eviction routines under disk pressure, ensuring local databases remain preserved across weeks of non-use.