rheedio on Nostr: We've just started labeling any notes across Nostr that reference content from ...
We've just started labeling any notes across Nostr that reference content from
wavlake (npub1yfg…v6vg). The goal here is to make it a lot easier for Nostr clients (including our app) to pull in any social activity related to a specific track or album.
For the technical: we used NIP-32 for labeling and NIP-73 to identify external content, following the `podcast:guid` convention for namespacing based on the content type. With these labels, we can now filter our queries to relays to only send back kind 1985 notes tagged with specific GUIDs (for a track, for example), and then get the event ID's for any notes related to that content. This should be a lot more efficient than doing blanket searches on events and combing through the content for any relevant references.
We'll be testing this internally to see how well it works before rolling out our latest mobile update. Happy to hear feedback on our approach. Special thanks to
merryoscar (npub1unm…d0j2) for some guidance on this.
Sample label here: nevent1qqsz3jg7qjrem0v362pp4dpqrhekdf8ypq9aywzfjg5yj3aly5plm9cprpmhxue69uhhyetvv9ujumn0wdmksetjv5hxxmmdqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsygrht8ldsg0k9tetzfuad0du5zac04ct7qq45j2hvy0wxk6xkhadhg5kklft
Published at
2024-09-06 20:23:49Event JSON
{
"id": "06351161ab3d249c9b1c46ccc519619ccb4a6f10493102b705caac63d3fd6443",
"pubkey": "13c63df6c5651a3b0e3d53f340e6e370b140a62557429fd165b94162a8f3e923",
"created_at": 1725654229,
"kind": 1,
"tags": [
[
"e",
"28c91e04879dbd91d2821ab4201df366a4e4080bd2384992284947bf2503fd97",
"wss://relay.noswhere.com/",
"mention"
],
[
"p",
"2250f69694c2a43929e77e5de0f6a61ae5e37a1ee6d6a3baef1706ed9901248b",
"",
"mention"
],
[
"p",
"e4f695f05bb05b231255ccce3d471b8d79c64a65bccc014662d27f0f7e921092",
"",
"mention"
],
[
"p",
"7759fed821f62af2b1279d6bdbca0bb87d70bf0015a4957611ee35b46b5fadba",
"",
"mention"
]
],
"content": "We've just started labeling any notes across Nostr that reference content from nostr:npub1yfg0d955c2jrj2080ew7pa4xrtj7x7s7umt28wh0zurwmxgpyj9shwv6vg. The goal here is to make it a lot easier for Nostr clients (including our app) to pull in any social activity related to a specific track or album.\n\nFor the technical: we used NIP-32 for labeling and NIP-73 to identify external content, following the `podcast:guid` convention for namespacing based on the content type. With these labels, we can now filter our queries to relays to only send back kind 1985 notes tagged with specific GUIDs (for a track, for example), and then get the event ID's for any notes related to that content. This should be a lot more efficient than doing blanket searches on events and combing through the content for any relevant references.\n\nWe'll be testing this internally to see how well it works before rolling out our latest mobile update. Happy to hear feedback on our approach. Special thanks to nostr:npub1unmftuzmkpdjxyj4en8r63cm34uuvjn9hnxqz3nz6fls7l5jzzfqtvd0j2 for some guidance on this.\n\nSample label here: nevent1qqsz3jg7qjrem0v362pp4dpqrhekdf8ypq9aywzfjg5yj3aly5plm9cprpmhxue69uhhyetvv9ujumn0wdmksetjv5hxxmmdqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsygrht8ldsg0k9tetzfuad0du5zac04ct7qq45j2hvy0wxk6xkhadhg5kklft",
"sig": "c9c57d0f29dbd72a6b875f0826d52ec0a6fe725eb37f504bdc18e9b406ff92d40a77010a808238b00a540807461b528eaff451edccafba14e0779b5c232b9280"
}