Skip to content
Subscribe

Nerve Center v5 Architecture

Status: Production
Stack: Next.js 16, React 19, Tailwind v4, Framer Motion, SWR

Nerve Center v5 is the CEO executive dashboard for the entire agent system. It provides real-time visibility into 6 life domains, system health, and agent operations.

  • Cyberpunk glassmorphism (dark backgrounds, glass panels, neon accents)
  • Domain-specific color coding (Family=amber, School=blue, Work=teal, Consulting=purple, Growth=emerald, AI Foundry=rose)
  • Framer Motion animations throughout
  • Time-of-day particle field color shifting
  • Mobile-first with PWA support
ComponentPurpose
PulseOrbAnimated system heartbeat indicator
ParticleFieldBackground ambient particle animation
GlassPanelReusable glassmorphism container
DomainCardDomain status card with metrics
CommandPaletteCmd+K search/command interface
VitalsBarTop-bar HUD stats (agents, spend, crons, alerts)
TimelineStripHorizontal event timeline
ChatSlideOverSlide-over domain agent chat panel
SidebarNavigation with domain sections
NeonBadgeStatus badge with glow effect
HudStatSingle metric display with trend
RouteDescription
/CEO Overview — domain cards, timeline, briefing
/familyBudget envelopes, habits, chores, calendar, birthday alerts
/schoolGrade bars with threat pulses, assignment countdown, GPA simulator
/consultingPipeline kanban, revenue, contacts, funnel
/growthContent calendar, social analytics, newsletter, news feed
/healthBody comp, strength goals, nutrition, habits
/systemSystem vitals, MCP health grid, cron status, budget, org chart
/crm132 contacts, searchable and filterable
/activityTask log timeline (last 7 days)
/projects25 projects with status and GitHub links
/goalsCross-domain goal tracker with progress bars
/nutritionCalorie progress, macros, food log, 7-day history
EndpointData Source
/api/domainsDomain configs + reports
/api/domains/[id]Per-domain state files
/api/systemHealth, MCP health, crontab
/api/calendarGoogle Calendar via MCP
/api/todosDomain task files
/api/chat/[domain]Claude API streaming (SSE) with domain SOUL.md context
/api/crmContact directory
/api/activityTask logs
/api/projectsProject registry
/api/agents/streamReal-time agent event stream (SSE)
Filesystem (local machine)
└── domain configs, state files, reports
▼ (snapshot-state.sh at build time)
src/data/snapshots/*.json ← bundled into deploy
API routes: try filesystem first, fall back to snapshots
▼ (SWR hooks, 60-120s refresh)
React components

Cloud hosting (Vercel) cannot read local filesystem at runtime. Solution: a prebuild script bundles all state into JSON snapshots. API routes try live filesystem reads first (works in dev), then fall back to snapshots (works in production). Auto-sync cron rebuilds and redeploys every 4 hours.

Each domain has a floating chat button. Chat streams via SSE from the /api/chat/[domain] route:

  1. Loads domain’s SOUL.md for personality
  2. Loads live state as system context
  3. Streams Claude Sonnet responses
  4. Tracks token/cost per message
  5. Persists last 10 messages in localStorage
  6. Rate limited: 20 msgs/min per domain