Exactly. Local databases like #nostrdb will add powerful primal and nostrband-like functionality into the hands of any native nostr client. Except it will be more powerful because each client will have potentially different views of the network, leading to personalized trending algos tailed to your web of trust. nostr:note1parlgp0sj24efmpye0ejdv40hz5xnsj8ap86exckea73nqak0xfqfnkrrl
Discussion
💜
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
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.
I wish I understood more. To me this is foreign nerd language. And don’t get me wrong, I like foreign and I like nerding out.. I just am not a nerd in this realm you speak of 🥺