LeanUI Docs
← Open LeanUI Studio GitHub

Every Studio Panel & Interactions Guide (All 12 Panels)#

LeanUI Studio is a full dockable IDE where every visual edit, runtime click, breakpoint pause, Lean 4 proof, and AI agent action stays live-synced across 12 dockable panels, the Top IDE Toolbar, and the Export Diagram Dialog.

This guide gives you a dedicated live annotated snapshot and an exact interaction playbook (click, drag, double-click, and keyboard shortcuts) for the entire workspace and every individual panel.


Entire Studio Workspace Overview#

Every diagram below is generated directly from LeanUI Studio's real layout engine and updates automatically in both Light and Dark themes on every deployment.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Entire LeanUI Studio Workspace — All 4 Dock Zones, Top Toolbar, Center Stage & Core 6-Step Interactions Entire LeanUI Studio Workspace — All 4 Dock Zones, Top Toolbar, Center Stage & Core 6-Step Interactions
Entire LeanUI Studio Workspace — All 4 Dock Zones, Top Toolbar, Center Stage & Core 6-Step Interactions

How Dock Zones & Panel Tabs Interact#

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Docking IDE Zones, Layout Presets, Drag-to-Split & Floating Windows Docking IDE Zones, Layout Presets, Drag-to-Split & Floating Windows
Docking IDE Zones, Layout Presets, Drag-to-Split & Floating Windows
InteractionWhere to Perform ItWhat Happens
Switch Workspace PresetTopbar IDE Default ▾ selectorInstantly switches between IDE Default, Graph Focus, Design & UI, and Proofs & Code.
Show / Focus Any PanelTopbar Panels dropdownOpens, unhides, and brings focus to any of the 12 panels (or resets layout via ↺ Reset Default IDE Layout).
Split Any Dock ZoneDrag a panel tab onto the bottom/side split edge of a dockSplits that dock into two simultaneous visible panes (e.g., Palette above Inspector, or Preview above Timeline).
Float a Panel WindowDrag a panel tab onto the open center canvasPops the panel into a freely movable, resizable floating IDE window; click its dock icon to return it.
Resize Any DockDrag the vertical/horizontal splitter bar between zonesResizes Left, Right, or Bottom docks smoothly and persists dimensions automatically.

Global Controls · Top IDE Toolbar & Stage Bar#

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Top IDE Toolbar & 7-Mode Stage Switcher Bar with Interactive Controls Top IDE Toolbar & 7-Mode Stage Switcher Bar with Interactive Controls
Top IDE Toolbar & 7-Mode Stage Switcher Bar with Interactive Controls

Step-by-Step Interactions#

  1. Rename Module: Click the editable title field right after LeanUI / to rename the active Lean 4 namespace & app title.
  2. Switch Presets or Insert Nodes: Pick any of 13 built-in verified apps from the preset dropdown, or click + Node / Templates.
  3. Instant Search (⌘K / Ctrl+K): Press ⌘K to search nodes, jump across 1,000+ solution modules, run auto-layouts, or trigger proofs from the keyboard.
  4. Auto-Layout: Choose DAG Layered, Swimlanes, Auto-Grouped, View Tree, or Compact Grid and click Layout.
  5. Prove & Accessibility: Click λ Prove to run the real Lean 4 compiler, AAA for WCAG AAA high-contrast Studio chrome, Normal ▾ for Compact / Touch density, or ☾ / ☀ for Dark/Light theme.

Left Dock Panels#

1. Solution Explorer (⊞ Solution)#

Manages multi-project solutions (.leanui-sln.json), folder hierarchies, Screens, ViewModels, Control Templates, and Git-friendly local folder sync.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Solution Explorer Panel — Multi-Project Tree, Filtering, Module CRUD & Verification Status Solution Explorer Panel — Multi-Project Tree, Filtering, Module CRUD & Verification Status
Solution Explorer Panel — Multi-Project Tree, Filtering, Module CRUD & Verification Status

Interactions Usage#

  • Filter Modules: Type in Filter solution modules… to filter large multi-project solutions in real time.
  • Create Module: Click + Module to create a new Screen, ViewModel, Shared Logic, or Control Template inside a project folder.
  • Open Module Tab: Click or double-click any module row to open it in the Center Stage document tab bar without losing unsaved work in other tabs.
  • Right-Click / Actions: Duplicate, rename, move between folders, or delete modules cleanly while keeping cross-module references updated.

