Lakeport is in development. If you have access to the Lakeport repository, build the CLI from source with Lean 4.35.0 and a C compiler available. The contributor guide in the repository covers the toolchain inputs required by each target.
.lp views, standard CSS, LakeportRouter (RouterShell / NavTabs), Counter & Todo with proved invariants (AppLaws.lean).
mobile
Tabbed mobile shell with safe-area CSS insets, RouterState stack navigation (StackHeader / NavTabs), native plugin bridge scaffold, and RouteLaws.lean.
blank
Minimal .lp Counter starter with standard CSS, CounterLaws.lean, and Hmr.lean.
tailwind
Optional Tailwind template with 34 copy-owned OKLCH light/dark components, ThemeLaws.lean, and Hmr.lean.
Bootstrap toolchains & check readiness
Use lakeport doctor to check the toolchains and runtime artifacts for your target. The source checkout supports a local .lakeport/toolchain.json. Package-based automatic setup depends on published release artifacts.
Native iOS and macOS builds require Xcode on macOS; Android builds use pinned SDK 35 and NDK 28.2. Projects that opt into Tailwind install tailwindcss and @tailwindcss/cli as project dependencies.
Project layout
A generated project keeps views, configuration, state, and proofs clearly separated:
•
lakefile.toml: Lean package manifest, local/remote dependencies, and [lakeport] target settings.
src/App.lp: Root view and StyledApp wiring authored in .lp.
•
src/app.css: Entry CSS stylesheet (standard W3C CSS, custom properties, @import, or Tailwind when using the Tailwind integration).
•
src/*Proofs.lean / src/*Laws.lean (optional): Theorems can live in any .lean or .lp file (lakeport check verifies all of them and Lean erases proofs before binary emission). Putting proofs in a separate .lean file is an optional convention that keeps UI edits fast to rebuild.
•
AGENTS.md: Instructions for Claude Code, Codex, Cursor, and other coding agents covering check, dev, build, size, and mcp.
•
.lakeport/ and dist/: Build caches and target outputs (ignored by git).
Editor & IDE support
Install the Lakeport extension for VS Code / Cursor (tools/vscode-lakeport/) or Zed (tools/zed-lakeport/). Both bundle lakeport-lsp, a bidirectional .lp ↔ .lean Language Server providing:
•
Exact token-level diagnostics narrowed to individual tags, attributes, and expressions
•
Closing-tag go-to-definition (</MyCard>) and Lean type hover inside .lp buffers
•
Project CSS class completions (plus Tailwind completions when your project uses Tailwind)
•
Automatic lakeport mcp registration for coding agents