1 stable release
Uses new Rust 2024
new 1.0.0 | May 24, 2025 |
---|
#1024 in Network programming
150KB
2.5K
SLoC
Harbor Sweep TUI
Cross-platform TUI (terminal user interface) tool to identify and manage active ports and their processes.
Features
- Real-time Port Monitoring: Automatically refreshes the list of open ports and their associated processes.
- Search & Filter: Instantly filter by PID, port number, or process name using the built-in search bar.
- Sortable Columns: Press number keys (
1
–4
) to sort by Port, PID, Name, or Path, and toggle sort direction with a keypress. - Interactive TUI: Keyboard-driven interface with Vim-style navigation.
- Kill Processes: Safely terminate processes holding unwanted ports.
- Color Themes: Switch between multiple Tailwind-inspired palettes.
- Help Popup: On-demand keybindings reference.
🔧 Once Started
🧭 Navigation
j
/Down Arrow
: Move selection downk
/Up Arrow
: Move selection upPageUp
/PageDown
: Scroll one pageShift+PageUp
/Shift+PageDown
: Jump to first or last row
🔍 Search
Ctrl+F
: Toggle search bare
: Enter editing mode (focus search field)- Type: Filter by PID, port, or process name
Backspace
: Delete from searchLeft
/Right
: Move cursor in inputEnter
/Up
/Down
: Submit search + move selectionEsc
: Exit search editing
🧨 Kill Process
k
: Open kill-process confirmation for selected row←
/→
: Select “Kill” or “Cancel”Enter
: Confirm kill or cancelEsc
: Cancel/abort
🧰 Sorting
1
: Sort by Port (press again to toggle ▲/▼)2
: Sort by PID (press again to toggle ▲/▼)3
: Sort by Process Name (press again to toggle ▲/▼)4
: Sort by Process Path (press again to toggle ▲/▼)
🎨 Themes
Shift+Right
/l
: Cycle to next color themeShift+Left
/h
: Cycle to previous color theme
❓ Help
F1
or?
: Toggle keybindings popupUp
/Down
: Navigate helpPageUp
/PageDown
: Page through helpShift+PageUp
/Shift+PageDown
: Jump to top/bottom of helpEsc
,F1
,?
: Exit help view
🚪 Exit
q
,Esc
, orCtrl+C
: Quit the application
Configuration
No external configuration files are required—everything runs out of the box.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Dependencies
~139MB
~2M SLoC