LeanUI
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 26 GitHub stars
Code Uyari
- network request — Outbound network request in apps/studio/public/coi-serviceworker.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Lean 4 formally verified UI framework, compiler, 54-tool MCP & ACP v2 agentic platform, and 2D/3D visual docking IDE for Views and ViewModels.
LeanUI
Formally verified UI framework, Lean 4 compiler, 54-tool MCP & ACP v2 agentic platform, and 2D/3D visual docking IDE for large-scale Views and ViewModels.
LeanUI lets teams design reactive applications visually, mathematically prove state invariants, UI accessibility, data integrity, and control templates in Lean 4 (100% client-side in WebAssembly or via native Lake), inspect architectures in CAD Exploded 3D and 3D Isometric Orbit Timelines, collaborate with AI agents over MCP (54 tools) & ACP v2, and compile to zero-dependency Lean 4 (.lean), Standalone HTML (.html), and React + TypeScript (.tsx).
- Try LeanUI Studio Live (Zero-Server Lean 4 WASM): https://wieslawsoltes.github.io/LeanUI/
- Read the Full Documentation Portal: https://wieslawsoltes.github.io/LeanUI/docs/
- Detailed Implementation & Roadmap Matrix:
STATUS.md
Features Overview
| Capability | Highlights | Guide |
|---|---|---|
| Formal Lean 4 Verification | Real Lean 4 kernel in browser WebAssembly (zero backend) + native lake bridge, 14 built-in theorems, full Lean 4 proof nodes (lean_type, lean_def, lean_theorem, lean_tactic), user proof_rules, and a 5-mode interactive Proof Visualizer. |
Ch. 03 |
| Visual Graph Editor (69 Node Kinds) | Infinite -∞..+∞ typed node-wire canvas covering Lean 4 proofs, ViewModels, FSMs, Validators, Data Sources, Control Templates, inline Live Preview nodes (app_preview, template_preview), 36 UI controls, Visual Logic & Tactic Editor (ƒ), 5 auto-layouts, and obstacle-avoiding wire routing. |
Ch. 02 |
| Live Preview Nodes, CAD Explode & 3D Orbit | Embed live interactive App & Control Template previews on the 2D canvas; inspect 4-layer CAD Exploded Assemblies (❖ Explode) with BOM; scrub 3D Isometric Orbit Timelines (🧊 3D Orbit) with animated flow arcs, Front-based 360° camera, AutoCAD 3DFORBIT ring & 26-zone 3D ViewCube. |
Ch. 10 |
| Control Templates & Design System | WCAG AA/AAA contrast-verified style tokens, Light/Dark & multi-locale i18n Resource Dictionaries ({res:token}), main-canvas node-based control_template authoring (8 root containers, full 36-control nesting), and formal control_templates_valid proofs. |
Ch. 08 |
| 9-Provider Data & Query Engine | Verified datasource and data_query pipelines for Hacker News API, REST, GraphQL, WebSocket, Firebase RTDB/Firestore (live REST + multi-tab realtime sync), MS Access/SQL (PK, Foreign Keys, INNER/LEFT JOIN, inline Auto-Forms), and Local CSV/JSON files. |
Ch. 02 |
| App Flow, Multi-View & Prototyping | Macro App Flow Architecture Editor (⬡ Flow) with 1,200-module clustering, simultaneous Multi-View Board (⊞ Multi), interactive Connected Prototype Runner (▶ Proto) with standalone HTML export, Stage Lanes (⇄ Stages), and 26 Solution/Project/Item templates. |
Ch. 04 |
| Omnidirectional Debugger & Timeline | Time-travel state scrubber (⏱ Timeline), timeline forking, inline state editing, conditional breakpoints (F9), causal Execution Path step-through (F5/F10), Watches, bidirectional Source Maps, Live UI Element Picker, and Node/Playwright test export. |
Ch. 05 |
| 12-Panel Docking IDE & Accessibility | 60fps pointer docking across 4 zones + Center Split + Floating Windows, 5-way compass, responsive tablet/mobile layouts, Industrial Light/Dark/WCAG AAA High-Contrast themes, and Compact/Normal/Touch density presets. |
Ch. 06 |
| CodeGen, CLI, 54-Tool MCP, GenUI & ACP v2 | Multi-target emitters (.lean, .html, Prototype .html, .tsx, lakefile.lean, trace tests), pure Lean-native compiler, @leanui/cli, 54-tool MCP (2025-03-26) server, 16 reusable GenUI chat widgets, and ACP Latest (v2) agent harness across Gemini, OpenAI/Codex, Claude APIs & local subscription CLIs. |
Ch. 07, Ch. 09 |
See
STATUS.mdfor the complete capability status breakdown and roadmap limitations.
Quick Start
# 1. Install monorepo dependencies (Node.js 20+ & npm 10+)
npm install
# 2. Fetch client-side Lean 4 WASM Init assets (~47 MiB compressed, gitignored)
npm run fetch:lean-wasm
# 3. Build all 9 workspace packages, Studio & static Docs portal
npm run build
# 4. Run unit, CLI, MCP (54-tool) & Agent Harness / ACP v2 tests
npm test
# 5. Start LeanUI Studio (http://localhost:5173 + live /docs, /mcp, /acp & /agent endpoints)
npm run dev
Optional Server & Native Lean Commands
# Standalone MCP server (STDIO or Streamable HTTP on :4178)
npm run mcp:stdio
npm run mcp:http
# Standalone ACP v2 Agent Server (STDIO or Remote HTTP+SSE on :4179)
npm run acp:stdio
npm run acp:http
# Build static Docs portal only (output: apps/studio/dist/docs)
npm run build:docs
# Regenerate examples & verify with native Lean 4 (requires elan / Lean v4.14.0)
npm run generate:examples
npm run verify:lean
npm run codegen:lean
Documentation
Browse the interactive Hosted Documentation Portal (searchable, grouped by learning stage, Light/Dark synced) or read the Markdown guides in docs/:
| Track | Guide | What You'll Learn |
|---|---|---|
| Start Here | Overview & Feature Map | Big-picture map of every feature and how everything connects |
| Start Here | Quick Start & Studio Tour | Open in browser or locally in 2 minutes + all 13 verified presets |
| Step-by-Step | Build Your First Verified App | 5-minute walkthrough: State, Actions, Lean 4 λ Prove, UI, 3D & Export |
| Step-by-Step | Connect Real Data & Tables | Wire REST/HN APIs, Firebase realtime sync, MS Access/SQL FKs & CSV files |
| Step-by-Step | Control Templates & Design | Multi-root Control Templates, Light/Dark/i18n dictionaries & WCAG proofs |
| Step-by-Step | Multi-Screen Apps & Prototypes | Macro App Flow (⬡ Flow), Multi-View (⊞ Multi) & Prototype Runner (▶ Proto) |
| Step-by-Step | 3D CAD Explode & 3D Orbit | Inline preview nodes, 4-plane CAD Explode, 3D Orbit Timeline, ViewCube & 3DFORBIT |
| Step-by-Step | Debug & Time-Travel Timeline | Recording traces, scrubbing/forking time, conditional breakpoints & test export |
| Advanced | Formal Verification & Lean 4 | WASM vs Native Lake, 14 built-in theorems, custom Lean 4 nodes & Proof Visualizer |
| Advanced | AI Agents, GenUI & ACP v2 | Studio AI chat, / commands, @ mentions, 16 GenUI widgets & ACP v2 sessions |
| Advanced | Docking Workspace & Themes | 12 dockable panels, Light/Dark/AAA themes, density presets & shortcuts |
| Reference | Node Catalog (69 Kinds) | Port-by-port reference for every node kind, Visual Logic Editor (ƒ) & layouts |
| Reference | CodeGen, CLI, MCP & ACP v2 | All 54 MCP tools, CLI flags, code targets & external IDE/ACP configs |
| Architecture | Architecture & Guidelines | Multi-project Solution layering, graph hygiene & agentic engineering rules |
Monorepo Architecture
LeanUI/
├── .github/workflows/pages.yml # Zero-server GitHub Pages CI (Studio + Docs + Lean 4 WASM)
├── scripts/build-docs.mjs # Zero-dependency searchable static Docs portal generator
├── docs/ # Complete user documentation (Index + Chapters 01–10)
├── apps/
│ └── studio/ # @leanui/studio — Vite + TypeScript 2D/3D visual docking IDE
├── packages/
│ ├── core/ # @leanui/core — 69-node graph model, LogicGraph, Data Engine, Solution/Flow, 5 layouts
│ ├── verifier/ # @leanui/verifier — Static & bounded invariant, Data/FK, WCAG, i18n, Template & Proof verifier
│ ├── codegen/ # @leanui/codegen — Lean 4, Standalone HTML, Connected Prototype, React TSX & Trace Test emitters
│ ├── lean-wasm/ # @leanui/lean-wasm — Client-side Lean 4 WebAssembly kernel (Web Worker)
│ ├── lean-server/ # @leanui/lean-server — Optional native Lean 4 bridge (`lake env lean --json`)
│ ├── mcp-server/ # @leanui/mcp-server — Full-IDE MCP 2025-03-26 server (54 tools, 7 resources, 6 prompts)
│ ├── agent-harness/ # @leanui/agent-harness — Multi-provider Coding Agent Harness & ACP v2 Server/Client
│ └── cli/ # @leanui/cli — CLI compiler, verifier & solution scaffolder
├── lean/ # Native Lean 4.14.0 Lake project & Lean-native HTML/JS compiler
├── examples/ # Generated standalone HTML, React TSX & Lean-compiled sample apps
└── STATUS.md # Detailed capability status & roadmap matrix
Zero-Server GitHub Pages Deployment
LeanUI Studio and its full Documentation Portal deploy automatically to GitHub Pages on push to main:
- Client-Side Lean 4 Proving:
coi-serviceworker.jsenablesSharedArrayBufferon static hosts, while.github/workflows/pages.ymlbundles the cached Lean 4 WASM Init runtime (lean-wasm-v1). - Portable Relative Routing: Vite builds with
base: './'so Studio,/docs/, and/examples/work on both custom root domains and/<repo>/project paths.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi