Aura

Aura

1.0.0

Desktop UI

Declarative desktop interfaces, written in Nox.

A widget tree becomes elements, then a render tree, then a scene the shell paints. The same self-check runs on macOS, Windows, X11 and Wayland.

$noxc run examples/counter/main.nox

Nox 2.0. The language itself is documented at noxlang.com.

nox
from aura.controls import Button
from aura.layout import Center, Column
from aura.text import Text
from aura.widgets import BuildContext, Signal, State, StatefulWidget, Widget

class CounterState(State):
    count: Signal

    def __init__(self) -> None:
        super().__init__()
        self.count = Signal(0)

    def increment(self) -> None:
        self.count.set(self.count.get() + 1)

    def build(self, context: BuildContext) -> Widget:
        return Center(Column([
            Text("Aura", font_size=32.0),
            Text(str(self.count.get()), font_size=48.0),
            Button("Continue", self.increment),
        ]))

Shape

The same idea, three different jobs.

Aura is the desktop UI framework for Nox. Version 1.0 freezes the public API: Text stays, rich text is inline, and the three desktop shells are the supported targets.

Three trees

A widget is configuration. An element owns identity and lifecycle. A RenderObject lays out, paints and hit-tests.

One UI thread

The shell owns the window. Reading files off the UI thread is a later, explicit step, not a hidden thread.

Frozen at 1.0

Text, TextRun and RichText stay. Web, hot reload and slivers are outside the 1.0 contract.

Surface

What you actually import.

Widgets

StatelessWidget, State, Key, Signal

Layout

Row, Column, Stack, Align, virtual list

Text

Text, TextRun, RichText, fields

Shells

macOS, Win32, X11 and Wayland

Built on Nox, served next to it.

This site is a Nyx application on the same Cloudflare tunnel as noxlang.com. The language reference stays on the Nox site.