What is Nostr?
hzrd149 /
npub1ye5…knpr
2024-09-27 22:41:46

hzrd149 on Nostr: hodlbod PABLOF7z and any other client devs Id like to get your thoughts on this (very ...

hodlbod (npub1jlr…ynqn) PABLOF7z (npub1l2v…ajft) and any other client devs

Id like to get your thoughts on this (very MVP) library I'm building for #noStrudel https://github.com/hzrd149/applesauce/tree/master/packages/core

The idea is to run an in-memory database and have the UI ( react, svelte, etc... ) talk to it with "queries"
Then the data loading layer of the app (outbox model, dumb relay list, etc...) would feed events into this database as needed and the UI would update

This would effectively separate the UI layer from the more complicated relay fetching logic.
My motivation for building this is my data loaders in noStrudel commonly get stuck (as most complex logic does) and because they don'tt talk to each other a user might see an event in the notifications but then the thread loader couldn't find it

I'm aware it may have some performance impacts vs rendering the events straight to the DOM. But the fact that you could have all the events needed for the UI in a single place seems like it would be worth it
Author Public Key
npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr