diff --git a/85.md b/85.md new file mode 100644 index 0000000000..85c5f56f0d --- /dev/null +++ b/85.md @@ -0,0 +1,70 @@ +NIP-85 +====== + +Reviews +------- + +This NIP describes several different types of `review` which follow a single set of conventions. + +In all cases, the `content` field SHOULD include a human-readable review. A review event's `d` tag indicates the object of the review. + +# Ratings + +Tags MAY contain additional `rating` tags each of which should have a `value` between 0 and 1, +and an optional `mark` specifying an attribute of the thing being reviewed. + +# Review Kinds + +## Event + +Kind `31986` indicates a review of any event generated by a `pubkey`. + +- The `d` tag MUST be the `id` of the event. +- The `p` tag MUST be the `pubkey` of the event. + +```json +{ + "kind": 31986, + "content": "Always publishing quality information about breaking news all over the world.", + ... + "tags": [ + ["d", ""] + ["p", ""], + ["k", "1"], + ["rating", "0.8"] + ], +} +``` + +## Relays + +Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the relay. + +```json +{ + "kind": 31987, + "content": "This relay is fast!", + "tags": [ + ["d", "wss://relay.example.com/"], + ["rating", "0.8"], + ["rating", "0.2", "content"], + ["rating", "1", "speed"] + ], +} +``` + + +## Books + +Kind `31985` indicates a review of a book. The `d` tag MUST be a [NIP 73](./73.md) ISBN content ID. + +```json +{ + "kind": 31985, + "tags": [ + ["d","isbn:9781529100624"], + ["rating", "0.8"] + ], + "content": "Good book", +} +``` diff --git a/README.md b/README.md index 6f3ff02cc5..5e7561630d 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,6 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | `1971` | Problem Tracker | [nostrocket][nostrocket] | | `1984` | Reporting | [56](56.md) | | `1985` | Label | [32](32.md) | -| `1986` | Relay reviews | | | `1987` | AI Embeddings / Vector lists | [NKBIP-02] | | `2003` | Torrent | [35](35.md) | | `2004` | Torrent Comment | [35](35.md) | @@ -239,6 +238,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | `31923` | Time-Based Calendar Event | [52](52.md) | | `31924` | Calendar | [52](52.md) | | `31925` | Calendar Event RSVP | [52](52.md) | +| `31987` | Relay Review | [85](85.md) | | `31989` | Handler recommendation | [89](89.md) | | `31990` | Handler information | [89](89.md) | | | `32267` | Software Application | | |