clone

every nostr nip as a chapter of an illustrated, early-2000s printed game manual

main
nip.guide / source-nips / B0.md
B0.md 1.6K rendered
1NIP-B02======34Web Bookmarking5---------------67`draft` `optional`89This NIP defines `kind:39701` for a URI as editable web bookmark.1011### Format1213The format uses `kind:39701`.1415The `.content` should be a detailed description of the web bookmark. It can be an empty string.1617The `d` tag is just their URI. All characters before the hostname should be omitted if the scheme is `https`.1819In this way web bookmarks events can be queried by the `d` tag by clients.2021### Metadata2223Metadata fields can be added as tags to the event as necessary.2425* `"t"`, for "tags"/"hashtags" (i.e. topics about which the event might be of relevance)26* `"published_at"`, for the timestamp in unix seconds (stringified) of the first time the bookmark was published27* `"title"`, title about bookmark and can be used as a attribute for the HTML link element2829### Example3031```yaml32{33 "kind": 39701,34 "id": "d7a92714f81d0f712e715556aee69ea6da6bfb287e6baf794a095d301d603ec7",35 "pubkey": "2729620da105979b22acfdfe9585274a78c282869b493abfa4120d3af2061298",36 "created_at": 1738869705,37 "tags": [38 // Required tags39 ["d", "alice.blog/post"],40 // Optional tags41 ["published_at", "1738863000"],42 ["title", "Blog insights by Alice"],43 ["t", "post"],44 ["t", "insight"]45 ],46 "content": "A marvelous insight by Alice about the nature of blogs and posts.",47 "sig": "36d34e6448fe0223e9999361c39c492a208bc423d2fcdfc2a3404e04df7c22dc65bbbd62dbe8a4373c62e4d29aac285b5aa4bb9b4b8053bd6207a8b45fbd0c98"48}49```5051### Replies & Comments5253Replies to `kind:39701` MUST use `kind 1111` events as comments with [NIP-22](22.md).