Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.4 KB

File metadata and controls

70 lines (53 loc) · 1.4 KB

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.
{
  "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"]
  ],
}

Relays

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"]
  ],
}

Books

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",
}