BatStat

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT

README ΒΆ

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.

Directories ΒΆ

Path Synopsis
cmd
BatStat command
internal
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL