SQL.js: SQLite Compiled to JavaScript
SQLite has a system that abstracts various low-level storage operations called VFS - this is the layer that allows SQLite to be portable across different operating systems and environments: <a href="https://www.sqlite.org/vfs.html" rel="nofollow">https://www.sqlite.org/vfs.html</a><p>Recently I’ve wondered how possible it would be to implement a SQLite VFS on top of IndexedDB - and, would such a VFS be competitive in speed to using IndexedDB directly? Or, would it be equivalent to use Emscripten’s existing POSIX-ish filesystem backed by IndexedDB?<p>An IndexedDB VFS would allow sql.js to durably persist data in the browser.