hodlbod on Nostr: Judging just from the readme, this is exactly how @welshman/app works. I found ...
Judging just from the readme, this is exactly how @welshman/app works. I found indexeddb way too slow to use interactively, so I hydrate once at page load and batch writes to it. I then use "repository" to store all my events, and "relay" to wrap in a "executor target" (see @welshman/net) so that I can use it like a normal relay. I then have some utilities in @welshman/store that wrap the repository in svelte stores so that I can reactively update my app. It works really well.
Published at
2024-09-27 22:54:26Event JSON
{
"id": "307916cbae3f639600f2609612466f58ba7cda7bb923d70afa714d949569d2e6",
"pubkey": "97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"created_at": 1727477666,
"kind": 1,
"tags": [
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
"wss://relay.damus.io/",
"PABLOF7z"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"wss://nostr.wine/",
"hzrd149"
],
[
"e",
"b1e46ba7f5034638bd80df904d62736ddc33f09a8d76ebd7bc9923b4ef89ec02",
"wss://nostr.wine/",
"root",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"client",
"Coracle",
"31990:97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322:1685968093690"
]
],
"content": "Judging just from the readme, this is exactly how @welshman/app works. I found indexeddb way too slow to use interactively, so I hydrate once at page load and batch writes to it. I then use \"repository\" to store all my events, and \"relay\" to wrap in a \"executor target\" (see @welshman/net) so that I can use it like a normal relay. I then have some utilities in @welshman/store that wrap the repository in svelte stores so that I can reactively update my app. It works really well.",
"sig": "3e49748da1fa339a629f66c31798fb7a8847d5b7cfcbeb0eeb75032650687c1d0c09ba84c07e9448172082eca834e66659004e54e2943763149b9229b4fa194e"
}