Run a local static server from the parent wasm/ directory (see docker-compose.yml or npm run serve). Open DevTools for logs.
Loads WASM in the page via smongo-browser.js (in-memory path). No worker, no persistence.
Insert / find / update throughput (in-memory).
Use Chromium. One tab owns the OPFS sync worker per database name; additional tabs talk to it over BroadcastChannel RPC.
Write, read, and wipe stored data. Wipe calls wipeOpfsDatabaseDirectory (closes handles, then removes the OPFS folder).
Two tabs: both connect; one is owner, others use RPC. Insert/count from either tab.
Open here, then Close database (releases lock), then open in another tab.
Blank page used by npm run test:e2e; same-origin path as CI.
Build WASM first: wasm-pack build --target web --out-dir wasm/pkg --release from rust/smongo-engine/.