Martti Malmi on Nostr: Iris uses LokiJS for in-memory storage and Dexie for persistence. Both are pretty ...
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#opfsPublished at
2023-08-30 17:09:09Event JSON
{
"id": "70d9443883867ccf12aabd1154e8fd421fa4b8e9360a225fa3c163483e4dddaa",
"pubkey": "4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0",
"created_at": 1693408149,
"kind": 1,
"tags": [
[
"e",
"cd5bf4f8e7125b78a0544ea816588c57b6ff0229e94ff9e662243b77f679b2e6",
"",
"root"
],
[
"p",
"c6f7077f1699d50cf92a9652bfebffac05fc6842b9ee391089d959b8ad5d48fd"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"t",
"nostrdb"
],
[
"t",
"opfs"
]
],
"content": "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.\n\nI 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",
"sig": "943a87ac0954e6408a725be62407ad797e8a827d01cc037358f7dff358cb0a4cdd6ef4f47c9c18c65bac0305932db69bf6b2292e3d3644b2d2b3190193fdcb96"
}