You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: integration tests for NIP-11 relay information document #508
NIP-11 defines that a relay must respond to HTTP GET requests on / with Accept: application/nostr+json by returning a JSON document describing the relay. This is the only HTTP endpoint with zero integration test coverage.
What to test
HTTP GET / with Accept: application/nostr+json → 200 response with JSON containing name, description, pubkey, supported_nips, software, version
supported_nips array includes the NIPs declared in package.json (supportedNips)
HTTP GET / without Accept: application/nostr+json → returns HTML or non-JSON response (not the relay info doc)
WebSocket upgrade on / still works (the HTTP and WS handlers coexist on the same port)
Hi! I’d like to work on this :-)
I’ll add the NIP-11 integration tests, and I also noticed a small bug in root-request-handler.ts where max_filters is mapped to maxFilterValues instead of maxFilters.I can include that fix in the same PR, or split it into a separate PR if you prefer.
Activity
Anshumancanrock commentedon Apr 18, 2026
@phoenix-server please assign
kanishka0411 commentedon Apr 19, 2026
Hi! I’d like to work on this :-)
I’ll add the NIP-11 integration tests, and I also noticed a small bug in
root-request-handler.tswhere max_filters is mapped to maxFilterValues instead of maxFilters.I can include that fix in the same PR, or split it into a separate PR if you prefer.cameri commentedon Apr 19, 2026
thanks @kanishka0411 !