BatStat π¦π
A terminal user interface (TUI) tool for monitoring, analyzing, and managing network connections in real time.
Table of Contents
Main Interface
The main view provides a two-pane layout:
- Left Pane: Live-updating list of connections
- Right Pane: Detailed information for the selected connection
This design makes it easy to monitor and analyze network activity efficiently.
(screenshot or asciinema gif here would really help π)
Features
π΄ Live Monitoring
- Auto-refreshes the connection list every few seconds
- Real-time filtering (
/ to filter by process name, PID, status, or address)
- Color-coded connection states (
ESTABLISHED, LISTEN, CLOSE_WAIT, etc.)
π Two-Pane Layout
- View all connections and details simultaneously
- Column sorting:
- Press
s β cycle through sortable columns
- Press
S β toggle ascending/descending order
βοΈ Process Management
k β Gracefully kill process for selected connection
K β Force kill with SIGKILL
π Network Diagnostics
p β Ping remote address in a live modal overlay
π Export to CSV
e β Export visible connections to BatStat_export.csv
β In-App Help Panel
h β Toggle a detailed, colorful panel with all keybindings
Installation
Requires Go 1.21+.
Latest verison:
go install github.com/MrBrooks89/BatStat/cmd/BatStat@latest
Or Specific version:
go install github.com/MrBrooks89/BatStat/cmd/BatStat@v0.1.0
Make sure your GOPATH/bin is in your $PATH:
π Go Wiki: Setting GOPATH
Usage
Run BatStat:
BatStat
Press h at any time for a full list of keybindings.
Contributing
PRs are welcome!
- Open an issue for bugs or feature requests
- Fork and submit a pull request
License
MIT License β see LICENSE.