nips/63.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2024-11-23 19:28:52 -05:00
NIP-63
2024-11-23 17:55:35 -05:00
======
Build Your Own Story
--------------------
`draft` `optional`
2024-11-23 19:25:36 -05:00
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.
2024-11-23 17:55:35 -05:00
2024-11-23 19:25:36 -05:00
The idea is to replicate the dynamism of build your own adventure books, where each reader takes their own journey in the story.
2024-11-23 17:55:35 -05:00
2024-11-23 19:25:36 -05:00
Story Section events contain an optional `title` tag and `option` tags for the next sections.
2024-11-23 17:55:35 -05:00
Clients SHOULD render options in a way that users can select and move to that post.
```jsonc
{
"kind": 296,
2024-11-23 19:25:36 -05:00
"content": "<the beginning of the story>",
2024-11-23 17:55:35 -05:00
"tags": [
["title", "<short title for this part of the story>"],
["option", "<description>", "<event_id>", "<relay_hint>"],
["option", "<description>", "<event_id>", "<relay_hint>"],
// ...
]
}
```
2024-11-23 19:25:36 -05:00
```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.
2024-11-23 17:55:35 -05:00
`.content` SHOULD use the same formatting rules as `kind:1`