WebDB Launches as a Relational Database Built Natively for the Browser
A developer found that browser storage options either lack relational querying or rely on large WebAssembly ports of desktop SQL engines. Raw IndexedDB requires cumbersome manual code for joins and filters, while SQLite WASM and PGlite add multi-megabyte bundles and demand strict cross-origin isolation headers. To address this, the developer introduced WebDB, a relational engine written from scratch for the browser that skips SQL text parsing by building queries directly into bytecode through a TypeScript query builder. The project also offers a .explain() method to inspect query plans and framework subpaths that automatically refresh UI components when relevant tables change across tabs and workers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in