Skip to main content

Crate ttop

Crate ttop 

Source
Expand description

ttop v2: Terminal Top - Sovereign AI Stack System Monitor

Built on presentar-terminal (no ratatui dependency). Zero-allocation steady-state rendering via CellBuffer + DiffRenderer.

§Architecture

ttop binary
  └── presentar-terminal::ptop (panels, app, ui)
        └── presentar-terminal::direct (CellBuffer, DiffRenderer)
              └── crossterm (terminal I/O)

§Sovereign Stack

All rendering is PAIML-owned. The only external terminal dependency is crossterm. Contracts enforced via provable-contracts YAML definitions in contracts/.

Modules§

ui
UI layout and rendering for ptop.

Structs§

App
CellBuffer
Buffer of terminal cells with dirty tracking.
DiffRenderer
Differential renderer that minimizes terminal I/O.
MetricsSnapshot
Metrics snapshot sent from background collector to main thread. Contains only the data needed for rendering - no heavy objects.
PtopConfig
Main ptop configuration

Enums§

ColorMode
Terminal color capability mode.
PanelType
Panel types that can be configured