Compare commits
12 Commits
99176627a2
...
7a8f6d0d16
Author | SHA1 | Date |
---|---|---|
|
7a8f6d0d16 | |
|
7dec812f99 | |
|
739f3c5263 | |
|
8830525250 | |
|
fac6e491a6 | |
|
f43fe885e8 | |
|
3dceff4ea8 | |
|
dbf88d8ff1 | |
|
be8a671d98 | |
|
eb604714fd | |
|
db999e40f2 | |
|
ddf75980ef |
2
21.md
2
21.md
|
@ -21,7 +21,7 @@ The identifiers that come after are expected to be the same as those defined in
|
|||
|
||||
### Linking HTML pages to Nostr entities
|
||||
|
||||
`<link>` tags with `rel="alternate"` can be used to associate webpages to Nostr events, in cases where the same content is served via the two mediums (for example, a web server that exposes Markdown articles both as HTML pages and as `kind:30023' events served under itself as a relay or through some other relay). For example:
|
||||
`<link>` tags with `rel="alternate"` can be used to associate webpages to Nostr events, in cases where the same content is served via the two mediums (for example, a web server that exposes Markdown articles both as HTML pages and as `kind:30023` events served under itself as a relay or through some other relay). For example:
|
||||
|
||||
```
|
||||
<head>
|
||||
|
|
8
22.md
8
22.md
|
@ -143,13 +143,13 @@ A comment on a website's url looks like this:
|
|||
"tags": [
|
||||
// referencing the root url
|
||||
["I", "https://abc.com/articles/1"],
|
||||
// the root "kind": for an url, the kind is its domain
|
||||
["K", "https://abc.com"],
|
||||
// the root "kind": for an url
|
||||
["K", "web"],
|
||||
|
||||
// the parent reference (same as root for top-level comments)
|
||||
["i", "https://abc.com/articles/1"],
|
||||
// the parent "kind": for an url, the kind is its domain
|
||||
["k", "https://abc.com"]
|
||||
// the parent "kind": for an url
|
||||
["k", "web"]
|
||||
]
|
||||
// other fields
|
||||
}
|
||||
|
|
13
24.md
13
24.md
|
@ -8,8 +8,7 @@ Extra metadata fields and tags
|
|||
|
||||
This NIP keeps track of extra optional fields that can added to events which are not defined anywhere else but have become _de facto_ standards and other minor implementation possibilities that do not deserve their own NIP and do not have a place in other NIPs.
|
||||
|
||||
kind 0
|
||||
======
|
||||
### kind 0
|
||||
|
||||
These are extra fields not specified in NIP-01 that may be present in the stringified JSON of metadata events:
|
||||
|
||||
|
@ -19,24 +18,22 @@ These are extra fields not specified in NIP-01 that may be present in the string
|
|||
- `bot`: a boolean to clarify that the content is entirely or partially the result of automation, such as with chatbots or newsfeeds.
|
||||
- `birthday`: an object representing the author's birth date. The format is { "year": number, "month": number, "day": number }. Each field MAY be omitted.
|
||||
|
||||
### Deprecated fields
|
||||
#### Deprecated fields
|
||||
|
||||
These are fields that should be ignored or removed when found in the wild:
|
||||
|
||||
- `displayName`: use `display_name` instead.
|
||||
- `username`: use `name` instead.
|
||||
|
||||
kind 3
|
||||
======
|
||||
### kind 3
|
||||
|
||||
These are extra fields not specified in NIP-02 that may be present in the stringified JSON of follow events:
|
||||
|
||||
### Deprecated fields
|
||||
#### Deprecated fields
|
||||
|
||||
- `{<relay-url>: {"read": <true|false>, "write": <true|false>}, ...}`: an object of relays used by a user to read/write. [NIP-65](65.md) should be used instead.
|
||||
|
||||
tags
|
||||
====
|
||||
### tags
|
||||
|
||||
These tags may be present in multiple event kinds. Whenever a different meaning is not specified by some more specific NIP, they have the following meanings:
|
||||
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
NIP-CB
|
||||
======
|
||||
|
||||
Kanban Boards
|
||||
-------
|
||||
|
||||
`draft` `optional`
|
||||
|
||||
A Kanban Board is a replaceable `kind 37733` event, which includes a list of column names and a mapping to their associated content.
|
||||
|
||||
Columns can contain any nostr event.
|
||||
|
||||
Clients are expected to only support a subset of event kinds when rendering Kanban cards.
|
||||
|
||||
When a column holds a large number of cards, these cards SHOULD be placed into a `kind 37734 Column reserve` event to prevent the `kind 37733` event from getting too large.
|
||||
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 37733,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["d", "<board-identifier>"],
|
||||
["title", "Board Title"],
|
||||
["description", "Board Description"],
|
||||
|
||||
// Use an `E` or `A` tag to associate the board with another event.
|
||||
// For example a GitRepositoryAnnouncement:
|
||||
["A", "30617:<pubkey>:<repo-identifier>"],
|
||||
|
||||
// Columns arranged in the intended order.
|
||||
// Column IDs should be lowercase and alphanumeric.
|
||||
["col", "col-id-1", "To Do"],
|
||||
["col", "col-id-2", "In Progress"],
|
||||
["col", "col-id-2", "Done"],
|
||||
|
||||
// Column items `["e/a", "<event-id/coordinate>", "<col-id>", "<optional-relay-hint>"]` arranged in the intended order
|
||||
["e", "<event-id>", "col-id-1", "wss://relay.lol"],
|
||||
["a", "<event-coordinate>", "col-id-1", ""],
|
||||
["e", "<event-id>", "col-id-2"],
|
||||
["e", "<event-id>", "col-id-3"],
|
||||
|
||||
// Optional column reserve for holding large amount of cards
|
||||
// `["r", "37734:<pubkey>:<d-identifier", "<col-id>", "<optional-relay-hint>"]`
|
||||
["r", "37734:<pubkey>:<d-identifier", "col-id-3", "wss://relay.lol"],
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Column reserve
|
||||
|
||||
A column reserve is a replaceable `kind 37734` event that contains a list of Kanban cards, used to offload and reduce the size of the original `kind 37733` event. Its usage is optional but recommended for columns with a large amount of cards.
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 37734,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["d", "<column-identifier>"],
|
||||
|
||||
// Tags arranged in the intended order.
|
||||
["e", "b7804254d1ae143aeacb50b2504398a43e2f39abd87141036b7f1cc8aec4069e", "<relay-hint>"],
|
||||
["a", "<kind>:<pubkey>:<d-identifier>", "<relay-hint>"],
|
||||
["e", "71cfeb1171960e4ad6f65d7f87c5bf41be9ef4aaf4452fd2f6968c0b340f79d7", "<relay-hint>"],
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Possible extentions to add later
|
||||
|
||||
- Different column types
|
||||
- Dedicated event kind for Kanban cards
|
||||
- Multi-user support
|
Loading…
Reference in New Issue