NIPs by PolleramaCommunity NIPs, surfaced by trustConnect
npub1l5sga6xg72p...

Animated Media (Reaction Clips)

Published Nov 22, 2026
kind 1090 · git reaction clip

Animated Media (Reaction Clips)

draft optional

This NIP defines kind 1090, a regular event that indexes a short animated clip (a "GIF") by the sha256 of its bytes. Clients use these events to browse and search a catalog. A note that shows a GIF only needs the media URL and NIP-92 imeta; it does not need to reference kind 1090.

Event format

Kind 1090 is a regular event. Content MUST be empty. The media identity is the sha256 hex in the top-level x tag and in imeta.

{
  "kind": 1090,
  "content": "",
  "tags": [
    ["url", "https://blossom.example/<sha256>.gif"],
    ["imeta",
      "url https://blossom.example/<sha256>.gif",
      "m image/gif",
      "x <sha256-hex>",
      "dim 480x270",
      "size 12345",
      "alt cat gif"
    ],
    ["x", "<sha256-hex>"],
    ["L", "emotion"],
    ["l", "laughter", "emotion"],
    ["alt", "Reaction clip: cat gif"],
    ["t", "gif"],
    ["t", "cat"]
  ]
}

A valid event MUST include:

  • a top-level url tag with an http or https media URL
  • an imeta tag with at least url, m, and x (and SHOULD include dim, size, and alt when known)
  • a top-level x tag equal to the media sha256
  • L = emotion and at least one l tag in that namespace (at most six)
  • a top-level alt tag describing the clip

Mime type SHOULD be image/gif, image/webp, or video/mp4. Clients SHOULD also add a t tag of gif, and MAY add further t tags derived from the description.

Emotion labels SHOULD be drawn from this set (lowercase): joy, laughter, love, sadness, anger, disbelief, fear, surprise, awkward, celebration, approval, disapproval. If the publisher selects none, clients SHOULD default to joy, or to matching tokens found in the description when those tokens are in the set.

To correct metadata, publish a new kind 1090 and delete the old event with NIP-09.

Storage

Bytes live on a Blossom or other HTTP host. Put the hosted URL in both the top-level url tag and imeta. Do not embed NIP-95 payloads for normal clips.

Client behavior

The following matches the Imwald Android GIF picker.

!Imwald GIF picker

Publishing a catalog entry

When the user uploads or imports a GIF and the client knows the media sha256, it SHOULD publish a kind 1090 event as above (best-effort; failure MUST NOT block inserting the GIF into the note). Resolve emotions with the rules in [Event format](#event-format). Keep content empty; put captions and topics on alt and t tags only.

Finding clips

Query dedicated GIF index relays such as wss://thecitadel.nostr1.com and wss://primus.nostr1.com (and the user’s search relays and/or outboxes as backup) for kind 1090 events. Prefer the viewer’s own clips and those from follows, then the wider catalog. Parse the media URL and hash from imeta (falling back to the top-level url and x tags).

Deduplicate by normalized URL, then by sha256. When two items collide, prefer the newer created_at. Sort results with the viewer’s own clips first, then by recency.

Using a clip in a note

When the user picks a Find result, insert the existing media URL into the note content and attach a matching NIP-92 imeta tag. Do not re-upload the file, and do not publish another kind 1090 for that clip.

When the user uploads or pastes a bare hosted URL with a known media sha256 and no existing catalog entry, the client MAY publish a new kind 1090 so Find can discover it later.

Notes that only carry the URL and imeta render in clients that preview media or honor NIP-92, with no requirement to understand kind 1090.