Quick Start & Studio Tour#
Get up and running with LeanUI Studio in under 2 minutes — either directly in your browser with zero installation, or locally with full MCP, ACP v2, and optional native Lean 4 support.
Option A: Open Immediately in Your Browser (Zero Install)#
Visit https://wieslawsoltes.github.io/LeanUI/ in Chrome, Edge, Safari, or Firefox.
- Real Lean 4 formal verification runs 100% client-side inside your browser via WebAssembly (
coi-serviceworker.jsenablesSharedArrayBufferautomatically). - All 13 verified presets, 2D Graph Editor, 3D CAD Explode, 3D Isometric Orbit, Time-Travel Debugger, and HTML/React/Lean exports work out of the box.
Option B: Run Locally (Full Dev + MCP / ACP v2 / Native Lean 4)#
Requirements: Node.js 20+ and npm 10+ (native Lean 4 v4.14.0 is optional).
# 1. Install workspace dependencies
npm install
# 2. Fetch client-side Lean 4 WASM Init assets (~47 MiB compressed)
npm run fetch:lean-wasm
# 3. Build all 9 packages, Studio & local Docs portal
npm run build
# 4. Start LeanUI Studio at http://localhost:5173 (with /docs, /mcp, /acp & /agent)
npm run devYour First 2 Minutes in LeanUI Studio#
When Studio opens, you will see three clean areas:
- Top Command Bar:
- Left: Active module name (
LeanUI / MetricsOvervieworBoundedCounter). - Center: Preset selector (13 ready-made apps),
+ Node(all 69 node kinds),Templates,⌘KQuick Search, Undo/Redo,Layout(5 automatic layouts), Docking Preset,Panels ▾, andExport ▾. - Right:
λ Prove(runs real Lean 4 proofs),● Verified (0 err)live badge,Docs(opens this guide),AAAHigh-Contrast toggle, Density (Normal/Compact/Touch), and Light/Dark toggle.
- Left: Active module name (
- Center Workspace & 7-Mode Stage Switcher: Switch how you view your active module or Solution at any time:
◈ Graph— Visual node-and-wire editor (supports inline liveapp_preview&template_previewnodes).⬡ Flow— Macro architecture view wiring Views & ViewModels across your whole Solution.❖ Explode— 4-layer 3D CAD exploded model with live UI cards, BOM & AutoCAD ViewCube.🧊 3D Orbit— 3D stacked timeline of recorded state transitions with animated flow arcs.⊞ Multi— Side-by-side live Views & ViewModels running together.▶ Proto— Clickable multi-screen interactive Prototype Runner.⇄ Stages— Architectural Kanban board & workflow graph.
- 12 Dockable Side & Bottom Panels:
- Left dock:
SolutionExplorer,Palette(drag nodes onto canvas),Inspector(edit selected node). - Right dock:
UILive Preview,AI/M…Agent & MCP Mission Control,TraceTimeline,ProofVisualizer,Lean/HTML/TSXlive code tabs. - Bottom dock:
Console(verification diagnostics) &Debug(breakpoints & watches).
- Left dock:
Try this right now:
- Click a button inside the
▶ UILive Preview panel on the right and watch the state update live.- Click
λ Provein the topbar to mathematically prove your app's invariants in Lean 4.- Click
❖ Explodein the center stage bar to inspect your app in 3D, then click the ViewCube faces (FRONT,RIGHT,TOP) to snap angles!
Explore the 15 Built-In Verified Presets#
Switch presets anytime using the Preset dropdown in the topbar or browse them in the ⊞ Solution Explorer:
| Preset | Category | What It Demonstrates |
|---|---|---|
| Bounded Counter | Starter | Bounded Nat state (0 ≤ count ≤ maxLimit), safe actions, disabled guard & Lean 4 invariant proof. |
| Docking IDE & Tabbed Workbench | Navigation, Docking & Tabs | command_bar, 4-zone dock_layout, collapsible/floatable dock_panes, closable/addable tab_view (cards) & named tab_pages with formal Lean 4 bounds proofs. |
| Navigation Rail & Tabbed Analytics Portal | Navigation & Tabbed Views | Collapsible nav_rail sidebar, command_bar, pills tab_view + 3 tab_page views, live slider, WCAG AAA style & formal SLA invariants. |
| Verified Design Portal | Design & i18n | WCAG AA style tokens, EN/DE/PL resource dictionary, bounded slider, accordion, and custom proof_rule. |
| Lean 4 Proof Workbench | Formal Methods | Custom lean_type, lean_def, lean_tactic, and lean_theorem nodes called directly inside live UI expressions. |
| Templated Controls Kit | Design System | Reusable control_template blueprints with Light/Dark tokens and ContentPresenter slots. |
| Verified Control Templates | Design System | Multi-root control_templates (card, grid, semantic <button>) verified with Lean 4 control_templates_valid. |
| Custom Logic & FSM Engine | Logic & FSM | Pure Lean 4 pricing functions, 3-rule validator pipeline, and 4-state state_machine stepper. |
| Task Manager | Collections | Typed collection lists, filter predicates, List.length_filter_le invariant & cross-module module_ref. |
| Inventory & Sub-Program | Modularity | Sortable Data Table paired with an encapsulated nested Sub-Program module. |
| Cart Calculator | Commerce | Reactive price/quantity computeds and non-negative total invariants. |
| Validated Form | Forms | Boolean validation predicates gating form submission cleanly. |
| Hacker News Reader | Live API | Real Hacker News Firebase API datasource + reactive data_query search & score filter. |
| MS Access Orders DB | Relational DB | Relational customers + orders tables with Autonumber PK, verified Foreign Key, INNER JOIN & Auto-Form. |
| Firebase Live & Local CSV | Realtime & Files | Multi-tab synced Firestore emulator (BroadcastChannel) paired with drag-and-drop CSV/JSON upload. |
Next Step#
Ready to build your own app from scratch? Follow our 5-minute walkthrough: Build Your First Verified App →.