| Crates.io | brewsweep |
| lib.rs | brewsweep |
| version | 0.1.0-alpha.1 |
| created_at | 2025-06-03 04:24:09.599446+00 |
| updated_at | 2025-06-03 04:24:09.599446+00 |
| description | A fast, terminal-based Homebrew usuage tracker - clean up unused packages with ease |
| homepage | https://github.com/DrudgeRajen/brewsweep |
| repository | https://github.com/DrudgeRajen/brewsweep |
| max_upload_size | |
| id | 1698642 |
| size | 95,337 |
A fast, terminal-based tool for managing your Homebrew packages by tracking their usage and helping you identify packages that can be safely removed. Built with Rust and ratatui for a responsive TUI experience.
BrewSweep scans your installed Homebrew packages (both formulas and casks) and displays them sorted by last access time. This makes it easy to identify:
The tool provides a clean, interactive interface for viewing package details and safely removing unused packages to free up disk space. Sweep away the clutter and keep only what you actually use!
cargo install brewsweep
# Clone the repository
git clone https://github.com/DrudgeRajen/brewsweep.git
cd brewsweep
# Build and install
cargo build --release
# Run the application
./target/release/brewsweep
# Install directly from git
cargo install --git https://github.com/DrudgeRajen/brewsweep.git
Start the application
brewsweep
Scan packages
Space to start scanning your Homebrew installationBrowse packages
โ/โ arrow keys to navigate the package listView details
Enter on any package to see detailed informationDelete packages
d to delete a selected packagey or cancel with nbrew uninstall command| Key | Action |
|---|---|
Space |
Start package scan |
โ/โ |
Navigate up/down |
โ/โ |
Navigate left/right |
Enter |
View package details |
d |
Delete selected package |
r |
Refresh (re-scan packages) |
Shift + โ |
Next color theme |
Shift + โ |
Previous color theme |
Esc |
Quit application |
| Key | Action |
|---|---|
Enter/Space |
Back to table |
d |
Delete this package |
Esc |
Quit application |
| Key | Action |
|---|---|
y/Enter |
Confirm deletion |
n/Space |
Cancel deletion |
Esc |
Quit application |
The tool displays packages with the following information:
Packages are automatically sorted by usage to prioritize cleanup candidates:
Never accessed packages (top of list)
Oldest accessed packages
Recently accessed packages (bottom of list)
git clone https://github.com/DrudgeRajen/brewsweep.git
cd brewsweep
cargo build --release
This project uses the following Rust crates:
ratatui - Terminal user interface
crossterm - Cross-platform terminal handling
color-eyre - Error handling and reporting
unicode-width - Text width calculation
Contributions are welcome! Please feel free to submit issues and pull requests.
git clone https://github.com/DrudgeRajen/brewsweep.git
cd brewsweep
cargo build
cargo run
cargo test
This project uses standard Rust formatting:
cargo fmt
cargo clippy
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this tool useful, please consider:
Happy Homebrew sweeping! ๐งนโจ
Keep your system lean and your packages meaningful.