Step 1 of 5
List your relays
A replaceable kind 10002 event holds one r tag per relay. Publishing a new one replaces the old list.
NIP-65
DraftEvents
Your kind 10002 relay list says where you publish and where you read mentions, so others know where to find you (the outbox model).
Edit the form or the JSON: both stay in sync, the badge says whether the result is valid, and tapping any field explains it.
Not signed yet · Demo keys only. These personas' secret keys are public on purpose.
Select any field in the form or the JSON to see what it does.
Step 1 of 5
A replaceable kind 10002 event holds one r tag per relay. Publishing a new one replaces the old list.
Kind 10002 is a replaceable event (NIP-01): only the newest one counts.
Follow lists say who; relay lists say where to find them.
NIP-51 lists cover other relay sets, such as search or blocked relays.
Private messages use a separate kind 10050 inbox list.
Specification text is quoted in English from the nostr-protocol/nips repository. Our explanations and the interface are translated. Source on GitHub at commit 0046368
Defines a replaceable event using kind:10002 to advertise relays where the user generally writes to and relays where the user generally reads mentions.
The 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.
{
"kind": 10002,
"tags": [
["r", "wss://alicerelay.example.com"],
["r", "wss://brando-relay.com"],
["r", "wss://expensive-relay.example2.com", "write"],
["r", "wss://nostr-relay.example.com", "read"]
],
"content": "",
// other fields...
}
When downloading events from a user, clients SHOULD use the write relays of that user.
When downloading events about a user, where the user was tagged (mentioned), clients SHOULD use the user's read relays.
When publishing an event, clients SHOULD:
kind:10002 event to all relays the event was published toClients SHOULD guide users to keep kind:10002 lists small (2-4 relays of each category).
Clients 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).