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.
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
Discussion
No replies yet.