← Back to context

Comment by Jarwain

3 months ago

I've been doing some research myself for an offline-first project I've been thinking about, so it's great to see more people going in this direction!

A project I recently discovered in this realm is `wa-sqlite`. Yet another sqlite browser web assembly project, but it has VFS adapter examples that introduced me to the OPFS which, at least on a surface level, seems to be faster but more complicated than using indexeddb, and is a whole other avenue the article didn't explore. I'm guessing because it's still new/experimental and they're trying to build their thing yesterday

Yeah, we're well aware of OPFS, and perhaps in the long term future it will be the best way to persist data in a browser.

Although we're super impressed with all of the active research and work going on in this realm, we're trying to build a bulletproof product and therefore need "boring and stable", not "new and shiny". Trying to save ourselves serious headaches.

We're keeping a close eye on Zero.

Also, almost all of these projects are relatively storage-agnostic. So it should be trivial to write adapters for OPFS, or indeed FS in iOS/Android contexts, etc. Most can work with any get/set API.