separating root from other nodes.

This commit is contained in:
Vitor Pamplona 2024-11-23 19:25:36 -05:00
parent 3819694bbf
commit 4a020dc25a

29
63.md
View File

@ -6,22 +6,18 @@ Build Your Own Story
`draft` `optional` `draft` `optional`
This NIP defines `kind:296` as a text note with options to navigate to the next text notes and continue reading. This NIP defines `kind:296` and `kind:297` as text notes with options to navigate to the next text notes and continue reading. Kind `296` serves as the root story and `297` for the sections of that story.
The idea is to replicate the dynamism of build your own adventure books, where each reader makes their own version of the story. The idea is to replicate the dynamism of build your own adventure books, where each reader takes their own journey in the story.
## Story Section Events Story Section events contain an optional `title` tag and `option` tags for the next sections.
Story Section events contain a `title` tag and `option` tags for the next sections.
Clients SHOULD render options in a way that users can select and move to that post. Clients SHOULD render options in a way that users can select and move to that post.
The story ends when there are no `option`s available.
```jsonc ```jsonc
{ {
"kind": 296, "kind": 296,
"content": "<the story>", "content": "<the beginning of the story>",
"tags": [ "tags": [
["title", "<short title for this part of the story>"], ["title", "<short title for this part of the story>"],
@ -32,4 +28,21 @@ The story ends when there are no `option`s available.
} }
``` ```
```jsonc
{
"kind": 297,
"content": "<continuation of the story>",
"tags": [
["title", "<short title for this part of the story>"],
["e", "<event_id>", "<relay_hint>" ] // root event.
["option", "<description>", "<event_id>", "<relay_hint>"],
["option", "<description>", "<event_id>", "<relay_hint>"],
// ...
]
}
```
The story ends when there are no `option`s available.
`.content` SHOULD use the same formatting rules as `kind:1` `.content` SHOULD use the same formatting rules as `kind:1`