Offline Data + Sync
Two parallel implementations of the same problem — persisting data offline and syncing it once the connection returns — using IndexedDB and OPFS with wa-sqlite (real SQLite compiled to WebAssembly, running inside a Web Worker via asynchronous message passing). The queue of pending notes is resolved by the Service Worker's Background Sync API as soon as connectivity returns, even with the tab closed; the OPFS worker reconciles its own state once it receives the sync-completed notice. The Storage API exposes the real storage quota and protects data from cache eviction once persistence is granted.
Technologies
- OPFS
- wa-sqlite
- Web Workers
- IndexedDB
- Storage API
- Background Sync API
Architecture
- OPFS
- SQL
- WebAssembly
- Web Worker
- IndexedDB
- Background Sync Queue
Concepts
- OPFS
- SQL over WebAssembly
- Worker thread isolation
- Asynchronous worker messaging
- Main thread
- Secondary thread
- Persistence
- Sync queue
Demo area
The demo is 100% functional — try it now.
Voice Interface
Real-time voice dictation and text-to-speech playback, straight from the browser — no external API involved. We use your device's native APIs.
Native Browser Integrations
Web Share, Clipboard, Screen Wake Lock, and Fullscreen: four native browser APIs that bring a web app closer to an installed-app experience, with zero external dependencies.