nips/85.md

36 lines
920 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-26 11:33:45 -04:00
In all cases, the `content` field SHOULD include a human-readable review.
Review events' `d` tag indicates the object of the review. This MUST take the form of a [NIP 73](./73.md) id. This allows for reviews of events, people, topics, relays, or external guids without ambiguity.
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-26 11:33:45 -04:00
Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the relay.
2023-11-13 16:43:15 -05:00
```json
{
2024-09-26 11:33:45 -04:00
"kind": 31987,
2023-11-13 16:43:15 -05:00
"content": "This relay is fast!",
"tags": [
2024-09-26 11:33:45 -04:00
["d", "wss://relay.example.com/"],
2023-11-13 16:43:15 -05:00
["rating", "0.8"],
2024-09-25 12:42:09 -04:00
["rating", "0.2", "content"],
2024-09-26 11:33:45 -04:00
["rating", "1", "speed"]
2023-11-13 16:43:15 -05:00
],
}
```