Your first native app
Install the toolchain, run the starter, and change a label.
Alicorn is an experimental native GUI runtime for Odin. You describe your UI with ordinary Odin code; the runtime retains identity, interaction, layout, text, and rendering products between updates. Application data and policy stay in your own structs. The native host owns the window, input pump, event loop, and GPU submission.
import ui "alicorn:ui"
App :: struct { saved: bool }
render :: proc(app: ^App, ctx: ^ui.UI) { if ui.column(ctx, padding = 24, gap = 12) { ui.text(ctx, "Hello, Alicorn") if ui.button(ctx, "Save") { app.saved = true } }}
main :: proc() { app := App{} ui.run(&app, render, title = "Alicorn", width = 720, height = 480)}Your first native app
Install the toolchain, run the starter, and change a label.
Components
The AliKit catalog: native previews, copyable Odin source, and explicit contracts.
The retained runtime
What Alicorn retains, what your app owns, and when work becomes dirty.
API and examples
Find the right package and follow the repository’s progressive examples.
| Section | Start with | What it answers |
|---|---|---|
| Getting started | System requirements | What to install and how to get a native window on screen. |
| Guide | The retained runtime | How direct authoring, explicit invalidation, identity, themes, and accessibility fit together. |
| Components | AliKit overview | Which reusable components exist, what they own, and the contract each one publishes. |
| Reference | API and examples | The public packages, the example progression, and the AliKit component registry. |
| Research | Layout scopes | Evidence records behind layout, rendering, and invalidation decisions. |
| Development | Build and test | Repository checks, fixtures, and the validation boundary. |
AliKit is the optional source-level component library for Alicorn. It adds reusable behavior and copyable presentation over Alicorn’s public APIs; it does not add a second runtime, state store, theme engine, or component lifecycle. An application may use AliKit, copy a single component, or build its own controls directly on Alicorn.
The dependency direction is one-way: application → AliKit (optional) → Alicorn.
Alicorn is experimental and its API is evolving. The project status page records the current platform evidence and known limits, and the research index links the validation records behind those claims. Read the validated boundary before treating a headless test as evidence about native window presentation or GPU output.