{"id":"4f9af3a477482cb0898e9457f1296936695eda322e48f30daa76f72e8d8cdb53","pubkey":"2b39b4ffe62933df970e19366c22c1e092f953f83fcfed754e0f04d5a3b459f9","created_at":1781353189,"kind":30817,"tags":[["d","nip-65"],["title","NIP-65: Relay List Metadata"],["summary","Kind 10002, the list saying where a key writes and where it reads mentions, which is what the outbox model is built on."],["s","draft"],["t","nostr"],["t","nip"],["k","10002","Relay List Metadata"],["alt","A specification: NIP-65: Relay List Metadata"],["client","openspecs-import"],["published_at","1675403576"],["proxy","https://github.com/nostr-protocol/nips/blob/656cecc7c0a815b6a2b218d3b5d6f078b3f4dbab/65.md","web"],["x","ca9cceac7b113bd98d543026c793f87d56478c624f93c799fa4d536e0e7de04a"]],"content":"NIP-65\n======\n\nRelay List Metadata\n-------------------\n\n`draft` `optional`\n\nDefines a replaceable event using `kind:10002` to advertise relays where the user generally **writes** to and relays where the user generally **reads** mentions.\n\nThe event MUST include a list of `r` tags with relay URLs as value and an optional `read` or `write` marker. If the marker is omitted, the relay is both **read** and **write**.\n\n```yaml\n{\n  \"kind\": 10002,\n  \"tags\": [\n    [\"r\", \"wss://alicerelay.example.com\"],\n    [\"r\", \"wss://brando-relay.com\"],\n    [\"r\", \"wss://expensive-relay.example2.com\", \"write\"],\n    [\"r\", \"wss://nostr-relay.example.com\", \"read\"]\n  ],\n  \"content\": \"\",\n  // other fields...\n}\n```\n\nWhen downloading events **from** a user, clients SHOULD use the **write** relays of that user.\n\nWhen downloading events **about** a user, where the user was tagged (mentioned), clients SHOULD use the user's **read** relays.\n\nWhen publishing an event, clients SHOULD:\n\n- Send the event to the **write** relays of the author\n- Send the event to all **read** relays of each tagged user\n- Send the author's `kind:10002` event to all relays the event was published to\n\n### Size\n\nClients SHOULD guide users to keep `kind:10002` lists small (2-4 relays of each category).\n\n### Discoverability\n\nClients SHOULD spread an author's `kind:10002` event to as many relays as viable, paying attention to relays that, at any moment, serve naturally as well-known public indexers for these relay lists (where most other clients and users are connecting to in order to publish and fetch those).\n","sig":"c1d4d17da6d376f97bff967e7ce2818b5b9fb27cb8fa136beec5f3fb5aa1d998b1572db4af157d8bd7cbcbac58872394c6188b14ab4a410e0a7d9d0279ebd40d"}