NIP-92: Media Attachments
NIP-92 enables users to attach media files to Nostr events by including URLs alongside inline metadata tags that describe those resources.
How It Works
- User places media URLs directly in event content (e.g., in a kind 1 text note)
- A matching
imeta(inline metadata) tag provides details about each URL - Clients can replace imeta URLs with rich previews based on the metadata
- Metadata is typically auto-generated when files are uploaded during composition
The imeta Tag
Each imeta tag must have a url and at least one other field. Supported fields include:
url- The media URL (required)m- MIME type of the filedim- Image dimensions (width x height)blurhash- Blurhash for preview generationalt- Alt text description for accessibilityx- SHA-256 hash (from NIP-94)fallback- Alternative URLs if primary fails
Example
["imeta",
"url https://example.com/image.jpg",
"m image/jpeg",
"dim 1920x1080",
"blurhash LKO2?U%2Tw=w]~RBVZRi}^Xu%LRj"
]
Primary sources:
Mentioned in:
See also: