-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Your Own Adventure posts #1606
Open
vitorpamplona
wants to merge
9
commits into
nostr-protocol:master
Choose a base branch
from
vitorpamplona:byos
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+95
−0
Open
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3819694
Build your own posts.
vitorpamplona 4a020dc
separating root from other nodes.
vitorpamplona 83df1e6
Fixes nip number
vitorpamplona d7be8af
Improves text, removes reference loop
vitorpamplona e87baf2
Adds reading state
vitorpamplona eea63b1
Removes trademark issues and makes all content modifiable to make it …
vitorpamplona 7c6aff4
Fixing missing migration from e to a tags on the reading state.
vitorpamplona 04fec8c
Update 63.md
vitorpamplona 773984d
Clarifies that replies should use NIP-22
vitorpamplona File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
NIP-63 | ||
====== | ||
|
||
Interactive Stories | ||
------------------- | ||
|
||
`draft` `optional` | ||
|
||
This NIP introduces `kind:30296` and `kind:30297` as living notes designed to create interactive stories. These notes include `option` tags for navigating to subsequent notes, allowing readers to continue exploring the story. `Kind:30296` serves as starting events for the reader, while `kind:30297` represents individual scenes within the narrative. | ||
|
||
The modularity of this approach allows Scenes from multiple authors to be combined into bigger stories. | ||
|
||
### Prologue (kind:30296) | ||
|
||
Prologue events are entry points in the story. | ||
|
||
They SHOULD contain `title`, `summary` and `image` to help clients render a preview of the story. | ||
|
||
`option` tags include a description for the action button, an address and the relay to find the next scene. | ||
|
||
```jsonc | ||
{ | ||
"kind": 30296, | ||
"content": "<the beginning of the story>", | ||
"tags": [ | ||
["d", "<unique identifier>"], | ||
["title", "<short title for the prologue>"], | ||
["summary", "<summary for preview>"], | ||
["image", "<image url for preview>"], | ||
|
||
["option", "<description>", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
["option", "<description>", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
// ... | ||
] | ||
} | ||
``` | ||
|
||
### Scene (kind:30297) | ||
|
||
Scenes describe a given point in a story with potential options and SHOULD include an optional `title` tag. | ||
|
||
```jsonc | ||
{ | ||
"kind": 30297, | ||
"content": "<description of the scene>", | ||
"tags": [ | ||
["d", "<unique identifier>"], | ||
["title", "<short title for this scene>"], | ||
|
||
["option", "<description>", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
["option", "<description>", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
// ... | ||
] | ||
} | ||
``` | ||
|
||
The story concludes when no `option` tags are present. | ||
|
||
The `.content` field does not accept markdown. | ||
|
||
## Reading State | ||
|
||
Kind `30298` stores the latest state of the story. | ||
|
||
The `d` tag of the replaceable event MUST match the root event's id. | ||
|
||
The `e` tag points to the latest scene the user has read. | ||
vitorpamplona marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```jsonc | ||
{ | ||
"kind": 30298, | ||
"tags": [ | ||
// d-tag defines the starting point so that if the user sees an interative post again, the client can find it. | ||
["d", "<kind:pubkey:d-tag>"], | ||
|
||
// cached to simplify preview purposes | ||
["title", "<root_event_title>"], | ||
["summary", "<root_event_summary>"], | ||
["image", "<image url for preview>"], | ||
|
||
// root with relay hint | ||
["A", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
|
||
// current scene with relay hint | ||
["a", "<kind:pubkey:d-tag>", "<relay_hint>"], | ||
|
||
// reading status | ||
["status", "<new|reading|done>"] | ||
] | ||
} | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it possible to reply to scenes with further scenes. If your story gets referenced, your client should pick up on that (if you follow me for example) and make it easy for you to add my event as an option using the title as description of a further option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum... I wonder how to do that.. we could add a tag but then you will have to remember deleting it later. Or maybe we just create another kind...