nostr-relay-builder
Installation
SKILL.md
Nostr Relay Builder
Build a Nostr relay from scratch: WebSocket server, NIP-01 message protocol, event validation (id + signature), filter matching, subscription management, and progressive NIP support.
Overview
A Nostr relay is a WebSocket server that receives, validates, stores, and distributes events. This skill walks through building one step by step, starting with the mandatory NIP-01 protocol and progressively adding optional NIPs.
When to use
- The task is implementing or extending a Nostr relay server.
- The user needs relay-side handling for WebSocket messages, event validation, storage rules, subscriptions, or relay-supported NIPs.
- The problem lives on the server side of the protocol, not in a client app.
- The output should shape relay behavior, persistence, or message handling.