Replying to Avatar ABH3PO

You need to build your own index, nostr isn't built for this, for this to work you would need to fetch all contact list (kind 3 events) an npub is mentioned in, then for each npub in those lists you'd need to fetch contact list events they are mentioned in.

Contact list events can be huge,like mb sizes huge, they might follow 1000s of npubs, so good luck,

Best way to do it would be to build your own index where you run this query once per user and then query your own index, managing updates would be another hassle though.

Avatar
Yadunandan Batchu 11mo ago

any good open source reference implementations?

Reply to this note

Please Login to reply.

Discussion

Avatar
ABH3PO 11mo ago

Primal does it and is open source I think

Thread collapsed