How maidang1/sleipnir works
Sleipnir is a native, GPU-rendered terminal application. Its main workflow is a user opening a window and working in terminal panes: terminal emulation processes PTY activity and renders scrollback, while shell semantics support command facts and navigation. The UI also provides tabs, splits, search, diffs, settings, and an optional browser panel. Optional process plugins extend panels and command actions; a separate optional Run Ledger plugin persists command history. The repository also includes an updater. Some internal wiring was not sampled, so uncertain connections are omitted.
Main entry points: mod.rs App shell · src/lib.rs Terminal view · session.rs Plugin host · src/lib.rs Update service
Components 23
Desktop experience
- App entry
crates/sleipnir/src/main.rs - App shell
crates/sleipnir_ui/src/app_shell/mod.rs - Tabs and splits
crates/sleipnir_ui/src/pane_tree.rs - Search overlays
crates/sleipnir_ui/src/app_shell/query.rs - Diff inspection
crates/sleipnir_ui/src/git_service.rs
Terminal runtime
- Terminal view
crates/terminal/src/lib.rs - Terminal emulation
crates/terminal/src/alacritty.rs - Shell semantics
crates/terminal/src/shell_semantics.rs - Terminal graphics
crates/terminal/src/graphics.rs
Extensions and browser
- Ledger plugin
crates/sleipnir_plugin_runledger/src/main.rs - Plugin host
crates/plugin_host/src/resident/session.rs - Plugin transport
crates/plugin_host/src/resident/transport.rs - Plugin protocol
crates/plugin_protocol/src/v2.rs - Browser panel
crates/sleipnir_ui/src/browser/mod.rs - Browser control
crates/sleipnir_browser_control/src/mcp.rs
Settings and history
- Settings
crates/sleipnir_settings/src/lib.rs - Run ledger
crates/run_ledger/src/ledger.rs
Updates
- Update service
crates/updater/src/lib.rs - Update install
crates/updater/src/install.rs
Other components
- User
- PTY or ConPTY
- Browser agent
- Release service
Connections 23
- User → App entry: launches
README.md - App entry → App shell: opens window
- User → App shell: uses
README.md - App shell → Tabs and splits: manages
crates/sleipnir_ui/src/app_shell/mod.rs - App shell → Search overlays: supports search
crates/sleipnir_ui/src/app_shell/mod.rs - App shell → Diff inspection: supports diff
README.md - App shell → Terminal view: shows terminal
README.md - Terminal view → Terminal emulation: uses
crates/terminal/src/lib.rs - Terminal emulation → PTY or ConPTY: exchanges I/O
README.md - Terminal view → Terminal graphics: renders
crates/terminal/src/lib.rs - Terminal view → Shell semantics: tracks command facts
crates/terminal/src/lib.rs - App shell → Settings: uses configuration
README.md - Shell semantics → Run ledger: records facts
- Ledger plugin → Run ledger: persists history
README.md - App shell → Plugin host: hosts optional plugins
README.md - Plugin host → Plugin transport: uses transport
crates/plugin_host/src/resident/session.rs - Plugin host → Plugin protocol: exchanges messages
- App shell → Browser panel: offers panel
README.md - Browser agent → Browser control: requests tools
README.md - Browser control → Browser panel: controls browser
README.md - User → Update service: checks updates
README.md - Update service → Release service: checks releases
crates/updater/src/lib.rs - Update service → Update install: installs update
crates/updater/src/lib.rs