Skip to content
The interface layer · 1.0 Beta (1.0.3)

Luca UI

The declarative interface layer for Luca Code: describe each screen, pair it with your logic, and the interface derives from your state.

$ curl -fsSL https://raw.githubusercontent.com/LucaEcosystem/luca-ui/main/install.sh | sh
app.lucu
App:
  id = "app"
  state:
    greeting = "Hello, Luca!"
  Text:
    id = "greeting"
    text = greeting
How it works

Four moves. That's the whole model.

Describe, don't command

UI output derives from state and declared properties. No component references, no show(), hide() or setter calls.

One one-way seam

Luca Code owns the logic; results re-enter UI state only via set/flush. Luca Code never depends on Luca UI.

Events route to names

Interaction routes to handler names in the paired .lucc file — never to components. Executing them is Luca Code's job.

A backend that exists today

The headless text backend is implemented and verifies every doc example; luca-ui render emits deterministic static SVG. Native, custom-GPU and web are documented options.

Frozen, located errors

Every failure is Error at line:column: message — the same wording as Luca Code, pinned by a tested diagnostics catalog.

Tooling that ships with it

A .lucu VS Code extension in-repo and on releases, plus luca-ui check. 93 Rust tests back the Beta.

Rendering

What it renders.

Rendered by the real luca-ui static SVG backend — a state-driven screen from a .lucu description. Not a mockup.

A state-driven screen rendered by Luca UI: gold title bar, a state panel showing greeting =
Rendered with the real luca-ui static SVG backend — state on the left, the screen it derives on the right. Produced by actually running luca-ui render; the same backend that verifies every doc example.
Status

Honest status.

1.0 Beta — real and tested, with labeled assumptions

The toolchain is real (93 Rust tests, frozen diagnostics, static SVG rendering), but some syntax is marked ◐ assumption in the docs — it may change before 1.0 stable. The compatibility page states plainly what is locked and what is still open.

Documentation

Getting started, core concepts, components, backends, diagnostics, compatibility, examples, the CLI and the extension all live on the Luca UI site.