Skip to content

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.

Server Monitor
Generation mode
1. Generate the app
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)"
2. Launch the generated app
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 ​

AreaProvidedDetails
SSHSSH 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
CredentialsKeeps 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 executionA 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
PrivilegeCommands 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
OperationsOperation 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
StorageSQLite for server profiles, pinned host keys and operation history, with migrations.Storage
UI shellOne 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 integrationTyped 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
Generatorossiframe-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 assistantOptional 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.Could start fromServer MonitorServer Log ExplorerCustom 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.Could start fromSSH WorkspaceCustom 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.Could start fromPHP Hosting ManagerCustom 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.Could start fromSecurity AuditorCustom 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.Could start fromDatabase GatewayPHP Hosting ManagerCustom 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.Could start fromServer MonitorCustom 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.Could start fromPHP Hosting ManagerCustom 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.Could start fromSecurity AuditorCustom 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.Could start fromServer MonitorCustom 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.Could start fromServer MonitorCustom 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.Could start fromServer MonitorCustom 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.Could start fromSecurity AuditorServer Log ExplorerCustom 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.

ModuleDepends onOperationsCommandsUIOpt-in flag
linux-inventorynoneEight: server-info, services, listening-sockets, software, service-status, service-logs, nginx-error-log, http-check0Inventory pagenone
linux-auditlinux-inventoryEight scan steps, in order: resources, services, network, software, ssh, firewall, updates, certificates2: 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, Reportsnone
linux-monitoringnonesample, processes0Monitoring pagenone
linux-logslinux-inventoryjournal, file1: logs_saveLogs pagenone
ai-assistantlinux-inventorynone10 ai_*Assistant page and buttonsnone (bring your own key)
ubuntu-provisioninglinux-inventorynone. Runs root commands through sudo -n in approved plans10 provision_* (from ossiframe-desktop)Provisioning pages--enable-provisioning
app-deployubuntu-provisioningnone. Creates, deploys, rolls back and removes applications through approved plans14 app_* (feature tauri)Applications page--enable-app-deploy and --enable-provisioning
ssh-terminalnonenone6 terminal_*Terminal page--enable-terminal
ssh-filesystemnonenone8 read files_*, plus 5 write files_* with --enable-file-writeFiles page--enable-files
ssh-tunnelnonenone6 tunnel_*Tunnels page--enable-tunnels
ports (example)nonelistening-tcp0Ports pagenone. 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 the provisioning feature of ossiframe-desktop, registers the module, calls provisioning::setup and lists the ten provision_* commands. Without it, run_operation rejects Privilege::Root and Privilege::RunAs.
  • App deployment (--enable-app-deploy with --enable-provisioning): registers the app_* commands behind the module's tauri feature 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 through Privilege::RunAs.
  • Terminal (--enable-terminal): enables the module's tauri feature and the terminal transport, and calls ossiframe_mod_ssh_terminal::commands::setup after tauri_support::setup. ADR-0008.
  • Files (--enable-files): the eight read commands. --enable-file-write (requires --enable-files) adds the five write commands and the write feature. ADR-0009.
  • Tunnels (--enable-tunnels): ossiframe_desktop::tunnels::Tunnels (feature tunnels) works without the module's UI. ADR-0010.
  • AI assistant (ai-assistant, no flag): the app passes an explicit Vec<ToolSpec> to ossiframe_mod_ai_assistant::commands::setup(app, tools) after tauri_support::setup. Each ToolSpec names a registered (module, operation) pair, marks it sensitive or not and carries an argument schema. The records feature, 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.

Released under the MIT License.