Skip to content

txlcodes/gocli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocli

Real-time system monitor for the terminal.

Go License


A terminal dashboard that monitors CPU, memory, disk, network, and processes — with live sparkline charts, color-coded alerts, and a built-in process killer. Single binary, zero runtime dependencies.

Features

  • Live Dashboard — CPU sparkline chart, memory gauge, disk usage, per-core grid
  • Process Manager — Top 30 processes sorted by CPU/MEM/name, kill with one key
  • Network Monitor — Upload/download rates, per-interface breakdown
  • Alert System — Auto-triggers when CPU >75%, memory >90%, or disk >90%
  • JSON Export — Full system snapshot to snapshot.json
  • Keyboard Driven — Tab switching, process scrolling, no mouse needed

Install & Run

git clone https://github.com/txlcodes/gocli.git
cd gocli
go build -o gocli .
./gocli

Controls

Key Action
1 Dashboard
2 Processes
3 Network
4 Alerts
j/k Navigate processes
s Cycle sort (CPU → MEM → name)
x Kill selected process
e Export to JSON
q Quit

Tech

Export

Press e to dump a snapshot:

{
  "timestamp": "2026-06-03T15:09:00+05:00",
  "cpu": { "total_percent": 23.4, "per_core": [12.1, 34.5] },
  "memory": { "used_percent": 67.2, "used": "10.8 GB", "total": "16.0 GB" },
  "disk": { "used_percent": 71.3, "free": "137.9 GB" },
  "network": { "send_rate": "1.2 MB/s", "recv_rate": "3.4 MB/s" },
  "top_processes": [{ "pid": 1234, "name": "chrome", "cpu_percent": 12.3 }]
}

License

MIT

About

Real-time system monitor for the terminal. Live CPU charts, process killer, network tracking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages