Alexander Whitestone c1e4a848a8 feat: edge intelligence — browser model + silent Nostr signing
Implements M3 Sovereignty Layer features from issue #15:

- edge-intelligence.js: Local-first LLM inference pipeline
  - Tries WebLLM (SmolLM2-360M via WebGPU) first for near-zero latency
  - Falls back to Transformers.js (LaMini-Flan-T5-77M, CPU/WASM)
  - Falls back to Ollama backend; never blocks on missing services
  - Lazy activation via HUD button so models only load on user demand

- nostr-identity.js: Silent Nostr signing without extension popup
  - Generates a keypair on first visit, persists to localStorage
  - Signs NIP-01 events locally (no window.nostr / extension needed)
  - Supports importKey() for existing identities and rotateKey()
  - Optional delegation to NIP-07 extension via useExtension(true)

- app.js: Integrates both modules
  - Chat pipeline: edge model → Ollama → local fallback responses
  - Animated "thinking" indicator while inference runs
  - Nostr npub displayed in HUD on init

- index.html + style.css: Edge AI status badge + Nostr identity badge
  in the HUD, with loading/ready/fallback states

Fixes #15

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 18:39:08 -04:00
2026-03-23 18:50:22 +00:00

◈ The Nexus — Timmy's Sovereign Home

A Three.js environment serving as Timmy's sovereign space — like Dr. Strange's Sanctum Sanctorum, existing outside time. The Nexus is the central hub from which all worlds are accessed through portals.

Features

  • Procedural Nebula Skybox — animated stars, twinkling, layered nebula clouds
  • Batcave Terminal — 5 holographic display panels arranged in an arc showing:
    • Nexus Command (system status, harness state, agent loops)
    • Dev Queue (live Gitea issue references)
    • Metrics (uptime, commits, CPU/MEM)
    • Thought Stream (Timmy's current thoughts)
    • Agent Status (all agent states)
  • Morrowind Portal — glowing torus with animated swirl shader, ready for world connection
  • Admin Chat (Timmy Terminal) — real-time message interface, ready for Hermes WebSocket
  • Nexus Core — floating crystalline icosahedron on pedestal
  • Ambient Environment — crystal formations, floating runestones, energy particles, atmospheric fog
  • WASD + Mouse Navigation — first-person exploration of the space
  • Post-Processing — Unreal Bloom + SMAA antialiasing

Architecture

the-nexus/
├── index.html    # Entry point with HUD overlay, chat panel, loading screen
├── style.css     # Nexus design system (dark space theme, holographic panels)
└── app.js        # Three.js scene, shaders, controls, game loop

Running Locally

npx serve . -l 3000
# Open http://localhost:3000

Roadmap

  • Wire chat to Hermes WebSocket (/api/world/ws)
  • Pull live data into terminal panels from Timmy's actual state
  • Portal walk-through interaction to load destination worlds
  • Timmy's avatar (lizard wizard body he designs himself)
  • Connect to AlexanderWhitestone.com as public entry point
  • Integrate existing Replit timmy-tower world code

Part of The Timmy Foundation

Description
Timmy's Sovereign Home — Three.js environment with Batcave terminal, portal architecture, and admin chat. The central hub from which all worlds are accessed.
Readme 25 MiB
Languages
Python 71.7%
JavaScript 11.7%
HTML 8.2%
Shell 5.3%
CSS 2.7%
Other 0.4%