--- # https://vitepress.dev/reference/default-theme-home-page layout: home hero: name: Nostrbook text: A Comprehensive Registry of Nostr Documentation tagline: Structured, detailed knowledge about Nostr for both humans and AI. ⚡ actions: - theme: brand text: Protocol Basics link: /protocol/ - theme: alt text: Explore Events link: /kinds/ - theme: alt text: View on GitLab link: https://gitlab.com/soapbox-pub/nostrbook features: - icon: 📖 title: Protocol Reference details: Clear, detailed explanations of the core Nostr protocol components and message formats. link: /protocol/ - icon: 🔢 title: Event Kinds details: Comprehensive documentation of all standardized event kinds and their specific structures. link: /kinds/ - icon: 🏷️ title: Tags details: In-depth reference for all Nostr tag types, their purposes, and proper formatting. link: /tags/ - icon: 📜 title: NIPs details: Nostr Implementation Possibilities (NIPs). link: https://github.com/nostr-protocol/nips - icon: 🔎 title: Searchable details: Find exactly what you need with our full-text search across all documentation. - icon: 🤖 title: AI-Ready details: Structured in a way that both humans and AI can easily comprehend and utilize. link: /mcp - icon: 🧩 title: Examples details: Real-world examples of Nostr events and implementations to aid understanding. - icon: 🔄 title: Up-to-date details: Regularly maintained to reflect the latest developments in the Nostr ecosystem. --- ## What is Nostr? Nostr (Notes and Other Stuff Transmitted by Relays) is a simple, open protocol that enables global, decentralized, and censorship-resistant social media. It uses cryptographic keypairs for identity, simple event objects for data, and relay servers for distribution. ## What is Nostrbook? Nostrbook serves as a central registry of well-structured, detailed documentation about all aspects of the Nostr protocol. While the official [NIPs repository](https://github.com/nostr-protocol/nips) defines the specifications, Nostrbook expands upon them with: - Clearer explanations - Structured navigation - Detailed examples - Cross-references between related concepts - Consistent formatting This makes it easier for developers, users, and even AI systems to understand and work with Nostr. ## Key Concepts

Events

The fundamental data structure in Nostr. Every piece of information is an event with a consistent structure including content, metadata, and a cryptographic signature.

Learn about Event Structure →

Relays

Servers that store and forward events. Users can choose which relays to publish to and read from, creating a resilient and decentralized network.

Filters

Query parameters that allow clients to request specific events from relays based on various criteria like authors, event types, or content references.

Understand Filters →

NIPs

Nostr Implementation Possibilities - documents that specify protocol extensions and conventions that allow the ecosystem to evolve.

## For AI and Programmatic Access Nostrbook conforms to the [llms.txt specification](https://llmstxt.org/), making its content easily accessible for AI agents and programmatic tools. All documentation is available in markdown format by appending `.md` to any page URL:

Model Context Protocol (MCP)

Nostrbook now provides a Model Context Protocol (MCP) integration that allows AI tools to access Nostr documentation directly through function calls, without relying on training data or scraping.

With the MCP extension, AI assistants can:

  • Read NIPs directly from the official repository
  • Access structured kind and tag documentation
  • Get up-to-date protocol information
Learn about Nostr MCP Integration →

llms.txt File

Our llms.txt file at the root of the site provides a structured overview of key resources for AI agents, including:

  • Project overview and context
  • Links to most important documentation
  • Logical organization of content

Markdown Endpoints

Access clean, structured markdown versions of any page by appending .md to URLs:

  • /kinds/1.md - Text Note kind in markdown
  • /tags/e.md - Event reference tag in markdown
  • /protocol/event.md - Event structure in markdown

Directory Index Files

Access directory indexes in markdown format:

  • /kinds/index.md - All event kinds
  • /tags/index.md - All tags
  • /protocol/index.md - Protocol documentation

Programmatic Usage

AI agents can programmatically construct URLs to find information:

  • For kind N: /kinds/N.md
  • For tag T: /tags/T.md
  • For protocol doc: /protocol/SECTION.md