NIP-94: File Metadata
NIP-94 defines a file metadata event (kind 1063) for organizing and classifying shared files on Nostr, enabling relays to filter and organize content effectively.
How It Works
- User uploads a file to a hosting service
- A kind 1063 event is published with metadata about the file
- The event content contains a human-readable description
- Structured tags provide machine-readable metadata
- Specialized clients can organize and display files systematically
Required and Optional Tags
Core tags:
url- Download link for the filem- MIME type (lowercase format required)x- SHA-256 hash of the file
Optional tags:
ox- SHA-256 hash of the original file before server transformationssize- File size in bytesdim- Dimensions (width x height) for images/videomagnet- Magnet URI for torrent distributioni- Torrent infohashblurhash- Placeholder image for previewsthumb- Thumbnail URLimage- Preview image URLsummary- Text excerptalt- Accessibility descriptionfallback- Alternative download sources
Use Cases
NIP-94 is designed for file-sharing applications rather than social or longform content clients. Suggested applications include:
- Torrent indexing relays
- Portfolio-sharing platforms (similar to Pinterest)
- Software configuration and update distribution
- Media libraries and archives
Primary sources:
Mentioned in:
See also: