How sta-cloud-dev/sta-edge works
STA Proxy Manager is a Windows desktop app for administering Caddy servers over SSH. The main workflow is to manage a server connection, inspect its host and Caddy state, edit and validate configuration, then apply changes with backup and recovery support. Separate capabilities cover Certbot, background tasks, SSH keys, local/cloud workspaces, and signed updates. The graph follows documented capabilities and visible references; several frontend-to-command links and unsampled subsystem details are left unasserted.
Main entry points: App.tsx Application shell · ssh.rs SSH sessions and inventory · api.ts Tauri API client · management.rs Management operations
Components 24
Desktop interface
- Application shell
windows/src/App.tsx - Server management UI
windows/src/components/Management.tsx - Workspace UI
windows/src/components/Workspace.tsx - Update UI
windows/src/components/Updates.tsx - Connection forms
windows/src/components/Forms.tsx - Caddy editor
windows/src/components/CaddyEditor.tsx - Tauri API client
windows/src/services/api.ts
Command and management
- Tauri commands
windows/src-tauri/src/commands.rs - Management operations
windows/src-tauri/src/management.rs - Domain models
windows/src-tauri/src/models.rs
SSH and server access
- SSH sessions and inventory
windows/src-tauri/src/ssh.rs - Remote operations
windows/src-tauri/src/remote.rs - Validation and protection
windows/src-tauri/src/security.rs
Configuration and recovery
- Caddy parser
windows/src-tauri/src/caddy_parser.rs - Config planning
windows/src-tauri/src/configuration.rs - Certbot operations
windows/src-tauri/src/certbot.rs - Remote tasks and backups
windows/src-tauri/src/tasks.rs
Workspace and state
- Local state store
windows/src-tauri/src/database.rs - Workspace sync
windows/src-tauri/src/workspace.rs - Update service
windows/src-tauri/src/updates.rs
Other components
- Administrator
- Managed Linux host
- Cloud database
- GitHub Releases
Connections 29
- Administrator → Application shell: uses
README.md - Application shell → Server management UI: renders
windows/src/App.tsx - Application shell → Workspace UI: renders
windows/src/App.tsx - Application shell → Update UI: renders
windows/src/App.tsx - Application shell → Tauri API client: invokes
windows/src/App.tsx - Server management UI → Tauri API client: invokes
windows/src/components/Management.tsx - Server management UI → Caddy editor: renders
windows/src/components/Management.tsx - Server management UI → Connection forms: uses
windows/src/components/Management.tsx - Workspace UI → Tauri API client: invokes
windows/src/components/Workspace.tsx - Update UI → Tauri API client: invokes
windows/src/components/Updates.tsx - Tauri API client → Tauri commands: dispatches
- Tauri commands → Local state store: reads and writes
windows/src-tauri/src/commands.rs - Tauri commands → SSH sessions and inventory: uses
windows/src-tauri/src/commands.rs - Tauri commands → Validation and protection: validates
windows/src-tauri/src/commands.rs - Management operations → Remote operations: uses
windows/src-tauri/src/management.rs - Management operations → Config planning: plans
windows/src-tauri/src/management.rs - Management operations → Remote tasks and backups: launches
windows/src-tauri/src/management.rs - Management operations → Certbot operations: delegates
windows/src-tauri/src/management.rs - SSH sessions and inventory → Local state store: checks host keys
windows/src-tauri/src/ssh.rs - SSH sessions and inventory → Validation and protection: uses
windows/src-tauri/src/ssh.rs - SSH sessions and inventory → Managed Linux host: connects
README.md - Remote operations → SSH sessions and inventory: uses
windows/src-tauri/src/remote.rs - Config planning → Caddy parser: parses config
- Remote tasks and backups → Config planning: applies plans
windows/src-tauri/src/tasks.rs - Local state store → Validation and protection: protects credentials
windows/src-tauri/src/database.rs - Workspace sync → Local state store: uses local state
windows/src-tauri/src/workspace.rs - Workspace sync → Cloud database: syncs payload
README.md - Update UI → Update service: requests updates
- Update service → GitHub Releases: checks releases
README.md