Components
Native apps
Applications and interactive demos built on libbhoo.
See the SpectreOS app authoring guide for app structure, responsive launch, background work, and on-device validation.
Applications and interactive demos built on libbhoo:
| App | Path | Purpose |
|---|---|---|
| Wisp | wisp/ | Unified SpectreOS Wayland Compositor, System UI, Lock Screen, Freedesktop Notifications Service, and Launcher (DRM/KMS + Smithay compositor & Linux hardware bridge, Home workspace, App Drawer, Notification Shade, Quick Settings, Overview/Split-Screen/Freeform multitasking, built-in apps). Runs natively on device (--features compositor), in a desktop preview window (--features wayland), or embedded in WebAssembly. |
| SpectreOS Keyboard | keyboard/ | Default standalone SpectreOS on-screen keyboard (spectre-keyboard, org.spectreos.Keyboard) built in Rust with libbhoo GLES 3.0 rendering, English (en-US), Persian (fa-IR with ZWNJ half-space), Terminal, and Emoji layouts, adaptive touch scoring, Wayland (zwlr_layer_shell_v1, zwp_input_method_v2, zwp_virtual_keyboard_v1), and Freedesktop D-Bus (org.spectreos.OSK0). |
| SpectreOS Settings | settings/ | Extracted Android 13 / AOSP-style System Settings app (spectre-settings) with high-resolution 96×96 Material Symbols icons, illustrated Settings figures, live hardware telemetry, Freedesktop notification & lock-screen privacy settings, and live ~/.config/wisp/ sync. Runs standalone on Wayland (--features wayland) or embedded inside Wisp / bhoo-web. |
| SpectreOS Files | files/ | Native file manager and XDG file chooser (spectre-files) supporting local directories, mounts, Trash, recursive search, image previews, and ZIP archive creation/extraction. Runs standalone on Wayland (--features wayland) or embedded inside Wisp. |
| SpectreOS Calendar | calendar/ | Native Wisp calendar with local calendars, day/week/month/agenda views, recurring events, reminders, and iCalendar import and export. |
| Bhoo Web Demos | bhoo-web/ | Interactive WebAssembly demo apps: Bhoo component landing & playground, Angular Material side-by-side comparison, single-canvas gallery, and Android XML demos (Chat, Gmail, Contacts, and Wisp launcher web host). |
#SpectreOS Keyboard (spectre-keyboard)
Default standalone on-screen keyboard for SpectreOS, written in Rust and rendered with libbhoo.
#Features
- Pure Rust +
libbhooGLES 3.0 rendering: Crisp vector keycaps, key-press preview popups, long-press alternate character pickers, Shift/Caps Lock indicators, and footer controls at any fractional DPI (wp_fractional_scale_v1+wp_viewporter). - Built-in Layouts:
- English (
us/en-US): 1080×777 measured QWERTY, Shift/Caps Lock, Symbols (?123), Extended Symbols (=\<), long-press top-row digits (1..0), and emoji picker. - Persian (
ir/fa-IR): 11-column measured Persian layout (ض..ج,ش..گ,ظ..چ), dedicated ZWNJ half-space (◀┆▶), Persian digits and punctuation (۱..۰,،,؛,؟,٪), and long-press alternates (آ أ إ ء ٱ,ئ ي ى,ة ۀ هٔ ه,ك,ؤ), shaped with HarfRust/Shabnam vialibbhoo. - Terminal (
terminal): Adds anEsc / Tab / Ctrl / Alt / ← ↓ ↑ →control row above QWERTY (auto-selected onzwp_input_method_v2terminal content purpose). - Emoji Picker: Built-in categorized emoji grid with Unicode grapheme-cluster erase support.
- English (
- Adaptive Touch Model: Faithful Rust port of SpectreOS's Gaussian plateau + English prefix prior touch scorer (
src/touch.rs), automatically disabled on password/PIN fields or whenSPECTRE_ADAPTIVE_TYPING=0. - Standard Wayland OSK Protocols (natively supported by Wisp and other wlroots/Smithay compositors):
zwlr_layer_shell_v1(bottom-anchoredOverlaysurface withexclusive_zoneso Wisp automatically resizes apps above the keyboard, andKeyboardInteractivity::Noneso taps never steal focus).zwp_input_method_v2(activate/deactivate,commit_string,delete_surrounding_text, content purpose/hint, surrounding text).zwp_virtual_keyboard_v1(evdev control keys, modifiers, and dynamic Unicode XKB fallback when notext-input-v3session is active).
- Freedesktop D-Bus Session Service (
docs/freedesktop/dbus/dbus-specification.md):- Primary bus name:
org.spectreos.OSK0 - Object path:
/org/spectreos/OSK0 - Interface:
org.spectreos.OSK0SetVisible(b visible)SetLayout(s layout)("us","ir","terminal")- Property
Visible(b, readwrite, emitsorg.freedesktop.DBus.Properties.PropertiesChanged) - Property
ActiveLayout(s, read, emitsorg.freedesktop.DBus.Properties.PropertiesChanged)
- Implements standard
org.freedesktop.DBus.Peer,org.freedesktop.DBus.Introspectable, andorg.freedesktop.DBus.Properties. - Also exposes a best-effort compatibility alias at
sm.puri.OSK0(/sm/puri/OSK0) unless--no-compat-dbusis passed, so third-party Linux mobile apps interoperate seamlessly.
- Primary bus name:
#Build & Run
# Run unit tests
cargo test
# Build Wayland OSK daemon (default feature: osk)
cargo build --release
# Run Wayland OSK daemon (connects to WAYLAND_DISPLAY and session D-Bus)
./target/release/spectre-keyboard
# Run interactive desktop preview window (requires preview feature)
cargo run --features preview -- --preview#Controlling Visibility over D-Bus
# Show keyboard
gdbus call --session --dest org.spectreos.OSK0 --object-path /org/spectreos/OSK0 \
--method org.spectreos.OSK0.SetVisible true
# Hide keyboard
gdbus call --session --dest org.spectreos.OSK0 --object-path /org/spectreos/OSK0 \
--method org.spectreos.OSK0.SetVisible false
# Switch to Persian layout
gdbus call --session --dest org.spectreos.OSK0 --object-path /org/spectreos/OSK0 \
--method org.spectreos.OSK0.SetLayout ir
# Query current visibility
gdbus call --session --dest org.spectreos.OSK0 --object-path /org/spectreos/OSK0 \
--method org.freedesktop.DBus.Properties.Get org.spectreos.OSK0 Visible#SpectreOS Settings (codes/apps/settings/)
Android 13 / AOSP-style System Settings application for SpectreOS built directly on libbhoo.
#Features
- Full 26-page Android 13 Material You Settings hierarchy with collapsing toolbars, Search container-transform transition, and dual-page Shared-Axis X push/pop animations.
- High-resolution
96×96Material Symbols Outlined icons inside tinted circular category badges, plus vector-illustrated hero figures (Lock Screen Notification preview, System Navigation phone diagram, live Battery & Storage usage cards, and real Linux About Phone hardware telemetry). - Live bidirectional persistence via
~/.config/wisp/settings.confand~/.config/wisp/lock.confso standalonespectre-settingsand Wisp stay synced instantaneously. - Full Freedesktop Notification settings (
Notifications on lock screen: Show all / Hide silent / Hide sensitive content / Don't show;Sensitive notifications;Wake screen for notifications;Hide silent in status bar;Notification dots;Do Not Disturb; liveNotification history; and D-Busorg.freedesktop.Notifications.Notifytest trigger).
#Build & Run
- Library check (used by Wisp &
bhoo-web):cargo check --manifest-path codes/apps/settings/Cargo.toml - Standalone Wayland binary:
cargo run --manifest-path codes/apps/settings/Cargo.toml --release --features wayland --bin spectre-settings - Open directly to Notifications page:
spectre-settings --page notifications
#Files
SpectreOS Files browses local files, XDG user folders, removable mounts, and Trash. It supports recursive search, media and document filters, list and grid layouts, image previews, file details, and sorting by name, modification date, size, or type. Use the item menu to select files, then rename, copy, move, share file links, compress, extract ZIP, or move items to Trash. Trash supports restoring items and permanent deletion with confirmation.
Wisp embeds the Files library and uses its image chooser in Wallpaper & style. Wayland apps and scripts can use the separate executable to choose existing files, choose a directory, or save a file.
cargo build --locked --release --features wayland --manifest-path codes/apps/files/Cargo.toml
spectre-files
spectre-files --open --images --multiple
spectre-files --folder --start ~/Documents
spectre-files --save report.txtInstall the executable on PATH and assets/org.spectreos.Files.desktop in the XDG applications directory
for standalone use. New window opens the current folder in a separate window when the executable
is installed. The chooser prints percent-encoded file URIs, one per line. Cancel returns status 1.
Saving to an existing file requires confirmation. The caller writes the contents after receiving the URI.
The embedded chooser supports native SpectreOS callers and the executable supports Wayland clients. Existing desktop portals remain available to applications that request their toolkit’s system dialog.
#SpectreOS Calendar
Calendar is a native Wisp app in the launcher. Its week timeline, day, month, and agenda workflows take their reference from the open-source Etar calendar shipped on the Galaxy S9. The app uses its own Rust implementation, Wisp theme, and local data store.
- Tap the add button or a time slot to create an event. Choose a calendar, dates and times, recurrence, and a reminder. The start and end date buttons open libbhoo’s Android calendar-mode DatePicker. Use OK to apply the date or Cancel to keep the draft unchanged. The event editor slides and fades in unless reduced motion is enabled. Events can also span multiple days or be marked all-day.
- In Day and Week views, press and hold an empty time slot, then drag up or down to select a time range in 15-minute increments. Release to open the event editor.
- In Week view, drag sideways or scroll horizontally to move through dates continuously. Quick swipes coast to a stop. The arrows move by a week, and vertical scrolling moves through the hours. Only today has a tinted timeline column. The Today button eases back to the current date and time in Day and Week views, or jumps there with reduced motion.
- Tap a recurring event to edit or delete that occurrence or the full series.
- Open the top-left menu to switch between Day, Week, Month, and Agenda. The Material navigation drawer slides in from the left and highlights the current view. Select a view, tap outside, or use Back to close it. The three-dot button opens a bottom sheet with Search, Go to date, calendar management, and iCalendar import and export.
- Create and name local calendars, assign colors, and hide or show each calendar.
- Import or export iCalendar files from the overflow menu. Individual events and their series can be exported from the event details page. Import supports date-only events, named IANA time zones, recurrence rules, exception dates, and display alarms before the start. Imports go to the first visible calendar. Matching event identifiers update the existing copy.
- Wisp posts reminders while the app is closed. The Calendar launcher widget reads upcoming events from the same store.
Data lives in $XDG_DATA_HOME/spectre-calendar/calendar.json, with the standard
~/.local/share fallback. The launcher handles the application window and keyboard.
cargo test --locked --manifest-path codes/apps/calendar/Cargo.tomlCloud-account and CalDAV synchronization, sending invitations, and arbitrary custom iCalendar timezone definitions are outside this implementation.
Etar source and feature reference
#Bhoo component demos
Compare actual Angular Material controls with the actual libbhoo Rust core compiled to WebAssembly. The default site uses Angular Material's familiar documentation structure: component navigation, Overview / API / Examples tabs, and interactive example cards.
The catalog has Bhoo scenes include direct Angular equivalents, related Angular patterns, and explicitly unsupported Angular families. A direct equivalent identifies the family, not equal coverage. The comparison exposes current visual differences; it does not claim parity.
#Run
From the repository root, with Rust/rustup, Python 3 and Node/npm installed (Node 22.22.3+, 24.15+, or 26+):
rustup target add wasm32-unknown-unknown
python3 tools/serve-bhoo-web.pyOpen http://127.0.0.1:8766/. Keep the terminal running. The server listens only on loopback and serves the site directory. Use --port 8767 to change port, or --no-build to reuse the generated site. Stop with Ctrl+C.
The comparison runs locally; it does not embed the remote Angular website or fetch runtime CDN packages/fonts. First build installs exact locked npm dependencies into ignored context/build/bhoo-angular, then creates an approximately 3.17 MB reference bundle. No Angular CLI or framework source checkout is needed. The WASM module remains approximately 316 KB.
For the original Bhoo playground, without Node/npm dependencies:
python3 tools/serve-bhoo-web.py --rust-onlyOpen http://127.0.0.1:8766/playground.html. It has all Rust previews, live state, Standard/Expressive motion settings, code and specification references. Eighteen scenes use initial widget APIs; the rest are experimental compositions.
Build static files without starting the server:
python3 tools/build-bhoo-web.py
# Or only Rust and the original playground:
python3 tools/build-bhoo-web.py --rust-onlyServe site over HTTP. Opening HTML using file:// will not load WASM correctly. After building, context/build/bhoo-angular may be deleted to recover space; the generated site remains usable. A subsequent comparison rebuild reinstalls the locked dependencies.
#Compare
- Choose a component and interact with each implementation independently.
- Switch between Side by side, adjustable Overlay, and Wipe views. Overlay/wipe are inspection modes; return to side by side for interaction.
- Both previews use the same 440 × 640 CSS px viewport. Select 360 or 600 px to inspect another size.
- Disabled, reduced motion, light/dark theme and configurable button variant settings apply to both panes. Reset both restores initial application state.
- Share base colors passes twenty resolved Angular theme colors to Bhoo's existing demo theme. Turn it off to inspect Bhoo's original palette. It does not change widget geometry, text size, alignment or motion, or supply full Material tokens.
- Pairing notes distinguish matching labels/starting values, different fixture content/layout, related patterns and missing equivalents. API displays both fixture sources; Overview links guidelines and references.
Bhoo's button corners, height, label typography/alignment and elevation currently differ visibly from Angular. Motion implementations also have different upstream origins: Angular is an additional reference, not a replacement for the documented Android/Compose/Material Web contracts. Full visual, motion and state parity remain open work.
#Verify
For an offline Delta Chat/webxdc attachment, run
python3 tools/build-bhoo-webxdc.py --no-build after building the full site.
The result is context/dist/bhoo-demo.xdc, including Angular, WASM, licenses and
corresponding source. See webxdc packaging.
Start a compatible local Chromium with --remote-debugging-port=9223, then run sequentially:
node tools/test-bhoo-comparison.mjs
node tools/test-bhoo-web.mjsNode must provide built-in fetch and WebSocket. BHOO_WEB_URL and BHOO_CDP_PORT override defaults. No npm test/image dependencies are required.
Comparison checks exercise both actual runtimes, trusted input, shared settings, disabled blocking, menus/dialogs, viewport alignment, all catalog desktop/mobile routes, navigation and documentation. PNG pairs, difference heatmaps and a standalone evidence report are saved under ignored context/bhoo-comparison. Baselines cover every direct equivalent, with additional interaction-state captures. Whole-pane pixel differences include fixture layout, text metrics and rasterization; they are not component match scores or phase-aligned animation validation.
The original explorer checks actual Rust pointer/keyboard state, editing/file adapters, disabled/reduced states, virtualization, idle scheduling and all catalog routes. See comparison decisions and limitations.
#Implementation and license
The Rust crate depends only on libbhoo with native features disabled. JavaScript paints Rust draw/semantics commands using Canvas 2D; native rendering remains Wayland/EGL/GLES. Browser editing/IME uses bounded HTML adapters, and file selection reads only a filename. Native shaping/IME, canvas assistive technology integration and complete component APIs remain unfinished. See per-family coverage.
Bhoo and the independently written comparison host/fixtures are GPL-3.0-only. The Angular reference has its own MIT/Apache-2.0/0BSD notices. Build output includes the actual runtime inventory and complete license texts under site/angular, plus the GPL license, root notices and compressed corresponding source. Preserve these when distributing the site. Angular/Google do not endorse this independent comparison.