nips/85.md

34 lines
818 B
Markdown
Raw Normal View History

2023-11-13 16:43:15 -05:00
NIP-85
======
Reviews
-------
2024-09-25 12:42:09 -04:00
This NIP describes several different types of `review` which follow a single set of conventions.
2023-11-13 16:43:15 -05:00
2024-09-25 12:42:09 -04:00
In all cases, the `content` field SHOULD include a human-readable review. A single [NIP 73](./73.md) `i` tag indicates the object of the review. This allows for reviews of events, people, topics, relays, or external guids.
2023-11-13 16:43:15 -05:00
2024-09-25 12:42:09 -04:00
# Ratings
2023-11-13 16:43:15 -05:00
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.
2024-09-25 12:42:09 -04:00
# Review Kinds
2023-11-13 16:54:05 -05:00
2024-09-25 12:42:09 -04:00
## Relays
2023-11-13 16:43:15 -05:00
2024-09-25 12:42:09 -04:00
Kind `1987` indicates a review of a relay:
2023-11-13 16:43:15 -05:00
```json
{
2024-09-25 12:42:09 -04:00
"kind": 1987,
2023-11-13 16:43:15 -05:00
"content": "This relay is fast!",
"tags": [
["rating", "0.8"],
2024-09-25 12:42:09 -04:00
["rating", "0.2", "content"],
["rating", "1", "speed"],
["i", "wss://relay.example.com/"]
2023-11-13 16:43:15 -05:00
],
}
```