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 (
bhooin 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-coreas a Git submodule. Wisp and Spectre NixOS integrate it; its own documentation is maintained in that repository.
Getting started
Prerequisites, cloning with submodules and the unified cargo app-* commands.
libbhoo
The Rust UI toolkit: features, backends, frame model and validation.
Wisp
Wayland compositor, system UI, lock screen and multitasking.
Native apps
Keyboard, Settings, Files, Calendar and the web demos.
Writing apps
App structure, Cargo commands, web debugging and responsiveness.
Spectre NixOS · Poco F1
Mobile NixOS port, kernel, firmware and flashing guide.
Releases & versioning
Independent versions, release tags and live downloads.
Security & licensing
Reporting vulnerabilities and third-party licenses.
#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
| Component | Path | Description |
|---|---|---|
libbhoo | codes/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. |
| Wisp | codes/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 Keyboard | codes/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 Settings | codes/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 Files | codes/apps/files/ | File manager and XDG file chooser with Trash, recursive search, image previews, and ZIP archive support. |
| SpectreOS Calendar | codes/apps/calendar/ | Local calendar library embedded in Wisp with Day/Week/Month/Agenda views, recurrence (rrule), reminders, and iCalendar import/export. |
| Bhoo Web Demos | codes/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 Viewer | codes/utils/wisp_remote_viewer/ | Native Rust H.264/PNG display viewer and touch/keyboard forwarder for Wisp development builds. |
#Documentation Index
- App Authoring Guide:
docs/writing-spectreos-apps/README.md - Apps Overview:
codes/apps/README.md libbhooDocumentation:codes/libs/ui/libbhoo/docs/README.md- Wisp Compositor & Shell Docs:
codes/apps/wisp/docs/README.md - Poco F1 NixOS Docs:
codes/os/specrte-nix-f1/docs/README.md - Utilities:
codes/utils/README.md - Tooling Reference:
tools/README.md - Freedesktop.org Local Specs:
docs/freedesktop/INDEX.md