@umwelten/substrate · Zero-Build ESM Shell & design.md System

15 Workbench Components,
One design.md

No Webpack, Vite, or React runtime. serveAgent() and createShellHandler() serve semantic HTML + plain ESM modules directly into nav, main, and panels slots, restyled at load time from any Markdown design.md file.

0 npm runtime dependencies 15 built-in shell components 3 custom voice extensions 5 built-in presets in theme.ts
01 — Interactive Live design.md Theme Playground

Click any preset from packages/substrate/src/theme.ts

Every token below updates the mini 3-rail Substrate workbench instantaneously using the exact palette, border weights, typography, and corner radii returned by parseDesignMd().

DARK · 0PX SQUARE · 2PX BORDER
Shell // Branded Workbench (Live Tokens) thefocus-dark-amber
Nav Rail [slot="nav"]
Ontology Metrics
Company Objects
Fleet Connections
Workspace Files
Center Stage [slot="main"]
KPI Strip: 42 Active Feeds · 98.4% Pass Rate · 284ms Latency
Chat: User asked about Overdue A/R → Agent returned split ui:// table view cleanly.
Inspector [slot="panels"]
Detail Inspector: feed-02 · Roku · status ok
Voice / Beats: Tool-less fork ready · SQLite synced
02 — Complete Component Catalog

Built-in panels & custom voice extensions by slot zone

Layout, Chrome & Theming (3 Built-Ins)

Swappable shells (ADR 0034), single-file design.md runtime tokens, and live metric strips.

workbench-layout shell

3-rail desktop workbench with zero DOM re-parenting, collapsible rails, dynamic closeable tabs, and WAI-ARIA tablists.

workbench-layout.js Workbench Gallery →
theme-switcher panels

Runtime preset picker + compact/comfortable/spacious density selector + live design.md CSS inspection.

theme-switcher.js Workbench Gallery →
kpi-strip main

Responsive metric cards with sparklines, delta chips, and semantic live/warn/danger status colors.

kpi-strip.js Workbench Gallery →

Left Navigation Rail (3 Built-Ins)

Persistent navigation targets for local threads, remote A2A agents, and sandbox files.

connections nav

Lists connected MCP servers, remote URLs, and bearer auth health indicators.

connections.js Workbench Gallery →
fleet-connections nav

Multi-node Habitat & A2A agent fleet roster showing live online/idle/in-flight status.

fleet-connections.js Workbench Gallery →
workspace nav

Navigates git working files, recent commits, and sandboxed artifact previews.

workspace.js Workbench Gallery →

Center Workspace Views (5 Built-Ins)

Primary human collaboration views, forms, tabular drill-downs, and documentation.

chat main

Streaming thread chat with conversation switcher, tool call cards, inline ui:// iframes, and interrupt handling.

beats panels

Semantic Beat Lens panel running tool-less side questions & spec checks on forked SQLite entries.

beats.js Beat Lens →
data-table main

Sortable tabular inspector wired into cross-component row selection events.

data-table.js Workbench Gallery →
form-panel panels

Declarative schema-driven action forms submitting structured parameters back to host endpoints.

form-panel.js Workbench Gallery →
markdown-doc main

Clean typographic Markdown viewer for design.md specs, runbooks, and agent findings.

markdown-doc.js Workbench Gallery →

Right Inspector & Telemetry (4 Built-Ins)

Deep introspection of selected objects, live execution traces, logs, and interactive WebSocket terminals.

detail-inspector panels

Reactive key/value & Raw JSON inspector synchronized with row/object selections across rails.

detail-inspector.js Workbench Gallery →
activity-log panels

Filterable chronological stream of host lifecycle events, errors, and state mutations.

activity-log.js Workbench Gallery →
traces panels

Hierarchical execution span timeline showing LLM latency, tool timings, and fork ancestry.

terminal panels

Zero-dependency live WebSocket terminal viewer bound to agent sandbox shell streams.

terminal.js Workbench Gallery →

