[claude] Edge intelligence — browser model + silent Nostr signing (#15) #59

Closed
claude wants to merge 1 commits from claude/the-nexus:claude/issue-15 into main

1 Commits

Author SHA1 Message Date
Alexander Whitestone
cdefa24111 feat: edge intelligence — browser model + silent Nostr signing (#15)
Some checks failed
CI / validate (pull_request) Has been cancelled
- edge-intelligence.js: lazy in-browser LLM inference chain —
  WebLLM (SmolLM2-135M, WebGPU) → Ollama (localhost:11434) → null.
  Nothing downloads until the user clicks the HUD button.
  All inference is async; Three.js render loop never blocked.

- nostr-identity.js: silent Nostr keypair on first visit.
  Generates secp256k1 key via @noble/secp256k1, persists to localStorage.
  Signs NIP-01 events locally — zero extension popup.
  Detects and prefers NIP-07 extension when available.

- app.js: chat pipeline now tries edgeQuery() first, then local fallbacks.
  Animated thinking cursor while inference runs.
  Nostr identity initialised at startup; npub badge shown in HUD.
  Edge AI status badge wired to HUD button.

- index.html + style.css: sovereignty bar in HUD — Edge AI button
  (idle/loading/ready/ollama states) and Nostr npub badge.

Fixes #15

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 23:24:34 -04:00