{"id":"80582f097a9e26b7b9d3d08e9792f979487f469f6b8be716e14f2270501ce79a","pubkey":"2b39b4ffe62933df970e19366c22c1e092f953f83fcfed754e0f04d5a3b459f9","created_at":1774056811,"kind":30817,"tags":[["d","nip-21"],["title","NIP-21: `nostr:` URI scheme"],["summary","The nostr: URI scheme, which turns a NIP-19 entity into a link any client can open."],["s","draft"],["t","nostr"],["t","nip"],["alt","A specification: NIP-21: `nostr:` URI scheme"],["client","openspecs-import"],["published_at","1674662900"],["proxy","https://github.com/nostr-protocol/nips/blob/656cecc7c0a815b6a2b218d3b5d6f078b3f4dbab/21.md","web"],["x","e9a15c24e7bf61883fdf9af3b77c84a99761903f7237dc9124d0bde5744daf91"]],"content":"NIP-21\n======\n\n`nostr:` URI scheme\n-------------------\n\n`draft` `optional`\n\nThis NIP standardizes the usage of a common URI scheme for maximum interoperability and openness in the network.\n\nThe scheme is `nostr:`.\n\nThe identifiers that come after are expected to be the same as those defined in [NIP-19](nostr:naddr1qvzqqqrcvypzq2eeknl7v2fnm7tsuxfkds3vrcyjl9fls070a465urcy6k3mgk0eqqrxu6ts95cnj82u4dr) (except `nsec`).\n\n#### Examples\n\n- `nostr:npub1sn0wdenkukak0d9dfczzeacvhkrgz92ak56egt7vdgzn8pv2wfqqhrjdv9`\n- `nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p`\n- `nostr:nevent1qqstna2yrezu5wghjvswqqculvvwxsrcvu7uc0f78gan4xqhvz49d9spr3mhxue69uhkummnw3ez6un9d3shjtn4de6x2argwghx6egpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5nxnepm`\n\n### Linking HTML pages to Nostr entities\n\n`<link>` tags with `rel=\"alternate\"` can be used to associate webpages to Nostr events, in cases where the same content is served via the two mediums (for example, a web server that exposes Markdown articles both as HTML pages and as `kind:30023` events served under itself as a relay or through some other relay). For example:\n\n```\n<head>\n  <link rel=\"alternate\" href=\"nostr:naddr1qqyrzwrxvc6ngvfkqyghwumn8ghj7enfv96x5ctx9e3k7mgzyqalp33lewf5vdq847t6te0wvnags0gs0mu72kz8938tn24wlfze6qcyqqq823cph95ag\" />\n</head>\n```\n\nLikewise, `<link>` tags with `rel=\"me\"` or `rel=\"author\"` can be used to assign authorship of webpages to Nostr profiles. For example:\n\n```\n<head>\n  <link rel=\"me\" href=\"nostr:nprofile1qyxhwumn8ghj7mn0wvhxcmmvqyd8wumn8ghj7un9d3shjtnhv4ehgetjde38gcewvdhk6qpq80cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwswpnfsn\" />\n</head>\n```\n","sig":"1c9417cea05b038032c5791385813aa5c62cf6f14b5d48cb7736525eb36880387b140895be1ae5bab9951cc72015c8953efd1735001eb8ddd56dbc19f4d43c56"}