What a relay is
A relay is a server that holds Nostr posts and passes them on. When you post, your app sends the post to a few relays. When you open your feed, it asks relays for the posts of the people you follow.
You use several relays at once, so if one goes down, the others still have your posts. You can change relays any time without losing your account or your follows. Your vault keeps its own copy of everything you post.
Photos and videos don't go to relays. They go to media servers.
The simple view
Your relays and Messages
Open Settings → Relays. You see two lists:
- Your relays: your posts go here, and people reach you here. Other apps find you through this list. Each relay has one switch. The relays Nostr Vault recommends have a Recommended badge.
- Messages: where private messages arrive. Two is safer than one. More on message relays.
To add a relay, tap Add a relay and type its address, for example relay.example.com.
You can leave out wss://.
Use recommended relays puts back the recommended set: relay.primal.net and relay.btcforplebs.com. Relays you added are turned off, not deleted, so you can switch them back on.
Saving
Nothing changes until you save. Saving publishes your lists, so your other devices and other Nostr apps use them.
- iPhone, iPad, Mac and Android: Save publishes your relays and your message inbox together.
- Web: Your relays and Messages each have their own Save and publish.
The warnings at the top
If something in your lists needs fixing, a line at the top says so:
- No relay for your posts. Turn one on, or nobody can read what you post.
- No relay for mentions. Replies and tags from other people won't reach you.
- Only one relay for mentions. Add a second, so replies still reach you if it goes down.
- No relay for messages. People can't send you private messages.
- Only one relay for messages. Add a second, so messages still arrive if it goes down.
- More than 4 relays for your posts. Other apps only check a few; 2 or 3 is plenty.
- No relay for search. Search won't find people or posts. (Apps only: the web has no search relays.)
Is it working?
The dots and "N of M relays online"
The top of the Relays page says how many of your relays this device can reach right now, for example 5 of 6 relays online. Only relays you have switched on count. Its dot is green when all of them answer, yellow when some do, and red when none do.
Each relay has a dot and a short line under its name:
- Green, Online · 120 ms: it answers, and that is how long it took from this device.
- Yellow, Slow · 720 ms or Connecting: it answers slowly (over half a second), or the app is still reaching it.
- Yellow, Asks to sign in: the relay wants to know who you are before it lets you read or post. See Signing in.
- Red, Not answering: the app can't reach it. The reason follows when there is one, for example a timeout. One red relay is fine: your other relays still carry your posts.
- Red, Sign-in refused: the relay turned your sign-in down, often because it is a paid relay and this account hasn't paid.
- Grey: not checked yet, or switched off.
A relay that signed you in also gets a Signed in badge next to its name.
A relay's own page
Tap a relay's name (not its switch) to open its page:
- Status: online or not, Speed from this device, and since when it has been connected, or its Last error.
- Sign-in: not asked, signed in, asks to sign in, or refused with the relay's own words.
- Jobs: the same My posts, Mentions and Messages switches as Advanced. Changes wait for Save on the Relays page.
- Log: what this device saw from the relay, newest first: connects, drops, its notices, refused
posts and sign-ins. When the same thing happens again and again, it shows once with a count, like
(×12). The log stays on this device, only for as long as the app is open, and is never sent anywhere. - Copy log copies the relay's address and its log, to paste into a message when you ask for help. Check now times the relay again straight away.
- At the bottom: Remove relay, and on the apps Never connect, which also blocks it everywhere in the app.
Signing in to a relay
Some relays, often paid ones, ask you to prove who you are before they let you read or post (NIP-42). Nostr Vault only signs in to relays in your own Your relays and Messages lists, once per connection.
- Web: with your key in the browser or a signer extension, it signs in by itself. With a bunker (remote signer), the relay shows Asks to sign in and its page has a Sign in now button: tap it and approve the request in your bunker. Tap it again if you said no the first time.
- Android: with your key on the device, it signs in by itself. With a bunker or Amber, the relay shows Asks to sign in and its page has a Sign in now button: tap it and approve the request in your bunker or Amber. Tap it again if you said no the first time.
- iPhone, iPad and Mac: with your key on the device, it signs in by itself. With a bunker, the relay shows Asks to sign in and its page has a Sign in now button: tap it and approve the request in your bunker. Tap it again if you said no the first time.
Relay settings in the profile menu
You can open the Relays page without going through Settings:
- iPhone: hold your profile picture in the tab bar and pick Relay settings.
- iPad: tap your profile picture at the top of the sidebar and pick Relay settings.
- Mac: click your profile picture at the top of the sidebar and pick Relay settings.
- Android: hold your account picture and pick Relay settings.
- Web: hold (or right-click) your profile picture and pick Relay settings. It is there with one account too.
Advanced
My posts, Mentions and Messages
Turn on Advanced to give each relay its own jobs. Inbox and Outbox are the Nostr names for Mentions and My posts.
- My posts (your outbox): where your posts are published. Others read you here.
- Mentions (your inbox): where people reach you with replies and tags.
- Messages (your DM inbox): where private messages arrive.
- Search and Import (iPhone, iPad, Mac and Android): where the app looks things up, and where it copies your older posts from. These are used by this device only.
My posts without Mentions: your posts go here, but replies to you won't.
On the apps, the grid has two parts. Published is your relay list (NIP-65, kind 10002) and your DM inbox (kind 10050). This device only is used by this device to look people up and fill gaps, and is never published. Look-ups also ask primus.nostr1.com, a read-only index of people.
The web also has Never Connect: relays the app won't open a connection to, even when someone you follow uses them.
How it works
Reading people where they post, reaching them where they read
Everyone on Nostr has their own relays, so Nostr Vault follows each person's lists (the outbox model):
- Your feed reads each person you follow from their own My posts relays, not only from yours. It adds at most 8 extra relays, picked to reach the most people.
- A reply, like, repost or quote goes to your My posts relays, and a copy goes to the Mentions relays of every person it tags (up to 3 relays each, 12 people), so they see it.
- A thread also reads its replies from the Mentions relays of the person who wrote it.
- A private message goes to at most 3 of the other person's message relays.
A Linux box vault posts to your own My posts relays too, and picks up a change you save on any device.
Next
- Messages: message relays and who can reach you.
- Media servers: where photos and videos go.