Skip to content

@welshman/net ​

version

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
  • Custom Adapters - Flexible adapter layer to support queries against any target
  • Counting - NIP-45 COUNT requests
  • Local relay - The context's repository, reachable as a relay at LOCAL_RELAY_URL
  • Gift Wraps - A WrapManager linking NIP-59 wraps to their rumors
  • Socket policies - Default and customizable policies for NIP 42 AUTH, reconnects, etc