NIP-AD web addresses for relay groups, event pages and hosted sites - #22
Merged
Conversation
…ess rules Path discovery maps relay groups, public event pages and hosted site manifests to exact filters with explicit relay hints. Shared resolvers preserve browser path matching, NIP-05 behavior and site isolation; docs pin the upstream proposal and tests cover access and routing boundaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
A URL shared from bind.ws opens in a browser but does not tell a supporting Nostr client which local event it represents. NIP-AD gives relay homepages, event/article pages and hosted sites a Nostr counterpart.
Change
/.well-known/nostr.json?path=<original-path>from proposal 2406, pinned tob82a9bf66ec9757149b5aa3b3cd36190dd4e6fed(checked 2026-09-04)./e/<id>to that event version,/a/...to its article address, and mapped NIP-5A site paths to their live manifest or snapshot. Every mapping has an exact filter,limit: 1, and explicit relay hints.nametakes precedence when both parameters are supplied. Path discovery remains independent of the names feature. GET/HEAD and narrow OPTIONS preflight use CORS and non-storable responses.Compatibility and coordination
The upstream proposal is still open. This PR does not change NIP-11
supported_nips; the parallel NIP-9a compatibility PR owns lettered advertisement. Merge this PR before that PR, which will advertise AD. This PR has no dependency on NIP-9a or NIP-86 claims. Site discovery describes manifest mappings without guaranteeing file availability; the browser site door retains its hash checks and file-fetch policy.Testing Completed
npm run typecheck: passes TypeScript, generated artifacts, console, celld configuration and template checks.npm test -- --maxWorkers=4: all 45 files / 229 tests pass on the final implementation. An earlier default-pool run passed 225 tests; the final default-pool attempt stalled without an assertion failure, so the final complete run bounds worker concurrency.Responsible AI disclosure
Implemented and reviewed with Codex and subagents. Maintainers retain final review and merge decisions; no merge or deployment was performed.