surrealdb/surrealkv

Feature: OPFS Support

justin0mcateer opened this issue · 4 comments

Is there any intention to support this in the browser via Origin Private File System?

To me, one of the key strengths of Surreal is the ability to run it anywhere. Hopefully that persists with SurrealKV.

I brought this up already in the surrealdb.wasm repo. I also brought it up with tobie in one of his AMA sessions.

surrealdb/surrealdb.wasm#59

Hey @justin0mcateer

Thank you for opening the issue. I am not well versed with OPFS, and would like to understand it better. Thanks for sharing the links

@arriqaaq this definitely seems like a more appropriate issue for the surrealdb.wasm repo, which I linked to in my comment above. Surrealkv would simply need to be converted to wasm, stored in OPFS, and then accessed via surrealdb.wasm. In theory, the other backends (eg tikv) could also be used via wasm+opfs as well.

Thanks @nickchomey for the details, I get an idea how it works now. Will look into it more