Web-SQLite-JS – Persistent SQLite in the browser via OPFS
Show HN: Web-SQLite-JS – Persistent SQLite in the browser via OPFS
Web-SQLite-JS – Persistent SQLite in the browser via OPFS operates in show hn launch.
Profile
I built web-sqlite-js because I wanted an "out-of-the-box" way to use SQLite WASM with persistence.While the official SQLite WASM build is excellent, setting it up with the Origin Private File System (OPFS), handling the Web Worker communication, and ensuring concurrency safety (Mutex) involves a fair amount of boilerplate.This library handles: - *Worker Orchestration*: Spawns and manages the SQLite worker. - *Persistence*: Automatically uses OPFS for file storage. - *SharedArrayBuffer Support*: Required for high-performance VFS. - *Safe Concurrency*: A built-in Mutex ensures that SQL commands and transactions are executed sequentially even if called concurrently from the main thread.It’s de
Web-SQLite-JS – Persistent SQLite in the browser via OPFS is positioned in show hn launch, a segment that rewards a clear, focused offering.
It is recorded at the Show HN launch stage.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: web-sqlite-js.wuchuheng.com
Browse related
Create a free account