NIPs on Nostr
This NIP defines kind 30817 for community-authored NIPs. These events allow users to create, share, and maintain custom protocol specifications that extend or complement the official Nostr protocol.
Custom NIP Event
Custom NIP events are addressable events of kind 30817 with the following structure:
{
"kind": 30817,
"content": "<markdown content of the NIP>",
"tags": [
["d", "<unique-identifier>"],
["title", "<human-readable title>"],
["k", "<kind-number>", "<kind-name>"],
["k", "<another-kind-number>", "<another-kind-name>"]
]
}
Content
The content field SHOULD contain the full specification of the custom NIP in Markdown format.
Tags
d(required) - unique identifier for the NIP. MAY be auto-generated from the title using URL-safe slugification.title(required) - human-readable title for the NIP.k(optional) - Zero or morektags MAY be included to specify event kinds that this NIP defines or concerns. The first value is the event kind number as a string; the second value is a human-readable name for that kind (e.g.["k", "37516", "Geocache Listing"]).
Clients
Clients implementing custom NIP support SHOULD:
- Display custom NIPs distinctly from official NIPs
- Show authorship information prominently
- Provide search and filtering capabilities
- Support Markdown rendering for content
Relays
Relays MAY index k tags of custom NIPs for discovery of NIPs that define custom kinds.
Examples
Basic Custom NIP
{
"kind": 30817,
"content": "# Custom Event Kind for Gaming\n\nThis NIP defines event kind 30100 for gaming-related events...",
"tags": [
["d", "gaming-events"],
["title", "Gaming Events Protocol"],
["k", "30100", "Game Session"]
]
}
Multi-Kind Custom NIP
{
"kind": 30817,
"content": "# Marketplace Protocol Extension\n\nThis NIP extends the marketplace protocol with additional event kinds...",
"tags": [
["d", "marketplace-extension"],
["title", "Extended Marketplace Protocol"],
["k", "30200", "Marketplace Listing"],
["k", "30201", "Marketplace Order"],
["k", "30202", "Marketplace Review"]
]
}
References
Discussion
11 comments ยท 4 correspondents ยท since 2025-06-01
Connect a key to comment.
Niel Liesmons2025-06-01
Why not use wikis with a tag that makes it a Nip?
They are forkable, asciidoc (better suited), etc... They have all you could need.
Curious for the case against that.
Alex Gleason2025-06-01
For one, to give "k" tags a specific semantic meaning that is unambiguous. You can filter { "kinds": [30817], "#k": [37515] } to find the NIP(s) that define kind 37515, for example.
Niel Liesmons2025-06-02
We already have wikis (30818) for this purpose.
- In #asciidoc, which is more suited.
- That can be indexed in 30040
So why the new kind? Curious for the case for this.
Because it seems silly to have separate kinds for every spec system out there (BUDs, MLS, etc.......).
Nathan Day2025-06-20
This should be renamed NIP-00 and all references to custom or communities should be removed.
NIPs are NIPs.
We can now Attest to each NIP and each define what the Nostr protocol means to us in an entirely emergent manner.