A complete task manager in a single .orb file. Entity, state machine, UI — all in one place. The compiler generates frontend, backend, and database.
type TaskStatus = pending | in-progress | done
orbital TaskApp {
entity Task [persistent: tasks] {
id : string!
title : string!
status : TaskStatus = "pending"
}
trait TaskManager -> Task [interaction] {
initial: viewing
state viewing {
INIT -> viewing
(fetch Task)
(render-ui main { type: "entity-table", entity: "Task" })
ADD -> adding
(render-ui modal { type: "form", entity: "Task" })
}
state adding {
SAVE -> viewing
(persist create Task @payload)
CANCEL -> viewing
}
}
page "/tasks" -> TaskManager
}
One .orb model compiles to web, mobile, desktop, or any future platform. The behavior is platform-independent.
The compiler checks every possible screen your app can reach. If it compiles, users never hit a broken or missing page.
Structured, formal, and compact. AI models generate valid .orb programs more reliably than arbitrary code.