Getting started Introduction Lakeport is a Lean 4 framework in development for native and web apps: Web, iOS, Android, macOS, Windows, and Linux from one project. Installation and project layout Build the Lakeport CLI from source, scaffold a project, and configure the target toolchains. Your first verified app Run the dev server with CSS-only HMR, verify your state laws with lakeport check, and watch a broken transition stop the build.
Recommended patterns Client state and proofs Keep app state transitions in pure Lean functions so theorems can refer to the executed definitions. Versioned contracts at the edge Keep response versions in an app union and release consumers before producers. Frontend-first releases Release app support for a new response shape before a service starts returning it.
Modules and capabilities Views, components, and .lp syntax Semantic HTML and form elements, 6-target accessibility, unstyled primitives, optional Tailwind component templates, and virtualized lists. Styling, CSS engine, and Tailwind plugin Standard CSS on Web and native targets, native conformance fixtures, scoped modules, and optional Tailwind CSS. Routing, typed URLs, and static sites Verified URL round-trip parsing, semantic links and document titles, native stack/sheet/tab chrome, and static-site pre-rendering. Effects, device plugins, and native SDKs Typed effects, runtime device capabilities, and native dependencies resolved with Gradle or SwiftPM. Bundle size and WebAssembly downloads Zero-byte proof erasure, cached runtime builds, size reports with lakeport size, and progressive WebAssembly hydration. CLI, IDE, and MCP reference Command reference for create-lakeport, lakeport setup, doctor, check, dev, build, size, mcp, and the lakeport-lsp editor extensions.
How Lakeport is built Architecture overview How the Lean core, shared native CSS and animation engines, real OS controls, and 6-target build pipeline fit together. Compiler pipeline and runtime internals Inside the .lp compiler, native and Wasm runtimes, cached builds, and development reload. Code quality and contributor guide Review executed code, theorem statements, host behavior, and reproducible evidence.