Expand description
A link to a note that can be given to anyone: a web address, which opens in a browser whether or not whoever gets it has a Nostr client.
The note is named in it by its nevent (NIP-19): its id, who wrote it,
what kind it is, and a couple of the relays it was seen on, so that
whatever opens the link knows where to look. Nothing is asked of
anyone to make one, and nothing is told to anyone until it is opened.
The page it leads to is SHARE_GATEWAY’s: a site that shows a note
to a browser and offers to open it in a client. That is somebody
else’s server, and the one thing in a share link that is not the
note’s own.
Constants§
- SHARE_
GATEWAY 🔒 - Where a share link leads: the site that shows the note it names.
- SHARE_
HINTS 🔒 - How many relays a share link names for its note: enough to find it by if one is gone, and no more than keeps the link short.
Functions§
- share_
link - The link to give someone to the note
idof kindkind, written byauthorand seen on the relaysseen_on. Of those only relays anyone can reach are named: not one on this machine or this network.