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
Pretty 'data browser' HTML view for the did:nostr JSON (content-negotiated) #1
Opened in a browser these render as raw, unstyled JSON. We should give humans a pretty "data browser" view of that document, following how we already do losos / databrowser for displaying data.
Approach (open)
Not prescribing the mechanism — whatever fits the losos/databrowser convention. Could be a databrowser-style viewer page, a dedicated browse route/hash view, or content negotiation on the canonical URL (one option, not a requirement).
Data island: the HTML view embeds the document directly, e.g.
so the machine representation travels inside the same page — losos/databrowser (and any consumer) can read it straight out of the island, no separate fetch or content negotiation needed. That's what makes this easy: one HTML resource is both the pretty view and the data.
The raw application/did+json representation must stay available and byte-identical for resolvers/machines (whether that's the embedded island, the plain .json, or both) — presentation must not change what a did:nostr resolver fetches.
Rendering
The detail panel in public/index.html already has most of the pieces — reuse them:
Syntax-highlighted JSON via the existing highlight() helper (keys in accent, strings in green).
Make the structured bits interactive: controller and each follows entry deep-link to that DID's view, service relay endpoints as chips, the verificationMethod Multikey called out.
Profile header (name/picture/nip05) + the did:nostr: identifier, in the current light palette.
A visible "raw ↗" link to the plain JSON.
Acceptance
A human opening the document gets a styled data-browser view.
The DID doc is present verbatim as a data island in that page, and a resolver/curl still gets the raw JSON unchanged from today.
DID-document conformance (cid/v1 + Multikey) is unaffected.
Activity