How lms0806/tracedeck works
TraceDeck is a Tauri desktop workspace for SSH server sessions. Users save or select a profile, open a server tab, browse and manage remote files, preview and follow logs, and use an ANSI-capable terminal; a separate analyzer parses tracing records and aggregates them by level and target. The graph includes the documented system-status stream and workspace persistence. Sampled frontend calls and Tauri command registration support the UI-to-command links; where implementation details were not excerpted, links to backend subsystems are documented or left out.
Main entry points: lib.rs Tauri command router · Browser.tsx Remote browser · useTailStream.ts Log preview and tail · main.tsx Session controls
Components 24
Session workspace
- Session controls
src/main.tsx - Profile sidebar
src/components/app/Sidebar.tsx - Server tabs
src/components/app/TabBar.tsx - Workspace persistence
src/app/workspace.ts
Remote operations
- Remote browser
src/components/Browser.tsx - Directory navigation
src/components/browser/useRemoteDirectory.ts - File listing
src/components/browser/FileList.tsx - File operations
src-tauri/src/remote.rs
Logs and status
- Log preview and tail
src/components/browser/useTailStream.ts - Log dock
src/components/browser/LogDock.tsx - Tracing analyzer
src/main.tsx - Tracing parser
src/logging/tracing.ts - System status stream
src/components/browser/RemoteStatus.tsx
Terminal access
- Terminal sessions
src/components/browser/useTerminal.ts - Terminal dock
src/components/browser/TerminalDock.tsx
Tauri and SSH backend
- SFTP operations
src-tauri/core/src/sftp.rs - SSH connection
src-tauri/core/src/ssh.rs - Saved profiles
src-tauri/src/profiles.rs - Remote log services
src-tauri/core/src/logs.rs - PTY terminal
src-tauri/core/src/terminal.rs - Tauri command router
src-tauri/src/lib.rs
Other components
- Desktop user
- OpenSSH client
- Remote Linux server
Connections 34
- Desktop user → Session controls: opens sessions
README.md - Session controls → Profile sidebar: manages profiles
src/main.tsx - Session controls → Server tabs: manages tabs
src/main.tsx - Session controls → Workspace persistence: loads and saves
src/main.tsx - Session controls → Tracing parser: parses logs
src/main.tsx - Desktop user → Remote browser: uses server workspace
README.md - Remote browser → Directory navigation: loads directories
src/components/Browser.tsx - Remote browser → File listing: renders entries
src/components/Browser.tsx - Directory navigation → File operations: lists directory
src/components/browser/useRemoteDirectory.ts - Remote browser → File operations: manages entries
src/components/Browser.tsx - File operations → Tauri command router: routes commands
src-tauri/src/lib.rs - File operations → SFTP operations: uses SFTP
- Desktop user → Log preview and tail: opens log files
README.md - Remote browser → Log preview and tail: opens selected files
README.md - Log preview and tail → Log dock: supplies log tabs
src/components/browser/LogDock.tsx - Log preview and tail → Tauri command router: invokes log commands
src/components/browser/useTailStream.ts - Log dock → Log preview and tail: renders log streams
src/components/browser/LogDock.tsx - Log preview and tail → Remote log services: starts remote tail
README.md - Desktop user → Tracing analyzer: analyzes log files
README.md - Tracing analyzer → Tracing parser: parses records
src/main.tsx - Desktop user → System status stream: views status
README.md - Remote browser → System status stream: shows remote status
src/components/Browser.tsx - Desktop user → Terminal dock: opens terminal
README.md - Terminal dock → Terminal sessions: renders sessions
src/components/browser/TerminalDock.tsx - Terminal sessions → Tauri command router: starts and writes
src/components/browser/useTerminal.ts - Terminal sessions → Tauri command router: stops sessions
src/components/browser/useTerminal.ts - Tauri command router → PTY terminal: dispatches terminal commands
- Tauri command router → Saved profiles: dispatches profile commands
src-tauri/src/lib.rs - Tauri command router → File operations: dispatches remote commands
src-tauri/src/lib.rs - SSH connection → OpenSSH client: builds SSH commands
src-tauri/core/src/ssh.rs - SFTP operations → OpenSSH client: runs SFTP commands
src-tauri/core/src/sftp.rs - OpenSSH client → Remote Linux server: connects over SSH
README.md - Remote log services → Remote Linux server: reads and tails logs
README.md - PTY terminal → Remote Linux server: opens remote PTY
README.md