Skip to content

Make NIP-29 relay management more dynamic #nip29 #408

@rabble

Description

@rabble

Problem

The EnhancedNostrProvider currently uses a hardcoded list of NIP-29 relays. This limits flexibility and makes it harder for users to interact with groups on different relays.

Current Implementation

  • Hardcoded default NIP-29 relay list
  • Pre-connects to all relays on startup (potential performance impact)
  • Users cannot specify custom relays for specific groups

Proposed Improvements

  • Dynamic relay discovery from group identifiers
  • User-configurable relay preferences
  • On-demand connection strategy (connect when needed)
  • Relay health monitoring and fallbacks
  • Better relay selection for group interactions

Benefits

  • More flexible relay management
  • Better performance (no pre-connecting to unused relays)
  • Support for custom/private group relays
  • User control over relay preferences

Implementation Ideas

  • Parse relay info from naddr identifiers
  • Add relay management UI
  • Implement relay connection pooling
  • Add relay performance metrics

Files Affected

  • src/components/EnhancedNostrProvider.tsx
  • Potentially new relay management components

Tags: #nip29

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions