Skip to content

@welshman/net

Core networking layer for nostr applications, handling relay connections, message management, and event delivery.

What's Included

  • Connection Management - WebSocket lifecycle and relay connections
  • Subscription System - Event filtering and subscription handling
  • Publishing Tools - Event broadcasting with status tracking
  • Sync Utilities - NIP-77 (negentropy) event synchronization
  • Connection Pool - Shared relay connection management
  • Targets - Flexible message routing strategies
  • Event Tracking - Monitor which relays have seen events

Installation

bash
npm install @welshman/net