diff options
| author | fiatjaf_ <fiatjaf@gmail.com> | 2025-03-10 11:05:51 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 11:05:51 -0300 |
| commit | bf699c9bc15e16d78a2bd805626e8813446e5d31 (patch) | |
| tree | 1f008452b38d966f5a552bff6fd86a866fa916e6 | |
| parent | 7a9e2ec87d31a0ef455f0b0d5ee6713e0fd1ca65 (diff) | |
nip73: change "k" tags standard for webpage comments to a hardcoded `web` (#1836)
| -rw-r--r-- | 73.md | 37 |
1 files changed, 23 insertions, 14 deletions
| @@ -9,26 +9,37 @@ External Content IDs | |||
| 9 | There are certain established global content identifiers such as [Book ISBNs](https://en.wikipedia.org/wiki/ISBN), [Podcast GUIDs](https://podcastnamespace.org/tag/guid), and [Movie ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number) that are useful to reference in nostr events so that clients can query all the events assosiated with these ids. | 9 | There are certain established global content identifiers such as [Book ISBNs](https://en.wikipedia.org/wiki/ISBN), [Podcast GUIDs](https://podcastnamespace.org/tag/guid), and [Movie ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number) that are useful to reference in nostr events so that clients can query all the events assosiated with these ids. |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | `i` tags are used for referencing these external content ids, with `k` tags representing the external content id kind so that clients can query all the events for a specific kind. | 12 | `i` tags are used for referencing these external content ids, with `k` tags representing the external content id kind so that clients can query all the events for a specific kind. |
| 13 | 13 | ||
| 14 | ## Supported IDs | 14 | ## Supported IDs |
| 15 | 15 | ||
| 16 | | Type | `i` tag | `k` tag | | 16 | | Type | `i` tag | `k` tag | |
| 17 | |- | - | - | | 17 | | --- | --- | --- | |
| 18 | | URLs | "`<URL, normalized, no fragment>`" | "`<scheme-host, normalized>`" | | 18 | | URLs | "`<URL, normalized, no fragment>`" | "web" | |
| 19 | | Hashtags | "#`<topic, lowercase>`" | "#" | | 19 | | Hashtags | "#`<topic, lowercase>`" | "#" | |
| 20 | | Geohashes| "geo:`<geohash, lowercase>`" | "geo" | | 20 | | Geohashes | "geo:`<geohash, lowercase>`" | "geo" | |
| 21 | | Books | "isbn:`<id, without hyphens>`" | "isbn" | | 21 | | Books | "isbn:`<id, without hyphens>`" | "isbn" | |
| 22 | | Podcast Feeds | "podcast:guid:`<guid>`" | "podcast:guid" | | 22 | | Podcast Feeds | "podcast:guid:`<guid>`" | "podcast:guid" | |
| 23 | | Podcast Episodes | "podcast:item:guid:`<guid>`" | "podcast:item:guid" | | 23 | | Podcast Episodes | "podcast:item:guid:`<guid>`" | "podcast:item:guid" | |
| 24 | | Podcast Publishers | "podcast:publisher:guid:`<guid>`" | "podcast:publisher:guid" | | 24 | | Podcast Publishers | "podcast:publisher:guid:`<guid>`" | "podcast:publisher:guid" | |
| 25 | | Movies | "isan:`<id, without version part>`" | "isan" | | 25 | | Movies | "isan:`<id, without version part>`" | "isan" | |
| 26 | | Papers | "doi:`<id, lowercase>`" | "doi" | | 26 | | Papers | "doi:`<id, lowercase>`" | "doi" | |
| 27 | 27 | ||
| 28 | --- | 28 | --- |
| 29 | 29 | ||
| 30 | ## Examples | 30 | ## Examples |
| 31 | 31 | ||
| 32 | ### Webpages | ||
| 33 | |||
| 34 | For the webpage "https://myblog.example.com/post/2012-03-27/hello-world" the "i" and "k" tags are: | ||
| 35 | |||
| 36 | ```jsonc | ||
| 37 | [ | ||
| 38 | ["i","https://myblog.example.com/post/2012-03-27/hello-world"], | ||
| 39 | ["k", "web"] | ||
| 40 | ] | ||
| 41 | ``` | ||
| 42 | |||
| 32 | ### Books: | 43 | ### Books: |
| 33 | 44 | ||
| 34 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 | 45 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 |
| @@ -56,5 +67,3 @@ Each `i` tag MAY have a url hint as the second argument to redirect people to a | |||
| 56 | `["i", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg]` | 67 | `["i", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg]` |
| 57 | 68 | ||
| 58 | `["i", "isan:0000-0000-401A-0000-7", https://www.imdb.com/title/tt0120737]` | 69 | `["i", "isan:0000-0000-401A-0000-7", https://www.imdb.com/title/tt0120737]` |
| 59 | |||
| 60 | |||