Documentation

SpectreOS documentation

SpectreOS is an open-source mobile Linux operating system, Wayland compositor/shell, UI toolkit, native application suite and Android compatibility stack, organised as one monorepo. These pages are generated from the documentation that lives next to the code, so they follow the repository rather than a separate copy of it.

#How the pieces fit

  • Spectre NixOS · Poco F1 is the operating-system layer: a Mobile NixOS configuration with a mainline SDM845 kernel for the Xiaomi Pocophone F1 (beryllium).
  • Wisp is the Wayland compositor, system UI, lock screen and launcher, built on Smithay (DRM/KMS, GBM, EGL/GLES3, libinput) and on libbhoo.
  • libbhoo is the Rust UI toolkit (bhoo in code) that draws Wisp and every native app, with GLES 3.0, Wayland and WebAssembly backends.
  • Native apps (Keyboard, Settings, Files, Calendar) are Rust programs written against libbhoo.
  • Shiraz is the Android compatibility layer. It lives in a separate repository, spectre-oss/shiraz, and is mounted at codes/shiraz-core as a Git submodule. Wisp and Spectre NixOS integrate it; its own documentation is maintained in that repository.

#Repository Structure

spectreos/
├── .github/workflows/          # Push-to-main release pipeline & PR-only lint/check pipeline
├── codes/
│   ├── apps/
│   │   ├── wisp/               # Wayland compositor (Smithay), System UI, Lock Screen & Launcher
│   │   ├── keyboard/           # Wayland on-screen keyboard (English, Persian, Terminal, Emoji)
│   │   ├── settings/           # System Settings app (standalone Wayland or embedded in Wisp)
│   │   ├── files/              # Native file manager & XDG file chooser
│   │   ├── calendar/           # Native calendar (Day/Week/Month/Agenda, RRULE, iCalendar)
│   │   └── bhoo-web/           # WebAssembly demos, gallery, and Android XML test scenes
│   ├── libs/
│   │   └── ui/libbhoo/         # Minimal Rust GUI toolkit (GLES 3.0, Wayland, WASM, Android XML)
│   ├── os/
│   │   └── specrte-nix-f1/     # Mobile NixOS port for Xiaomi Pocophone F1 (beryllium, SDM845)
│   ├── shiraz-core/            # Git submodule: Shiraz Android compatibility layer (spectre-oss/shiraz)
│   └── utils/
│       └── wisp_remote_viewer/ # Native Rust H.264/PNG viewer & input controller for Wisp remote_control
├── docs/
│   ├── writing-spectreos-apps/ # App authoring guide (structure, Cargo commands, web debugging, latency)
│   └── freedesktop/            # Local Freedesktop.org specifications mirror (XDG, D-Bus, Notifications)
├── landing/                    # SpectreOS documentation & landing website (GitHub Pages)
├── scripts/                    # Python Conventional Commit versioning, change detection & release publisher
├── tools/
│   ├── spectre-xtask/          # Unified Cargo task runner (`cargo dev`, `cargo release`, `cargo test-web`)
│   ├── bhoo-web-debug/         # Interactive WASM browser workbench for developing SpectreOS apps
│   ├── msdf-icon-gen/          # Multi-channel SDF (MSDF) icon atlas generator
│   └── ...                     # WebXDC packagers, Android XML importers, asset generators, test suites
├── .cargo/config.toml          # Repo-wide Cargo aliases wired to `tools/spectre-xtask`
├── Makefile                    # `make init` links subproject `docs/` folders under `docs/`
├── LICENSE                     # GNU GPL v3 (`GPL-3.0-only`)
├── SECURITY.md                 # Private vulnerability reporting policy
└── THIRD_PARTY_NOTICES.md      # Third-party attributions and licenses

#Subprojects & Core Components

ComponentPathDescription
libbhoocodes/libs/ui/libbhoo/Immediate-mode-inspired Rust UI toolkit (bhoo crate) with analytical critically damped motion, ink ripples, HarfRust/Skrifa shaping, GLES 3.0 / Wayland / WASM backends, Material Design 3 components, and Android XML layout/menu runtime.
Wispcodes/apps/wisp/Unified Wayland compositor (embedded Smithay + DRM/KMS + GBM + EGL/GLES3 + libinput), System UI, Lock Screen, org.freedesktop.Notifications service, Home/Drawer/Overview/Split-Screen/Freeform shell, Linux hardware bridge, and optional remote_control H.264 stream.
SpectreOS Keyboardcodes/apps/keyboard/Standalone Wayland OSK (spectre-keyboard, org.spectreos.OSK0) with libbhoo GLES 3.0 rendering, English (en-US), Persian (fa-IR with ZWNJ), Terminal, and Emoji layouts, adaptive touch scoring, and zwlr_layer_shell_v1 / zwp_input_method_v2 / zwp_virtual_keyboard_v1 support.
SpectreOS Settingscodes/apps/settings/System Settings app synced with ~/.config/wisp/settings.conf and lock.conf, including hardware telemetry, lock-screen/notification controls, and Shiraz management.
SpectreOS Filescodes/apps/files/File manager and XDG file chooser with Trash, recursive search, image previews, and ZIP archive support.
SpectreOS Calendarcodes/apps/calendar/Local calendar library embedded in Wisp with Day/Week/Month/Agenda views, recurrence (rrule), reminders, and iCalendar import/export.
Bhoo Web Demoscodes/apps/bhoo-web/WebAssembly (wasm32-unknown-unknown) playground, component gallery, Angular Material side-by-side comparison, and Android XML demos.
Shiraz (submodule)codes/shiraz-core/Android compatibility layer (ART + SDL2 + EGL/GLES + Skia Ganesh + OS bridges) running Android APKs natively on Linux, integrated into Wisp and specrte-nix-f1.
Spectre NixOS (Poco F1)codes/os/specrte-nix-f1/Mobile NixOS system configuration, mainline SDM845 kernel config & patches, firmware verification, camera/sensor/fingerprint modules, and flashing scripts for Xiaomi Pocophone F1 (beryllium).
Wisp Remote Viewercodes/utils/wisp_remote_viewer/Native Rust H.264/PNG display viewer and touch/keyboard forwarder for Wisp development builds.

#Documentation Index


View source on GitHub →