upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01.md5
-rw-r--r--10.md16
-rw-r--r--README.md2
3 files changed, 16 insertions, 7 deletions
diff --git a/01.md b/01.md
index d62f317..e515d81 100644
--- a/01.md
+++ b/01.md
@@ -85,10 +85,11 @@ As a convention, all single-letter (only english alphabet letters: a-z, A-Z) key
85 85
86### Kinds 86### Kinds
87 87
88Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. This NIP defines two basic kinds: 88Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. [NIP-10](10.md), for instance, especifies the `kind:1` text note for social media applications.
89
90This NIP defines one basic kind:
89 91
90- `0`: **user metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. [Extra metadata fields](24.md#kind-0) may be set. A relay may delete older events once it gets a new one for the same pubkey. 92- `0`: **user metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. [Extra metadata fields](24.md#kind-0) may be set. A relay may delete older events once it gets a new one for the same pubkey.
91- `1`: **text note**: the `content` is set to the **plaintext** content of a note (anything the user wants to say). Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those.
92 93
93And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: 94And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation:
94 95
diff --git a/10.md b/10.md
index c1d5068..064e56a 100644
--- a/10.md
+++ b/10.md
@@ -1,14 +1,22 @@
1NIP-10 1NIP-10
2====== 2======
3 3
4 4Text Notes and Threads
5On "e" and "p" tags in Text Events (kind 1) 5----------------------
6-------------------------------------------
7 6
8`draft` `optional` 7`draft` `optional`
9 8
9This NIP defines `kind:1` as a simple plaintext note.
10
10## Abstract 11## Abstract
11This NIP describes how to use "e" and "p" tags in text events, especially those that are replies to other text events. It helps clients thread the replies into a tree rooted at the original event. 12
13This NIP describes how to use "e" and "p" tags in text events, especially those that are replies to other text events. It helps clients thread the replies into a tree rooted at the original event.
14
15The `.content` property contains some human-readable text.
16
17`e` and `p` tags can be used to define note threads, replies and mentions.
18
19Markup languages such as markdown and HTML SHOULD NOT be used.
12 20
13## Marked "e" tags (PREFERRED) 21## Marked "e" tags (PREFERRED)
14`["e", <event-id>, <relay-url>, <marker>, <pubkey>]` 22`["e", <event-id>, <relay-url>, <marker>, <pubkey>]`
diff --git a/README.md b/README.md
index 3b36f0b..ed8336c 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
31- [NIP-07: `window.nostr` capability for web browsers](07.md) 31- [NIP-07: `window.nostr` capability for web browsers](07.md)
32- [NIP-08: Handling Mentions](08.md) --- **unrecommended**: deprecated in favor of [NIP-27](27.md) 32- [NIP-08: Handling Mentions](08.md) --- **unrecommended**: deprecated in favor of [NIP-27](27.md)
33- [NIP-09: Event Deletion Request](09.md) 33- [NIP-09: Event Deletion Request](09.md)
34- [NIP-10: Conventions for clients' use of `e` and `p` tags in text events](10.md) 34- [NIP-10: Text Notes and Threads](10.md)
35- [NIP-11: Relay Information Document](11.md) 35- [NIP-11: Relay Information Document](11.md)
36- [NIP-13: Proof of Work](13.md) 36- [NIP-13: Proof of Work](13.md)
37- [NIP-14: Subject tag in text events](14.md) 37- [NIP-14: Subject tag in text events](14.md)