2. Node Palette (◈ Palette)#

Houses all 69 formally typed LeanUI node kinds organized by domain (Lean 4 Proof Language, Data Sources, ViewModel & Proofs, Design System, Live Previews, Scale/Routing, and View Layer).

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Node Palette Panel — 69 Node Kinds, Fuzzy Filter, Templates & Wire-Split Dragging Node Palette Panel — 69 Node Kinds, Fuzzy Filter, Templates & Wire-Split Dragging
Node Palette Panel — 69 Node Kinds, Fuzzy Filter, Templates & Wire-Split Dragging

Interactions Usage#

  • Search All 69 Kinds: Type any keyword (state, list, wcag, firebase, preview, theorem) to filter immediately.
  • Click to Insert: Single-click any item to insert it at the center of the current canvas viewport.
  • Drag onto Open Canvas: Drag any item from the Palette and drop it at an exact (x, y) location on the canvas.
  • Drag onto Existing Wire (Auto-Split!): Drag a node (such as a Computed, Validator, or Reroute) directly over an existing wire — the wire glows, splits automatically, and connects both ends!
  • Insert Multi-Node Blueprints: Click Templates at the top right to drop pre-wired CRUD forms, auth guards, dashboards, or FSM flows in one click.

3. Property Inspector (⚙ Inspector)#

Context-sensitive editor for whichever node (or multi-selection) is active on the canvas. Split below the Palette by default so you can drag and edit simultaneously.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Property Inspector Panel — Breakpoints, W/H Sizing, ƒ Formula Builder, Device Presets & Connected Wires Property Inspector Panel — Breakpoints, W/H Sizing, ƒ Formula Builder, Device Presets & Connected Wires
Property Inspector Panel — Breakpoints, W/H Sizing, ƒ Formula Builder, Device Presets & Connected Wires

Interactions Usage#

  • Toggle Breakpoint (● BP): Click ● BP in the Inspector header to pause the Omnidirectional Debugger before that node executes.
  • Exact Sizing & Auto-Size: Edit W / H directly, click Auto-Size to fit content cleanly, toggle 🔒 Ratio to lock aspect ratio, or click Fit All to auto-size the entire graph.
  • Visual Logic Editor (ƒ Logic UI): Click ƒ Logic UI next to any expression or action field to build guarded Lean 4 formulas visually without typing syntax by hand.
  • Live Preview Viewport Presets: When inspecting an app_preview or template_preview node, click 📱 Mob, 📲 Tab, or 🖥 Desk to snap exact responsive dimensions.
  • Manage Connected Wires: Inspect every incoming and outgoing edge at the bottom of the panel; click × on any row to disconnect that wire without hunting for it on the canvas.

Right Dock Panels#

4. Live Preview (▶ Preview)#

Runs your verified specification live in real time using the exact same deterministic MVU reducer compiled to Lean 4, HTML, and React TSX.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Live Preview Panel — Responsive Device Switcher, ⌖ UI Element Picker, Live Interaction & Connected Screens Live Preview Panel — Responsive Device Switcher, ⌖ UI Element Picker, Live Interaction & Connected Screens
Live Preview Panel — Responsive Device Switcher, ⌖ UI Element Picker, Live Interaction & Connected Screens

Interactions Usage#

  • Interact Directly: Click buttons, type into inputs, toggle switches, drag sliders, and sort tables — every action records a trace step and lights up touched canvas nodes with #1, #2, #3… execution badges.
  • Responsive Viewport Switcher: Click Desk, Tab, or Mob to test breakpoints immediately.
  • Bidirectional UI Element Picker (⌖ Inspect): Click ⌖ Inspect, then hover and click any rendered element inside the Preview to immediately pan, select, and open its owning View node in the Canvas and Inspector!
  • Reset Runtime: Click Reset to snap state back to initState and clear runtime history.
  • Connected Multi-Screen Jump: Click any screen chip in the CONNECTED: footer bar to test cross-screen navigation flows live.

5. State & Invariant Timeline (⏱ Timeline)#

Deterministic time-travel recorder capturing every dispatched action, exact before/after field diffs, live invariant truth badges, and test export.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
State & Invariant Timeline Panel — Transport Controls, Time-Travel Scrubber, Branch Fork & Test Export State & Invariant Timeline Panel — Transport Controls, Time-Travel Scrubber, Branch Fork & Test Export
State & Invariant Timeline Panel — Transport Controls, Time-Travel Scrubber, Branch Fork & Test Export

