Iris uses LokiJS for in-memory storage and Dexie for persistence. Both are pretty good, but it's a bit of a hassle to have 2 databases. Could try sqlite wasm.

I wonder if also #nostrdb could be used on wasm and persisted on origin private filesystem like sqlite. https://sqlite.org/wasm/doc/trunk/persistence.md#opfs

Reply to this note

Please Login to reply.

Discussion

Hmm. Has will tried compiling it with emscripten to see what happens?

I think the web will need to use another solution, nostrdb is optimized for native and uses lmdb/virtual memory maps which doesn’t work well in a wasm environment, if at all.

There are indexeddb adapters for loki you can use. I eventually moved away from both loki and dexie. I use in-memory data structures and sync periodically to indexeddb.