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.
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.
Kind 31986 indicates a review of any event generated by a pubkey.
- The
dtag MUST be theidof the event. - The
ptag MUST be thepubkeyof the event.
{
"kind": 31986,
"content": "Always publishing quality information about breaking news all over the world.",
...
"tags": [
["d", "<event-id>"]
["p", "<pubkey>"],
["k", "1"],
["rating", "0.8"]
],
}Kind 31987 indicates a review of a relay. The d tag MUST be the url of the relay.
{
"kind": 31987,
"content": "This relay is fast!",
"tags": [
["d", "wss://relay.example.com/"],
["rating", "0.8"],
["rating", "0.2", "content"],
["rating", "1", "speed"]
],
}Kind 31985 indicates a review of a book. The d tag MUST be a NIP 73 ISBN content ID.
{
"kind": 31985,
"tags": [
["d","isbn:9781529100624"],
["rating", "0.8"]
],
"content": "Good book",
}