How kiammota/egotop works
egotop is a Lua-scriptable animated Linux/Hyprland terminal dashboard. Its main workflow loads user configuration, collects live system telemetry, composes a configurable layout and effects, then renders an interactive terminal UI; command mode supports live changes. The graph includes major documented Lua, animation, theme, telemetry, and command capabilities. Some subsystem links are documented rather than verified in sampled implementation, so those use README evidence; unsampled internals are not asserted.
Main entry points: app.rs Interactive app · pipeline.rs Resource pipeline · renderer.rs Terminal renderer · timeline.rs Animation timeline
Components 24
Startup and commands
- CLI
src/cli/mod.rs - Interactive app
src/app.rs - Command mode
src/command/parser.rs
Configuration and scripting
- Config loading
src/config/loader.rs - Config schema
src/config/schema.rs - Config paths
src/config/paths.rs - Lua API and built-ins
src/lua/api.rs - Lua canvas
src/lua/canvas.rs - Lua animation runtime
src/lua/animation_runtime.rs - Animation packages
src/config/animation_loader.rs
Runtime and telemetry
- Runtime coordinator
src/runtime/coordinator.rs - Resource pipeline
src/runtime/pipeline.rs - System telemetry
src/system/mod.rs
Animation and display
- Container layout
src/ui/layout.rs - UI components
src/ui/components.rs - Dashboard widgets
src/ui/widgets.rs - Terminal renderer
src/terminal/renderer.rs - Themes and borders
src/ui/theme.rs - Background effects
src/animation/backgrounds.rs - Animation geometry
src/animation/geometry.rs - Animation scenes
src/animation/scene.rs - Text effects
src/animation/text_fx.rs - Animation timeline
src/animation/timeline.rs
Other components
- Dashboard user
Connections 32
- Dashboard user → CLI: starts
- CLI → Config loading: loads config
src/cli/mod.rs - CLI → Interactive app: launches
src/cli/mod.rs - Interactive app → Command mode: parses commands
src/app.rs - Interactive app → Runtime coordinator: coordinates runtime
src/app.rs - Config loading → Config schema: validates
src/config/mod.rs - Config loading → Config paths: resolves paths
src/config/mod.rs - Interactive app → Lua API and built-ins: loads scripting
src/app.rs - Lua API and built-ins → Lua canvas: exposes canvas
src/lua/mod.rs - Lua API and built-ins → Lua animation runtime: provides animation
src/lua/mod.rs - Lua animation runtime → Animation geometry: uses geometry
src/lua/animation_runtime.rs - Lua animation runtime → Animation packages: loads definitions
src/lua/animation_runtime.rs - Runtime coordinator → Resource pipeline: runs pipeline
src/runtime/coordinator.rs - Runtime coordinator → System telemetry: samples telemetry
- Resource pipeline → Config schema: validates resources
src/runtime/pipeline.rs - Resource pipeline → Themes and borders: resolves themes
src/runtime/pipeline.rs - Resource pipeline → Container layout: configures layout
src/runtime/pipeline.rs - Resource pipeline → Animation packages: loads animations
src/runtime/pipeline.rs - Terminal renderer → Interactive app: renders app
src/app.rs - Terminal renderer → Dashboard widgets: draws widgets
src/terminal/renderer.rs - Terminal renderer → UI components: renders components
src/terminal/renderer.rs - Dashboard widgets → System telemetry: reads snapshots
src/ui/widgets.rs - Dashboard widgets → Container layout: renders containers
src/ui/widgets.rs - UI components → Container layout: uses container model
src/ui/components.rs - Terminal renderer → Themes and borders: applies theme
src/terminal/renderer.rs - Interactive app → Background effects: updates effects
src/app.rs - Background effects → Themes and borders: uses theme
src/animation/backgrounds.rs - Animation timeline → Animation scenes: evaluates tracks
src/animation/timeline.rs - Animation timeline → Animation geometry: uses geometry
src/animation/timeline.rs - Animation timeline → Text effects: applies text effects
src/animation/timeline.rs - Command mode → Interactive app: drives changes
src/app.rs - Dashboard user → System telemetry: views telemetry