Custom Drop-In Voice Extensions (3 Panels)

Plain ESM plugins auto-mounted from shell.customDir with full bidirectional audio & SQLite sync.

voice-cascaded panels (custom)

AudioWorklet mic capture, Multi-Context TTS streaming waveform/log, runtime voice selector dropdown, and instant barge-in.

voice-cascaded.js Cascaded Voice →
voice-byo-edge panels (custom)

SSE wire telemetry, ElevenLabs / Deepgram / Vapi config generator, HTTP disconnect barge-in test, and mic tester.

voice-byo-edge.js BYO-LLM Edge →
voice-dual-brain panels (custom)

Separate Fast Talker (Gemini 3.8 Live) + Durable Thinker (DurableAgent) lanes, SQLite voice persistence, and GoAway resumption.

voice-dual-brain.js Dual-Brain Voice →
03 — Live Screenshots & Usage Recipe

Same components, switched via single-file design.md

design.md (Canonical Root Theme Spec)
# TheFocus.AI / Umwelten: fonts and colors

Dark and Amber capability brand system — crisp 0px square corners, 2px structural borders, zero drop shadows, Space Grotesk headlines, Inter body, and uppercase JetBrains Mono telemetry labels. Supports paired Warm Cream mode (`thefocus-cream`) for daylight reading.

## Color Tokens

| Name | Hex | Used for |
|---|---|---|
| Ink | `#0E1014` | Primary canvas background (Dark & Amber) |
| Deep | `#141820` | Subtle header bar, table headers, recessed wells |
| Slate | `#1A1E26` | Elevated card, panel, and shell rail surface |
| Raised | `#202530` | Hover surface and active code/table rows |
| Border | `#2F343E` | Hairline structural grid dividers |
| Border Strong | `#434A57` | High-emphasis 2px frames and active controls |
| Cream | `#F3F1EA` | Primary text on Dark; Warm Cream page canvas |
| Body Ink | `#B9BDC6` | Secondary body copy on Dark |
| Muted Ink | `#8D929C` | Metadata, timestamps, secondary axis labels |
| Amber | `#F2B33D` | Primary action fill, focus ring, highlight accent |
| On-Amber | `#0E1014` | High-contrast ink on solid Amber fills |
| Amber Soft | `#292214` | Subtle Amber tint for active callouts & badges |
| Cream Surface | `#FAF8F3` | Raised paper card surface in Warm Cream mode |
| Cream Subtle | `#E9E5D8` | Recessed header / table surface in Warm Cream mode |
| Amber On Cream | `#9A6300` | WCAG AA Amber label/link accent on Warm Cream |

## Rules & Geometry

- **Square corners everywhere (`0px`).** No border radius on cards, buttons, inputs, tables, badges, or modal frames.
- **No drop shadows.** Elevation comes strictly from background lightness step (`#0E1014` → `#141820` → `#1A1E26` → `#202530`) and border weight (`1px` structural grid, `2px` interactive frames).
- **`JetBrains Mono`** is uppercase with wide tracking (`0.08em–0.14em`) for section numbers, eyebrows, status badges, telemetry readouts, and navigation items.
- **`Space Grotesk`** handles hero headlines, card headings, and metric numbers with tight tracking (`-0.025em`).
- **`Inter`** handles prose, explanations, and documentation copy.

```css
:root {
  --ink: #0E1014;
  --cream: #F3F1EA;
  --amber: #F2B33D;
  --slate: #1A1E26;
  --text: #F3F1EA;
  --text-body: #B9BDC6;
  --text-muted: #8D929C;
  --border: #2F343E;
  --text-on-light: #0E1014;
  --text-body-on-light: #4A4F58;
  --text-muted-on-light: #5C616B;
  --border-on-light: #C9C5B8;
  --amber-on-light: #9A6300;
  --font-display: 'Space Grotesk', 'Geist', Arial, sans-serif;
  --font-body: 'Inter', 'Geist', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;
}
```