Avatar
Cesar Dias
c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e
Building https://dev.nosotros.app

The main feed isn't fully sorted, I don't think the main feed needs to be fully sorted by date, most people are very used to heavily algorithm feeds to care about a strict chronologic feed, notification feed makes more sense to be fully sorted.

There's a RxJS bufferTime operator on the feed event stream to update the feed in batches of 500ms (which also helps avoids unnecessary re-renders), so let's say we have a batch of 30 notes, I sort these 30 notes by created_at, and insert them at the end of the feed, the next batch the same, if a slow relay returns new events, it will be just added at the end of the feed, without impacting what the user is reading.

The approach works best with timed range pagination (until + since) instead of limit based pagination (limit, then look for a until date), I tried to implement a limit based pagination way too many times but always run into really annoying issues like huge pagination gaps, also the limit approach doesn't work well with the outbox model as you will split a filter of 1000 authors with a limit of 50 events, you ended up with way more than 50 events.

What an incredible day to me on nostr, and to finalize, I have a date 😱

Yes, it's NIP-66, unfortunately the video didn't loaded a good relay monitor (i am just selecting the first monitor to appear), but the idea is to show you the people you follow what relays they are part of sorted by the number of people.

Love the video, yeah, I think 90% of the issues on the video were already fixed in dev, I left the editor functional for non logged accounts because I wanted to implement post anonymously and people could easily test the nostr-editor, feeds are a lot faster too, really appreciate that.

ps: anyone willing to try nosotros try on https://dev.nosotros.app instead of the main domain, it's has a lot of fixes and it's way faster and lightweight

Thanks a lot man, I really appreciate it, I certainly inspired on Coracle on some things, although it's not there yet when compared to coracle as a whole, still needs some adjustments specially on the outbox model, but here we are 🫡

Thank you a lot for the feedback.

You can change the upload server directly on the photo, still a bit limited for now, it will be more flexible once I implement blossom (which I am very in needed right now)

Lots of deck features will come eventually, specially around column widths and reorder, note font size is a really good idea, I wasn't thinking about that.

I hope i can get NWC around next month, trying to fix all the small issues right now instead of adding everything at once

That's correct, I am being very careful to avoid content jumping, you are reading the feed then new notes are arriving and mess your scroll, the idea is to implement a tooltip of "show 5 new posts"

I agree, it might be somewhat useful once I have more outbox features, at the end I just want to expose relays to normal users in a good ux, at least gives a sense that the app is working and being "smart" about where it's finding notes, but I'm not there yet.

Finally leaving my room, need to touch some grass