Title: feat: NIP-05 MVP — /.well-known/nostr.json for single-user pods (#445) · Issue #446 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: feat: NIP-05 MVP — /.well-known/nostr.json for single-user pods (#445) · Issue #446 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: feat: NIP-05 MVP — /.well-known/nostr.json for single-user pods (#445) · Issue #446 · JavaScriptSolidServer/JavaScriptSolidServer
Description: MVP slice of #445. Ship the smallest useful NIP-05 endpoint first; defer aggregation, relays, per-pod overrides to follow-ups. Scope Single-user mode only. Single name, single pubkey. No knobs. GET /.well-known/nostr.json returns: { "nam...
Open Graph Description: MVP slice of #445. Ship the smallest useful NIP-05 endpoint first; defer aggregation, relays, per-pod overrides to follow-ups. Scope Single-user mode only. Single name, single pubkey. No knobs. GET...
X Description: MVP slice of #445. Ship the smallest useful NIP-05 endpoint first; defer aggregation, relays, per-pod overrides to follow-ups. Scope Single-user mode only. Single name, single pubkey. No knobs. GET...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/446
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: NIP-05 MVP — /.well-known/nostr.json for single-user pods (#445)","articleBody":"MVP slice of [#445](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/445). Ship the smallest useful NIP-05 endpoint first; defer aggregation, relays, per-pod overrides to follow-ups.\n\n## Scope\n\nSingle-user mode only. Single name, single pubkey. No knobs.\n\n`GET /.well-known/nostr.json` returns:\n\n```json\n{ \"names\": { \"\u003csingle-user-name>\": \"\u003chex pubkey from the profile VM>\" } }\n```\n\nWhere:\n- `\u003csingle-user-name>` = the NIP-05 reserved `_` name. NIP-05 §3 specifies `_` as the \"naked domain\" identifier — the user IS the domain, no `name@` prefix needed. For a single-user pod where the pod IS the server, that's the natural identifier. `--single-user-name` controls the WebID path (separate concern); NIP-05 in single-user mode is intrinsically single-name and uses `_`. A future phase can add `--nip05-name \u003cname>` if `alice@example.com` style is wanted on a single-user pod.\n- `\u003chex pubkey>` = read from `/profile/card.jsonld`'s `verificationMethod` via the existing `extractNostrPubkeysFromProfile` helper in `src/auth/nostr-keys.js`. No new key-reading code, no touching `/private/`.\n\nIf no key is provisioned (no VM in the profile, or the VM has no Nostr-shaped pubkey), return `{ \"names\": {} }`. NIP-05 verifiers handle the empty case fine.\n\nIf the server isn't in single-user mode, return 404 — multi-user aggregation is the next slice.\n\nPublic read (no WAC, no auth). `Access-Control-Allow-Origin: *` so browser-based Nostr clients can verify.\n\n## What this MVP doesn't ship (deferred to follow-ups)\n\n- Multi-user aggregation (path mode) — one shared `/.well-known/nostr.json` listing every pod's mapping.\n- Subdomain mode per-host filtering — each subdomain serves its own.\n- `?name=` query filtering (per NIP-05 §3) — return everything for now.\n- `relays` field auto-populated from `--nostr`.\n- `nip46` remote signer.\n- Per-pod opt-out / opt-in.\n- Custom names via `--nip05-name`.\n\n## Acceptance\n\n- [ ] `GET /.well-known/nostr.json` on a `--single-user --provision-keys` server returns `{ names: { \"_\": \"\u003chex>\" } }`.\n- [ ] Same request when no key was provisioned returns `{ names: {} }`.\n- [ ] Same request in multi-user mode returns 404.\n- [ ] `Access-Control-Allow-Origin: *` header on the response.\n- [ ] Reads the pubkey from the WebID profile's VM via the existing extractor — no new key-reading code, no touching `/private/`.\n- [ ] Tests cover: provisioned single-user, single-user with no key, multi-user (404).\n\nRefs #445.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-14T12:16:24Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/446"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:706bfa3f-4c51-c69c-831f-5332cdb944ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBCA:285B2D:2B7DCFB:39A1EA5:6B03975E |
| html-safe-nonce | 5d081b6c11073a50d299e573bcebe46a477d4a1a6033d5d14c9919bfb7a48d72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkNBOjI4NUIyRDoyQjdEQ0ZCOjM5QTFFQTU6NkIwMzk3NUUiLCJ2aXNpdG9yX2lkIjoiNTk3OTA5MDkzNzM5MjEwOTQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a3799fdc1c1e60f2cf8e9edab678a49d40170a27b63a0336c9958b088ee25f50 |
| hovercard-subject-tag | issue:4445813539 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/446/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c11a4b5d7711d1efc71986445420dd98bae2dd72b1d8f655b4aca07e3490c9a6/JavaScriptSolidServer/JavaScriptSolidServer/issues/446 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c11a4b5d7711d1efc71986445420dd98bae2dd72b1d8f655b4aca07e3490c9a6/JavaScriptSolidServer/JavaScriptSolidServer/issues/446 |
| og:image:alt | MVP slice of #445. Ship the smallest useful NIP-05 endpoint first; defer aggregation, relays, per-pod overrides to follow-ups. Scope Single-user mode only. Single name, single pubkey. No knobs. GET... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width