rip 1.0.1
rip: ^1.0.1 copied to clipboard
Fast, safe, and beautiful CLI & TUI cleanup tool for macOS, Windows, and Linux (Review, Inspect, Purge).
RIP โ Review, Inspect, Purge (rip) #
Fast, safe, and beautiful CLI & TUI cleanup tool for macOS, Windows, and Linux, written in Dart with Nocterm.
rip is a full-fledged system and software project cleanup tool. Inspired by Mole, rip scans and safely reclaims gigabytes of disk space while guaranteeing system safety through strict path validation and user whitelist protections.
๐ Features #
- ๐ฅ๏ธ Interactive Nocterm TUI: Sleek 2-pane terminal user interface with compact borders, powered by
nocterm: ^0.8.0. - โก Concurrent Parallel Scanning: Scans all 7 categories concurrently in parallel via
Future.waitfor maximum speed. - ๐ก Live Streaming & Animated Spinner: Real-time streaming item discovery with live jumping item counts, byte sizes, and smooth braille dot spinners (
โ ). - ๐ก๏ธ Safety-First Design: Guarantees zero accidental deletions of active user documents, code, or OS binaries.
Trash & DownloadsandLeftoversare safely un-checked by default. - โ๏ธ System & App Caches: Reclaims caches from VS Code, Xcode, Zed, Slack, Discord, Telegram, Zoom, Spotify, Chrome, Safari, Firefox, Arc, etc.
- ๐ ๏ธ Developer Tooling: Cleans Xcode DerivedData, Simulator logs, Rust/Cargo caches, Go build caches, npm/yarn/pnpm/Bun caches, Pip/Poetry caches, CocoaPods, and Maven/Gradle repositories.
- ๐ฆ Project Artifact Purge: Deep-scans code directories for heavy build folders (
node_modules,target,build,.dart_tool,dist,.next,.nuxt,venv, etc.). - ๐๏ธ Trash & Installers: Cleans system Trash and removes leftover installer files (
.dmg,.pkg,.iso,.msi,.deb,.rpm,.AppImage) in Downloads. - ๐งน Uninstalled App Leftovers: Scans for orphaned configuration and cache folders left behind by uninstalled applications.
- ๐ก๏ธ Whitelist Protection: Exclude custom paths or directories persistently (
~/.sofluffy/rip/whitelist.json). - ๐ Operation Audit History: Records all cleanup runs with size saved breakdown (
~/.sofluffy/rip/history.json).
๐ฅ Installation & Running #
Run directly via Dart #
dart run bin/rip.dart # Launch Nocterm Interactive TUI
Global Install #
dart pub global activate --source git https://github.com/simonpham/rip.git
rip # Launch interactive TUI anywhere
๐ป CLI Commands #
1. Interactive Terminal UI (TUI) #
rip
Keybindings:
Tab: Switch focus between Categories and Itemsโ/โ(orh/l): Move focus between Category and Detail panesโ/โ(ork/j): Navigate itemsSpace/Enter: Toggle selection (also supports mouse clicks)S: Cycle size sorting mode (largest firstโsmallest firstโdefault)A: Toggle Select All / NoneN: Unselect AllC: Execute Safe CleanupD: Run Dry-Run SimulationW: Toggle Whitelist on item / Open Whitelist Viewr: Refresh active focused categoryShift + R: Rescan all categoriesEsc/X: Cancel background scanQ: Quit
2. CLI Clean #
rip clean # Scan & clean system & app caches
rip clean --dry-run # Preview cleanup without deleting files
rip clean -y # Auto-confirm cleanup
rip clean -c system -c dev # Filter by specific categories
rip clean --json # Output result as JSON
3. Project Build Artifact Purge #
rip purge # Purge build folders in current directory
rip purge /path/to/code # Target specific workspace folder
rip purge --all # Purge build folders across all workspace directories (~/Projects, etc.)
rip purge --dry-run # Dry-run preview
4. System Scan #
rip scan # Print scan report and reclaimable space
rip scan --json # Output scan report as JSON
5. Manage Whitelist #
rip whitelist # List whitelisted path exclusions
rip whitelist add ~/Projects # Whitelist a folder or file
rip whitelist remove ~/Path # Remove folder from whitelist
6. View History #
rip history # View past cleanup logs and total space freed
๐ License #
Licensed under the MIT License. Repository: https://github.com/simonpham/rip