Skip to content

Alicorn documentation

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.

Build the starter

Components

The AliKit catalog: native previews, copyable Odin source, and explicit contracts.

Browse components

The retained runtime

What Alicorn retains, what your app owns, and when work becomes dirty.

Read the runtime model

API and examples

Find the right package and follow the repository’s progressive examples.

Browse the API map

SectionStart withWhat it answers
Getting startedSystem requirementsWhat to install and how to get a native window on screen.
GuideThe retained runtimeHow direct authoring, explicit invalidation, identity, themes, and accessibility fit together.
ComponentsAliKit overviewWhich reusable components exist, what they own, and the contract each one publishes.
ReferenceAPI and examplesThe public packages, the example progression, and the AliKit component registry.
ResearchLayout scopesEvidence records behind layout, rendering, and invalidation decisions.
DevelopmentBuild and testRepository 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.