Interactions Usage#

  • Transport Bar (⏮ ◀ ▶ ⏭): Step backward/forward one dispatch at a time or play back an entire recorded user journey.
  • Drag the Scrubber: Drag the blue slider left or right to rewind/fast-forward both the Live Preview UI and the Canvas #1..#N execution overlay in lockstep.
  • Click Any Trace Row: Select any historical step to inspect its exact field mutations (count: 2 → 3) and invariant verification pills; filter rows by All, Changed, or Violations.
  • Fork Branch (⑂ Fork): Rewind to an earlier step and click ⑂ Fork (or dispatch a new action) to explore an alternate state branch.
  • Export Regression Tests (✓ Export Test): Download runnable Node.js or Playwright E2E tests directly from your recorded interaction trace!

6. Formal Proofs & 5-Mode Proof Visualizer (✓ Proofs)#

Visualizes every auto-generated and custom Lean 4 theorem obligation with zero sorry placeholders.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Formal Proofs & 5-Mode Proof Visualizer Panel — Matrix, Dep Graph, Tactic Tree, Counterexample & AST Formal Proofs & 5-Mode Proof Visualizer Panel — Matrix, Dep Graph, Tactic Tree, Counterexample & AST
Formal Proofs & 5-Mode Proof Visualizer Panel — Matrix, Dep Graph, Tactic Tree, Counterexample & AST

Interactions Usage#

  • Switch 5 Visualization Modes: Click Matrix, Dep Graph, Tactic Tree, Counterex, or AST at the top of the panel to inspect proofs from different angles.
  • Click Any Theorem Row: Highlights the participating State, Action, and Invariant nodes on the Center Canvas and jumps to the corresponding Lean 4 theorem lines.
  • Auto-Fix Suggestions: When an invariant fails, inspect the concrete Counterexample state values and click Auto-Fix to apply a guard or clamp.

7. Lean 4 Specification (λ Lean 4)#

Shows the live, syntax-highlighted Lean 4 code generated from your visual graph on every keystroke and wire drop.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Lean 4 Specification Panel — Live Formal Code, Bidirectional Source Map & Export Lean 4 Specification Panel — Live Formal Code, Bidirectional Source Map & Export
Lean 4 Specification Panel — Live Formal Code, Bidirectional Source Map & Export

Interactions Usage#

  • Bidirectional Source Mapping: Click any structure field, Action reducer branch, or theorem declaration to highlight the owning node on the canvas.
  • Copy or Download .lean: Click Copy or Download to use the generated formal spec in a standalone Lake project or CI pipeline.

8. Standalone HTML (◇ HTML) & 9. React TSX (⚛ React)#

Live multi-target code generation panels synced 1:1 with the proved Lean 4 transition model.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Standalone HTML CodeGen Panel — Self-Contained Zero-Dependency Web App Output Standalone HTML CodeGen Panel — Self-Contained Zero-Dependency Web App Output
Standalone HTML CodeGen Panel — Self-Contained Zero-Dependency Web App Output
LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
React TSX CodeGen Panel — Typed Interfaces, Pure Reducer & React Hooks Component React TSX CodeGen Panel — Typed Interfaces, Pure Reducer & React Hooks Component
React TSX CodeGen Panel — Typed Interfaces, Pure Reducer & React Hooks Component

Interactions Usage#

  • Inspect Live Diffs: Edit any node property or wire on the canvas and watch the generated HTML5 or TypeScript React component update instantaneously.
  • Ship with One Click: Click Copy or Download to export a zero-dependency .html file or production-ready .tsx component (deriveEnv, checkInvariants, reducer, and JSX).

10. AI Agent, 16-Widget GenUI & MCP Panel (🤖 Agent & MCP)#

Built-in AI architect and multi-provider agent workspace supporting Built-In Architect, Gemini, OpenAI/Codex, Anthropic Claude, Local CLI agents, and ACP v2 + 54 MCP tools.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
AI Agent, GenUI & MCP Panel — Provider Picker, Approval Policy, Slash Commands & Interactive GenUI Cards AI Agent, GenUI & MCP Panel — Provider Picker, Approval Policy, Slash Commands & Interactive GenUI Cards
AI Agent, GenUI & MCP Panel — Provider Picker, Approval Policy, Slash Commands & Interactive GenUI Cards

