Skip to content

Commit 4438b89

Browse files
authored
Merge pull request #1508 from MerryOscar/expand-external-content-ids
NIP-73 - Expand External Content IDs
2 parents 4e73e94 + 79786bb commit 4438b89

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

73.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,29 @@ External Content IDs
66

77
`draft` `optional`
88

9-
There are certain established global content identifiers that would be useful to reference in nostr events so that clients can query all 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.
1010

11-
- Book [ISBNs](https://en.wikipedia.org/wiki/ISBN)
12-
- Podcast [GUIDs](https://podcastnamespace.org/tag/guid)
13-
- Movie [ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number)
14-
15-
Since the `i` tag is already used for similar references in kind-0 metadata events it makes sense to use it for these content ids as well.
1611

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.
1713

1814
## Supported IDs
1915

16+
| Type | `i` tag | `k` tag |
17+
|- | - | - |
18+
| URLs | "`<URL, normalized, no fragment>`" | "`<scheme-host, normalized>`" |
19+
| Hashtags | "#`<topic, lowercase>`" | "#" |
20+
| Geohashes| "geo:`<geohash, lowercase>`" | "geo" |
21+
| Books | "isbn:`<id, without hyphens>`" | "isbn" |
22+
| Podcast Feeds | "podcast:guid:`<guid>`" | "podcast:guid" |
23+
| Podcast Episodes | "podcast:item:guid:`<guid>`" | "podcast:item:guid" |
24+
| Podcast Publishers | "podcast:publisher:guid:`<guid>`" | "podcast:publisher:guid" |
25+
| Movies | "isan:`<id, without version part>`" | "isan" |
26+
| Papers | "doi:`<id, lowercase>`" | "doi" |
27+
28+
---
29+
30+
## Examples
31+
2032
### Books:
2133

2234
- Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030

0 commit comments

Comments
 (0)