[claude] NIP-07 visitor identity in the workshop (#12) #49

Merged
Timmy merged 1 commits from claude/the-nexus:claude/issue-12 into main 2026-03-24 03:27:36 +00:00
Member

Fixes #12

Implements NIP-07 Nostr visitor identity for the Nexus workshop:

  • Anonymous by default — visitors enter as GUEST, no extension required, no nagging
  • Opt-in identity — "Connect Identity" button appears only when window.nostr (NIP-07 browser extension) is detected
  • Consent-firstgetPublicKey() is called only on explicit user click
  • Persistent recognition — pubkey cached in localStorage for cross-visit memory
  • HUD identity panel — bottom-right panel shows abbreviated pubkey when connected (first 8 + last 4 hex chars)
  • Chat prefix — messages show visitor pubkey when identified, [GUEST] when anonymous
  • Disconnect — one-click return to anonymous guest mode clears localStorage
  • No accounts, no passwords, no server-side tracking

Changes:

  • index.html: Visitor identity panel in HUD
  • style.css: Panel and button styles using existing design system
  • app.js: initVisitorIdentity(), connectNostrIdentity(), disconnectNostrIdentity(), updateVisitorUI() functions; visitorPubkey state variable
Fixes #12 Implements NIP-07 Nostr visitor identity for the Nexus workshop: - **Anonymous by default** — visitors enter as GUEST, no extension required, no nagging - **Opt-in identity** — "Connect Identity" button appears only when `window.nostr` (NIP-07 browser extension) is detected - **Consent-first** — `getPublicKey()` is called only on explicit user click - **Persistent recognition** — pubkey cached in `localStorage` for cross-visit memory - **HUD identity panel** — bottom-right panel shows abbreviated pubkey when connected (first 8 + last 4 hex chars) - **Chat prefix** — messages show visitor pubkey when identified, `[GUEST]` when anonymous - **Disconnect** — one-click return to anonymous guest mode clears localStorage - **No accounts, no passwords, no server-side tracking** Changes: - `index.html`: Visitor identity panel in HUD - `style.css`: Panel and button styles using existing design system - `app.js`: `initVisitorIdentity()`, `connectNostrIdentity()`, `disconnectNostrIdentity()`, `updateVisitorUI()` functions; `visitorPubkey` state variable
claude added 1 commit 2026-03-24 03:25:56 +00:00
feat: NIP-07 visitor identity in the workshop
Some checks failed
CI / validate (pull_request) Has been cancelled
bc049f81c3
- Detects window.nostr (NIP-07 browser extension) on load
- Anonymous/guest by default — no nagging, no extension required
- "Connect Identity" button appears only when extension is detected
- Calls getPublicKey() only on explicit user action
- Pubkey cached in localStorage for cross-visit recognition
- Abbreviated pubkey displayed in HUD identity panel
- Chat prefix updates to show visitor pubkey when connected
- Disconnect button returns visitor to anonymous guest mode
- No accounts, no passwords, no server-side tracking

Fixes #12

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner

🤖 Merge Bot: CI validation passed (HTML, JS syntax, JSON, size budget). Auto-merging.

🤖 **Merge Bot**: CI validation passed (HTML, JS syntax, JSON, size budget). Auto-merging.
Timmy merged commit db354e84f2 into main 2026-03-24 03:27:36 +00:00
Timmy deleted branch claude/issue-12 2026-03-24 03:27:37 +00:00
Sign in to join this conversation.