upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/b0.md
diff options
context:
space:
mode:
Diffstat (limited to 'b0.md')
-rw-r--r--b0.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/b0.md b/b0.md
new file mode 100644
index 0000000..5ff88b0
--- /dev/null
+++ b/b0.md
@@ -0,0 +1,31 @@
1NIP-B0
2======
3
4Web Bookmarking
5---------------
6
7`draft` `optional`
8
9This NIP defines `kind:39701` as website bookmarks.
10
11```jsonc
12{
13 "kind": 39701,
14 "id": "d7a92714f81d0f712e715556aee69ea6da6bfb287e6baf794a095d301d603ec7",
15 "pubkey": "2729620da105979b22acfdfe9585274a78c282869b493abfa4120d3af2061298",
16 "created_at": 1738869705,
17 "tags": [
18 ["d", "alice.blog/post"],
19 ["t", "post"],
20 ["t", "insight"]
21 ],
22 "content": "A marvelous insight by Alice about the nature of blogs and posts.",
23 "sig": "36d34e6448fe0223e9999361c39c492a208bc423d2fcdfc2a3404e04df7c22dc65bbbd62dbe8a4373c62e4d29aac285b5aa4bb9b4b8053bd6207a8b45fbd0c98"
24}
25```
26
27Bookmarks can be queried by the `d` tag, which is just their URL without the scheme, which is always and everywhere assumed to be `https://`.
28
29The querystring and the hash must be removed entirely, unless their requirement is explicitly stated either by the user or by some hardcoded list of URLs that rely on querystrings for basic routing provided by the client (I've searched the internet extensively and could only find 3 websites that do this: YouTube, Hacker News and a random guy's sad old blog).
30
31Bookmarks can be commented on with [NIP-22](22.md).