Skip to content

Architecture

n1th1n-19 edited this page Nov 11, 2026 · 1 revision

Architecture

A Rust workspace with seven crates:

Crate Builds Role
crates/core library ember-core All system access, no UI: sampling (CPU, memory, disks, network, GPUs, temperatures, fans, battery), history file, alerts, and controls (processes, services, power, CPU, sound, Bluetooth, network, media, session), installed apps
crates/ui library ember-ui Drawing kit (ink, charts, the machine illustrations, panel icons), shared widgets, the Quick panel, settings, panel setup
crates/app ember The window: canvas pages for readings, widget pages for controls, apps and settings; the command line
crates/applet ember-applet All panel applets in one program, chosen by argument
crates/widget ember-widget The desktop widget, a layer surface under your windows
crates/daemon emberd History and alerts service
crates/helper ember-helper The root helper

How the parts talk

  • Settings are stored with COSMIC's config system. The app writes them; the applets and the widget watch them and update immediately.
  • History: emberd appends fixed-size records to ~/.local/state/ember/history.bin; the app reads them for the one-hour charts.
  • Panel: placing applets edits COSMIC's panel config directly (the same code in every program, in ember-ui), and COSMIC picks up the change.

Drawing

Readings pages are drawn on a canvas: no images, every machine is built from shapes in code. Motion advances in steps of 83 ms, like animation drawn on twos. The look is specified in DESIGN.md.

Built on libcosmic and sysinfo.

Clone this wiki locally