Modules
A module is a trusted Rust crate, with an optional UI folder, that an app registers at compile time. It depends only on Core and the modules its manifest names (Architecture).
Recipes
Each recipe combines existing modules and generates an app with ossiframe-cli from an Ossiframe checkout (Getting started). Modules that run commands as root, open a shell, move files or forward ports need an opt-in flag. Modules shows the least verified module's status from Compatibility; As generated shows whether an app from the recipe has run on a server.
cargo run -p ossiframe-cli -- new ~/server-monitor --name "Server Monitor" --identifier dev.example.servermonitor --modules linux-inventory,linux-monitoring --rev "$(git rev-parse HEAD)"cd ~/server-monitor && pnpm install && pnpm tauri dev Run both from an Ossiframe checkout, and change the folder after new if you like. Launching needs the prerequisites in Getting started.
Modules: linux-inventory ran on a real server, and Doctor's live metrics and history did too. The process list, pause and interval changes did not.
As a generated app: No app generated from this recipe has run on a server. The command passes a dry run and a generation into a temporary folder.
Nothing here fits? Write your own module. The custom module tutorial starts from ossiframe-cli new-module and an example of 77 lines.
Capabilities
| Area | Provided | Details |
|---|---|---|
| SSH | SSH key login (password login is implemented but not verified). The host key is checked during the key exchange: an unknown or changed key stops the connection before any credential or command is sent, until you trust it. | Host keys |
| Credentials | Keeps passwords, key passphrases and AI keys in the OS keychain, never in the database, logs or IPC responses. The macOS login keychain is the only backend so far. The server form lists the private keys it finds in ~/.ssh by file name. | Credentials |
| Command execution | A command is a program, fixed arguments, a privilege and a timeout. Core quotes every word, sends secrets over stdin and not on the command line, and returns bounded, redacted output. | Request path |
| Privilege | Commands run as the SSH user, as root through sudo -n, or as a named user. A read-only app gets an executor that refuses everything except the SSH user. Privileged operation management comes only from the opt-in ubuntu-provisioning and app-deploy modules. | Doctor guarantees |
| Operations | Operation states, approval of a plan before it runs, locking, and an "unknown outcome" state that is never retried automatically. The provisioning and deployment modules use it. | Operation engine |
| Storage | SQLite for server profiles, pinned host keys and operation history, with migrations. | Storage |
| UI shell | One component, ServerWorkspace, gives a server list, the add and edit form, host key and credential dialogs, navigation built from your module pages, and light and dark themes. The shared UI also has tables, dialogs, badges, meters and charts. | Module UI composition |
| Tauri integration | Typed IPC wrappers, a strict content security policy and minimal capabilities. The generator writes each app's command list and capability file from the modules you choose. | Trust boundaries |
| Generator | ossiframe-cli creates an app, adds and removes modules, resolves their dependencies, and keeps privileged modules out of the build unless you pass their flag. | CLI reference |
| AI assistant | Optional and bring-your-own-key, with consent before anything is sent and redaction of what is. Not verified against a provider yet. | AI assistant data flow |
Custom modules
Ideas, not recipes: none is implemented, and each needs a module you write. Start with ossiframe-cli new-module <project> --id <id> --name "<Name>" and read Custom modules for the contract and safety rules. Build read-only operations first; anything that changes a server needs its own opt-in flag and review.
- Docker ManagerConceptInspect containers, images and container logs on a server.Custom work: A module that runs fixed, read-only Docker commands and parses their output. Starting, stopping or removing containers would be a separate module behind its own opt-in flag.
- Kubernetes DesktopConceptBrowse clusters, workloads and events.Custom work: A module that reads cluster state, for example through a server that already has cluster access. How to authenticate to clusters is an open design question.
- WordPress ManagerConceptCheck and update WordPress sites on an Ubuntu server.Custom work: WordPress-specific checks and steps. Application deployment supports Laravel, generic PHP and static sites only, not WordPress.
- Backup ManagerConceptShow backup status and verify that restore points exist.Custom work: A module for your backup tool, read-only first. Anything that writes or restores needs its own opt-in flag and review.
- Database ManagerConceptInspect and administer databases.Custom work: A database module with typed operations and careful secret handling. Database Gateway only forwards a port. It does not browse or change data.
- GPU Server ManagerConceptShow GPU load, memory use and running jobs.Custom work: A read-only module that parses the GPU vendor's tool output. Linux monitoring does not cover GPUs.
- Node.js/Python Hosting ManagerConceptDeploy and run Node.js or Python applications.Custom work: New modules for runtimes, process management and web server configuration. Application deployment supports Laravel, generic PHP and static sites only.
First-module ideas
Each needs one or two read-only operations and a page; whether the SSH user can read the data depends on the server. The ports example module (examples/custom-module) is a complete read-only module to copy, and --with-example-module adds it to a generated app.
- Pending Package ListConceptList the packages behind the pending update count.Custom work: Linux audit already reports how many security updates are pending, how old the update data is and whether a reboot is required. This would add the package names and versions: one read-only operation and a table page. Check what your servers let the SSH user read.
- Scheduled Jobs ViewerConceptShow cron entries and systemd timers with their next run.Custom work: Read-only operations for the cron files and timers the SSH user can read, parsed into one list. Linux inventory lists services, not timers or cron.
- Disk Usage ExplorerConceptFind which directories use the most disk space.Custom work: A bounded read-only operation with a timeout, because scanning a large disk is slow, and a page that sorts the result. Monitoring shows filesystem use, not directories.
- Clock CheckerConceptCheck the time and time synchronization status of each server.Custom work: One read-only operation and a status card. No existing module checks the clock.
- Recent Logins ViewerConceptShow recent logins to a server as a table.Custom work: A read-only operation over the login records the SSH user can read. Server Log Explorer can already read authentication logs the SSH user may read; this would parse login records into rows. Show only what you parsed.
Module catalog
Checked against cargo run -q -p ossiframe-cli -- list --json. Unless stated otherwise, operations take no arguments (pass null) and run as the SSH user, without sudo, through the ReadOnly executor. "Commands" are Tauri commands in the app's handler, build manifest and capability file.
| Module | Depends on | Operations | Commands | UI | Opt-in flag |
|---|---|---|---|---|---|
linux-inventory | none | Eight: server-info, services, listening-sockets, software, service-status, service-logs, nginx-error-log, http-check | 0 | Inventory page | none |
linux-audit | linux-inventory | Eight scan steps, in order: resources, services, network, software, ssh, firewall, updates, certificates | 2: audit_build_report, audit_save_report (save dialog opened by Rust) | Combined Overview (replaces the inventory page, keeps id linux-inventory), Diagnostics, Security, Network, Services, Software, Reports | none |
linux-monitoring | none | sample, processes | 0 | Monitoring page | none |
linux-logs | linux-inventory | journal, file | 1: logs_save | Logs page | none |
ai-assistant | linux-inventory | none | 10 ai_* | Assistant page and buttons | none (bring your own key) |
ubuntu-provisioning | linux-inventory | none. Runs root commands through sudo -n in approved plans | 10 provision_* (from ossiframe-desktop) | Provisioning pages | --enable-provisioning |
app-deploy | ubuntu-provisioning | none. Creates, deploys, rolls back and removes applications through approved plans | 14 app_* (feature tauri) | Applications page | --enable-app-deploy and --enable-provisioning |
ssh-terminal | none | none | 6 terminal_* | Terminal page | --enable-terminal |
ssh-filesystem | none | none | 8 read files_*, plus 5 write files_* with --enable-file-write | Files page | --enable-files |
ssh-tunnel | none | none | 6 tunnel_* | Tunnels page | --enable-tunnels |
ports (example) | none | listening-tcp | 0 | Ports page | none. Added with --with-example-module |
Dependencies are added automatically. Presets never add opt-in modules. ssh-terminal, ssh-filesystem and ssh-tunnel are never part of Doctor. Verification status: compatibility.md, known-limitations.md.
Opt-in modules in generated apps
The generator needs the matching flag and refuses a flag without its module. Presets never imply a flag, and Doctor includes none of these modules. Guarantees: security.md. Wiring:
- Provisioning (
--enable-provisioning): enables theprovisioningfeature ofossiframe-desktop, registers the module, callsprovisioning::setupand lists the tenprovision_*commands. Without it,run_operationrejectsPrivilege::RootandPrivilege::RunAs. - App deployment (
--enable-app-deploywith--enable-provisioning): registers theapp_*commands behind the module'staurifeature and the provisioning engine with the application-aware provisioner, so an app has one engine and one activity registry. App code, Composer and Artisan run as the app's Linux user throughPrivilege::RunAs. - Terminal (
--enable-terminal): enables the module'staurifeature and theterminaltransport, and callsossiframe_mod_ssh_terminal::commands::setupaftertauri_support::setup. ADR-0008. - Files (
--enable-files): the eight read commands.--enable-file-write(requires--enable-files) adds the five write commands and thewritefeature. ADR-0009. - Tunnels (
--enable-tunnels):ossiframe_desktop::tunnels::Tunnels(featuretunnels) works without the module's UI. ADR-0010. - AI assistant (
ai-assistant, no flag): the app passes an explicitVec<ToolSpec>toossiframe_mod_ai_assistant::commands::setup(app, tools)aftertauri_support::setup. EachToolSpecnames a registered(module, operation)pair, marks it sensitive or not and carries an argument schema. Therecordsfeature, which lets "Diagnose failure" read operation records, is enabled only with--enable-provisioning. Data sent to the provider: security.md.
Commands per module: the module catalog. Verification status: known-limitations.md.
