30817:nkbip-01

Curated Publications

Specification for Nostr ebooks, magazines, and other curated publications.

Silberengel

published
2026-08-29

NKBIP-01: Curated Publications

This NIP defines the minimum specification for curated publications—ordered, optionally hierarchical assemblies of Nostr events. Publications provide a standard way to organize and present related content, similar to how books organize chapters or journals organize articles.

Event Kinds

This NIP defines two primary event kinds:

  • 30040: Publication Index
  • 30041: Publication Content

KIND 30040: Publication Index

A publication index defines the structure and metadata of a publication. It serves as a table of contents that references the actual content sections.

Requirements

  • The content field MUST be empty
  • MUST include a title tag containing the full title of the publication
  • MUST be uniquely identifiable by the combination of:
    • d tag (normalized to lowercase letters, numbers, and hyphens, analogous to NIP-54)
    • pubkey
    • kind
  • Any included a tags MUST be listed in desired display order (a 30040 with no a tags is a valid stub index)
    • Format:
["a", "<kind:pubkey:dtag>", "<relay hint>", "<event id>"]
  • The optional event ID field enables version tracking while maintaining updatable references
  • Referenced events SHOULD be kind 30041 sections or nested kind 30040 indices
  • Additional event kinds MAY be supported, especially 30817, 30818, and 30023
  • For derivative works:
    • MUST include a p tag identifying the original author
    • MUST include a E tag referencing the original event immediately after the p tag
  • MAY contain the tag author, containing the full name of the author. It may also add the role the author took (for books with multiple authors).
  • MAY contain the tag s (formerly source), which defines a URL that contains the location of the original text, and/or an i tag.
  • MAY contain the tag version, which describes the edition.
  • MAY contain the tag T, which is the title-tag text, normalized like a d-tag
  • MAY contain the tag N, which is the author-tag text, normalized like a d-tag
  • MAY contain the tag type, which indicates how the publication should be displayed in the viewer/reader. Some suggested types are:
    • book (default)
    • illustrated
    • magazine
    • documentation
    • academic
    • blog

Example Index

{
  "id": "<event_id>",
  "pubkey": "<event_originator_pubkey>",
  "created_at": 1725087283,
  "kind": 30040,
  "tags": [
    ["d", "aesops-fables-by-aesop"],
    ["title", "Aesop's Fables"],
    ["T", "aesops-fables"],
    ["author", "Aesop", "author"],
    ["author", "James Black", "translator"],
    ["N", "aesop"],
    ["N", "james-black"],
    ["i", "isbn:9780765382030"],
    ["i", "openlibrary:OL45883W"],
    ["i", "wikidata:Q188371"],
    ["i", "overdrive:550e8400-e29b-41d4-a716-446655440000"],
    ["i", "wikipedia:en:Aesop's_Fables"],
    ["i", "gutenberg:130"],
    ["t", "fables"],
    ["t", "classical"],
    ["t", "literature"],
    ["s", "https://www.gutenberg.org/ebooks/130a"],
    ["type", "book"],
    ["version", "3rd edition"],
    ["published_on", "2003-05-13"],
    ["published_by", "public domain"],
    ["image", "https://imageserver.com/piclink.jpg"],
    ["summary", "Collection of selected fables from the ancient Greek philosopher, known as Aesop."],
    ["a", "<kind:pubkey:dtag>", "<relay hint>", "<event id>"],
    ["a", "<kind:pubkey:dtag>", "<relay hint>", "<event id>"],
    ["p", "<pubkey_0>"],
    ["E", "<original_event_id>", "<relay_url>", "<pubkey>"]
  ],
  "sig": "<event_signature>"
}

KIND 30041: Publication Content

Also known as sections, zettels, episodes, or chapters — these contain the actual content that makes up a publication.

Requirements

  • MUST include a d tag
  • MUST include a title tag describing the section (e.g., "Introduction", "Chapter 1", etc.)
  • MAY include a T tag, containing the title tag text, normalized like a d-tag
  • The content field:
    • MUST contain text meant for display to the end user
    • MAY contain AsciiDoc markup
    • MAY contain wikilinks (denoted by double brackets)

Example Section

{
  "id": "<event_id>",
  "pubkey": "8ae74c618a4713f32129...",
  "created_at": 1708083476,
  "kind": 30041,
  "tags": [
    ["title", "The Farmer and The Snake"],
    ["T", "the-farmer-and-the-snake"],
    ["d", "aesops-fables-by-aesop-the-farmer-and-the-snake"]
  ],
  "content": "The Farmer and The Snake\nA fable, by [[Aesop]].\nONE WINTER a Farmer found a Snake stiff and frozen with cold. He had compassion on it, and taking it up, placed it in his bosom. The Snake was quickly revived by the warmth, and resuming its natural instincts, bit its benefactor, inflicting on him a mortal wound. 'Oh,' cried the Farmer with his last breath, 'I am rightly served for pitying a scoundrel.'\nThe greatest kindness will not bind the ungrateful.",
  "sig": "49cab8c75fb35cec71d07258..."
}

Extensions

Publications are flexible and can be extended for different types of content. Examples include:

  • Books
  • Academic journals
  • Course materials
  • Documentation
  • Blogs/Magazines, including those from different npubs. These utilize kind 30023 as leaves, rather than kind 30041.

Additional tags relevant to the specific content type MAY be included in both index and section events.

Books

A collection of publication e-books can be stored together using a "bookshelf" directory (kind 30045 from [[NKBIP-04]]). The default/top-level directory should have the d-tag "my-book-collection", with any additional directory folders nested within that one.

Books can be labeled with kind 1985 from [[NIP-32]], with the default label being "booklist".

Discussion

Connect a key to comment.