Start

Ten minutes: the tools, an application, running it.

1. Tools

Building is mcpp's, installed through xlings; the compiler and the rest are pinned by the project and fetched at the first build.

xlings install mcpp

2. A project, running

omui new hello
cd hello
omui dev

app/main.ts is the whole application:

import { signal, fmt, column, text, button, mount } from "openmui";

const clicks = signal(0);

export const App = () =>
  column({ padding: 24, gap: 12 }, [
    // The page's heading too (role and level): its document's h1 on the Web, a reader's first heading.
    text({ text: "Hello from subscription", style: "title", role: "heading", level: 1 }),
    text({ id: "count", text: fmt("Clicked {} times", clicks), style: "heading" }),
    button({ id: "click", text: "Click me", variant: "primary", onActivated: () => clicks.update((n: number) => n + 1) }),
  ]);

mount("main", App());

Change the file while the window is open and save: the interface changes, and the count stays.

3. The everyday commands

Command What it does
omui dev runs in development mode (--headless for no window)
omui run runs as it ships
omui test runs the tests
omui build builds

Next: interfaces, or what an agent reads.

…