Interactions Usage#

  • Choose Provider & Approval Policy: Pick your model provider and set safety permissions (Read-Only, Ask, or Auto / Full).
  • Use / Commands & @ Mentions: Type /verify, /build, /fix, /layout, or @ModuleName in the composer to pass exact graph context.
  • Interact Directly with GenUI Cards: Click Apply to Graph, Inspect Diff, test inline Live Preview cards, or expand Proof Matrix widgets right inside the conversation stream.
  • Inspect 54 MCP Tools: Switch to the MCP tab to browse, test, or copy stdio/HTTP config for external IDEs and agents.

Bottom Dock Panels#

11. Verification Console (▤ Console)#

Real-time verification engine and solution-wide diagnostics hub.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Verification Console Panel — WASM vs Native Lake Selector, Verify Solution & Click-to-Focus Diagnostics Verification Console Panel — WASM vs Native Lake Selector, Verify Solution & Click-to-Focus Diagnostics
Verification Console Panel — WASM vs Native Lake Selector, Verify Solution & Click-to-Focus Diagnostics

Interactions Usage#

  • Toggle Proof Engine: Switch between WASM (Browser) (instant, zero-install) and Native Lake (lean-server) for full local Lean 4 compilation.
  • Verify Entire Solution: Click ✓ Verify Solution to validate every module, cross-module wire, WCAG contrast ratio, and formal invariant across all projects.
  • Click-to-Focus Error Navigation: Click any red error or amber warning row to immediately pan the canvas, select the offending node, and focus its Inspector field.

12. Omnidirectional Debugger (⌖ Debug)#

Interactive step-by-step causal debugger tightly coupled with the Canvas #1..#N execution pills and Live Preview.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Omnidirectional Debugger Panel — Resume/Step Transport, Break on Violation, Breakpoints & Live Watches Omnidirectional Debugger Panel — Resume/Step Transport, Break on Violation, Breakpoints & Live Watches
Omnidirectional Debugger Panel — Resume/Step Transport, Break on Violation, Breakpoints & Live Watches
LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Entire Studio App During a Live Debugging & Breakpoint Stepping Session Entire Studio App During a Live Debugging & Breakpoint Stepping Session
Entire Studio App During a Live Debugging & Breakpoint Stepping Session

Interactions Usage#

  • Set Breakpoints: Toggle ● BP on any node in the Inspector (or click a node's BP button) before triggering an action in Live Preview.
  • Step Through Execution (F8 / F10): When paused, click ⤵ Step to watch execution advance from #1 Button → #2 Action → #3 State → #4 Invariant → #5 View with zero overlap between step pills and node resize handles.
  • Break on Invariant Violation: Toggle ● Break on Violation so the runtime freezes immediately if any invariant becomes false.
  • Inspect Live Watches: Monitor live evaluated expressions alongside exact pre/post state diffs.

Export Modal · Visual Diagram Exporter (🖼 Export)#

Available anytime from Export ▾ → 🖼 Export Diagram (SVG / PNG / PDF)… or the Canvas HUD ⤓ Export button.

LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Export Visual Diagram Dialog — Export Any Stage Mode, Entire Studio IDE App, or Individual Panel as SVG / PNG / PDF Export Visual Diagram Dialog — Export Any Stage Mode, Entire Studio IDE App, or Individual Panel as SVG / PNG / PDF
Export Visual Diagram Dialog — Export Any Stage Mode, Entire Studio IDE App, or Individual Panel as SVG / PNG / PDF

Interactions Usage#

  1. Pick Capture Target: Export any of the 8 Stage Modes (Graph, Timeline, App Flow, Explode, 3D Orbit, Multi, Stages, Prototype), 🖥 Entire Studio IDE App, or any of the 14 Selected Studio Panels!
  2. Choose State Snapshot: Toggle Clean (initState), Current (live values, selection, causal trace & #1..#N step badges), or Timeline (multi-step storyboard).
  3. Customize Theme & Overlays: Choose Light/Dark/Match Studio, Dot Grid/Solid/Transparent background, 1×–3× Retina PNG scale, Auto-Annotate Help Callouts, and Multi-Page PDF presets (Timeline Book or Complete Architecture Deck).
  4. Copy or Download: Click 📋 Copy SVG, 📋 Copy PNG, or ⬇ Download Diagram (SVG / PNG / PDF).

Next Steps#

Diagram Preview
Enlarged diagram