Why Nostr?What is Njump?
Martti Malmi /
npub1g53…drvk
2024-02-06 13:08:43

Martti Malmi on Nostr: Local sqlite db by Kieran is great. So much better than IndexedDB. Iris & Snort can ...

Local sqlite db by Kieran (npub1v0l…qj49) is great. So much better than IndexedDB. Iris & Snort can now store a lot of data locally, sync only what they don't already have (negentropy & nip-114) and eventually do p2p over webrtc. Works offline.

Iris now features a "for you" feed which uses the local database. It scores events by recentness, author favoriteness (top authors reacted by you) and amount of reactions from users who often react to the same notes as you.

Recentness is randomly weighted to occasionally show older events as well. Recent notes from all followed users are also mixed in.

Events are marked "seen" when they've been in the viewport for 1 second and not shown again in the "for you" feed. I've found it actually pleasant and interesting to use now. New feed every time.

It's not extensively tested yet, and might not show great results before your local database is populated with notes and reactions. Also, it's unfortunate that sqlite wasm persistence (origin-private filesystem) requires some http headers that broke youtube and some other embeds.
Author Public Key
npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk