Laan Tungir on Nostr: Hmmm, I've been using indexeddb via Dexie.js. All of my relay handling routines store ...
Hmmm, I've been using indexeddb via Dexie.js.
All of my relay handling routines store events into Dexie and then my UI is generated off from Svelte/Dexie LiveQueries from DB changes.
This conceptually keeps relays separate from ui, and works well for PWAs. Probably not the fastest though.
Published at
2024-09-28 09:28:34Event JSON
{
"id": "aa48b7715e207a291fccf1f399e0387530021455e52ae768a24994704ce0d864",
"pubkey": "1ec454734dcbf6fe54901ce25c0c7c6bca5edd89443416761fadc321d38df139",
"created_at": 1727515714,
"kind": 1,
"tags": [
[
"e",
"b1e46ba7f5034638bd80df904d62736ddc33f09a8d76ebd7bc9923b4ef89ec02",
"",
"root"
],
[
"e",
"307916cbae3f639600f2609612466f58ba7cda7bb923d70afa714d949569d2e6",
"",
"reply"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"r",
"Dexie.js."
]
],
"content": "Hmmm, I've been using indexeddb via Dexie.js.\n\nAll of my relay handling routines store events into Dexie and then my UI is generated off from Svelte/Dexie LiveQueries from DB changes.\n\nThis conceptually keeps relays separate from ui, and works well for PWAs. Probably not the fastest though.",
"sig": "331ce8c66b154dd7d00364b38bd2cb6808fe4e1c969c7db759b34210ef6781ebd74313222581470fcbc33205098227b0314f8254b8fdbf0ea676e0f17322bdce"
}