Show HN: Access OPFS from multiple tabs using a fake Shared Worker
Category: library
Tags: shared-worker, opfs, web-worker, browser-storage, multi-tab
Score: 6.8/10 (Innovation: 7, Technical: 7, Documentation: 7, Utility: 6)
cross-tab-worker is a TypeScript library that enables multiple browser tabs to share a single Web Worker for synchronous OPFS access, using Web Locks and MessageChannel for coordination instead of SharedWorker. It addresses a specific but important limitation of SharedWorker with the FileSystemSyncAccessHandle, making it valuable for high-performance SQLite/WASM applications that need multi-tab support.
Target audience: frontend devs
Repository: https://github.com/arnold-graf/cross-tab-worker/ · TypeScript · 4 stars
View on Hacker News