See someone's followers (including your own) #111

Closed
opened 2023-01-04 06:41:47 +13:00 by mikedilger · 3 comments
mikedilger commented 2023-01-04 06:41:47 +13:00 (Migrated from github.com)

filter [kind=3, #p=pubkey]
multiple relays
merge

filter [kind=3, #p=pubkey] multiple relays merge
mikedilger commented 2024-12-04 09:22:20 +13:00 (Migrated from github.com)

This is a lot of data to load, and there is no way to get it all since people don't all use the same relays and you would need to get data from people you've never heard of before... since nostr isn't centralized, the best you can do is ask lots of relays for all their kind-3 events that reference you (or the person in question), and eliminate duplicates. This can take several minutes, which is a UI problem.

And if you just want the count, HLL may be coming soon.

Luckily nostr doesn't have to be just one giant app. We can instead put a link to some other app which does this, instead of doing it ourselves... like "view your followers" that opens some web-page nostr app that does this.

This is a lot of data to load, and there is no way to get it all since people don't all use the same relays and you would need to get data from people you've never heard of before... since nostr isn't centralized, the best you can do is ask lots of relays for all their kind-3 events that reference you (or the person in question), and eliminate duplicates. This can take several minutes, which is a UI problem. And if you just want the count, HLL may be coming soon. Luckily nostr doesn't have to be just one giant app. We can instead put a link to some other app which does this, instead of doing it ourselves... like "view your followers" that opens some web-page nostr app that does this.
mikedilger commented 2024-12-05 06:09:45 +13:00 (Migrated from github.com)

I decided to go ahead and try this anyhow. I've got it all but the UI part which is the trickiest part because if you have somebody with 6,000 followers (not uncommon at all) you cannot reasonably list that many alphabatized since you only have a set of 6,000 pubkeys and no way to sort them alphabatized on person name. Holding 6000 person records is too big. There is a way to only render the ones that are actually on screen, just no way to sort them.

I decided to go ahead and try this anyhow. I've got it all but the UI part which is the trickiest part because if you have somebody with 6,000 followers (not uncommon at all) you cannot reasonably list that many *alphabatized* since you only have a set of 6,000 pubkeys and no way to sort them *alphabatized* on person name. Holding 6000 person records is too big. There *is* a way to only render the ones that are actually on screen, just no way to sort them.
mikedilger commented 2024-12-05 11:30:40 +13:00 (Migrated from github.com)

This is on unstable and while still janky, I'm going to close this issue. Basically done.

This is on unstable and while still janky, I'm going to close this issue. Basically done.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#111
No description provided.