Abhay on Nostr: You need to build your own index, nostr isn't built for this, for this to work you ...
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.
Published at
2025-02-21 02:46:00Event JSON
{
"id": "80659a4f947b66f5dae46cad1dacc0ab91741e36f12ca9106a19df063058b9d6",
"pubkey": "c21b1a6cdb247ccbd938dcb16b15a4fa382d00ffd7b12d5cbbad172a0cd4d170",
"created_at": 1740105960,
"kind": 1,
"tags": [
[
"e",
"68b5b0e8cedf27b37fa4f4dd8d628ace6c8bd1a28afecc44b00deeadc51310e5",
"",
"root"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"7575b94fa81152fe529a4899d390294af142277154ce44036d50e2ad99d5c267"
]
],
"content": "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. \n\nContact list events can be huge,like mb sizes huge, they might follow 1000s of npubs, so good luck, \nBest 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. ",
"sig": "9c6e58a114a713f7e683ec381a7e11f11570ea9498dea5480a2cf8fa5a8b90add49e73258af614077ca53c17dd0a424fc963f656050f546aeee64dbb42ffdb09"
}