nostr-websocket

Community

Build high-performance Nostr WebSocket relays.

Authormleku
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Implementing robust and performant WebSocket connections for Nostr relays requires deep knowledge of RFC 6455, concurrency patterns, and language-specific optimizations. This skill provides expert guidance, battle-tested patterns, and production code examples to build reliable Nostr relay infrastructure.

Core Features & Use Cases

  • RFC 6455 Protocol Mastery: Understand and implement the core WebSocket protocol, including handshake, framing, masking, and ping/pong.
  • Concurrency & Performance: Apply advanced patterns for concurrent writes, subscription management, event batching, and zero-copy optimizations in Go, C++, and Rust.
  • Security & Reliability: Implement critical security measures like origin validation, rate limiting, message size limits, and NIP-42 authentication.
  • Use Case: "I'm building a Nostr relay in Go. Guide me on implementing a robust WebSocket connection with proper ping/pong handling and concurrent write protection."

Quick Start

Explain the core WebSocket protocol handshake and frame structure according to RFC 6455, focusing on security requirements.

Dependency Matrix

Required Modules

github.com/fasthttp/websockettokio-tungstenitetokioserde_jsonuWebSockets

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nostr-websocket
Download link: https://github.com/mleku/next.orly.dev/archive/main.zip#nostr-websocket

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.