Skip to content

Integrate NDK nip66MonitorRelays when PR #387 lands #137

Description

@alltheseas

TLDR

I added an outbox improvement PR to NDK that

  1. improves algo event coverage by ~~ 25% by utilizing thompson learning
  2. decreases result loading time 40%-50% by fetching NIP-66 relay liveness results

More details

NDK PR #387 adds NIP-66 relay filtering at the NDK connection level — filtering dead relays before WebSocket connection establishment (~45% faster loading in their benchmarks).

Once it lands, we can pass nip66MonitorRelays to the NDK constructor in src/lib/ndk.ts:

const ndk = new NDK({
  explicitRelayUrls: [...RELAYS.DEFAULT],
  nip66MonitorRelays: ['wss://relaypag.es', 'wss://relay.nostr.watch', 'wss://monitorlizard.nostr1.com'],
});

This is independent from our application-level NIP-66 integration (#136) which handles NIP-50 relay discovery and search-time dead relay filtering. The NDK layer would provide WebSocket connection savings on top.

Blocked on: nostr-dev-kit/ndk#387

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions