Apps

Small programs that run in a view of their own, installed from a registry or built from a folder.

An app is a program compiled to WebAssembly that draws a view of its own in Cydonia. It belongs to no project: it has no #N, and is listed under Apps in the sidebar and in the library's Apps tab.

Installing

File › Install App… takes an app's reference in an OCI registry, such as ghcr.io/owner/app:1.0.0, and installs it. While it starts, an app shows what it reaches: the tables of its own it keeps, and the hosts it fetches from. Those hosts are the only ones it can reach.

An app keeps its record and its own tables under ~/.local/share/cydonia/app/<id>/.

Building one from a folder

With Developer mode on in Settings › General, File › Load App from Folder… takes a Rust crate built against cydonia-guest. The app is marked Local. Opening it builds it with

cargo build --release --target wasm32-unknown-unknown

so the machine needs rustup target add wasm32-unknown-unknown. From then on, saving any file of the crate builds it again and reloads it in its open tabs. A build error, a trap or a panic shows in the app's tab.

With Developer mode off, loaded apps are neither listed nor built; installed apps still are.

Agents writing an app read the apps resource — see What agents are told.