Skip to content

pguso/cleansweep

Repository files navigation

🧹 CleanSweep – A Disk Cleanup App Built with Tauri, Rust, and React

CleanSweep is a lightweight and blazing-fast macOS desktop app built with Tauri, leveraging a Rust backend and a React + TailwindCSS frontend.

Related article 👉 Develop a Desktop App with Tauri: Scan & Clean Your Disk, this project demonstrates how to build a native-like experience using modern web technologies and system-level performance.


🚀 Features

  • 📂 Select a folder or disk to scan
  • 📊 Analyze disk usage: total size, largest & oldest files
  • 🗑️ Move selected files safely to trash
  • 💨 Super fast performance with native Rust backend
  • 💅 Sleek, responsive UI with React + TailwindCSS

🧰 Tech Stack

  • Rust (Tauri backend)
  • React + TypeScript (frontend)
  • TailwindCSS (styling)
  • Tauri for building a secure and lightweight desktop application

🖥️ Getting Started

✅ Prerequisites

Make sure you have the following installed:

Check with:

cargo -V
npm -v

Create & Run the App

npm create tauri-app
cd tauri-app
npm install
npm run tauri dev

On first run, Tauri will compile Rust dependencies – this might take a bit.

Project Structure

Path Description
src/ Frontend React application
src-tauri/ Tauri-specific Rust backend
src-tauri/src/lib.rs Core logic for scanning folders and trashing files
src/components/ UI components like PathSelector, CleanupSuggestions
package.json Frontend dependencies and scripts
Cargo.toml Rust dependencies and build settings
tauri.conf.json Tauri app configuration

Ideas for Extension

  • Scan multiple folders
  • Add file type filters (e.g., only show .mp4, .zip, etc.)
  • Show file previews or icons
  • Add native notifications after cleanup

📚 Learn More

✍️ Author

Created by @pguso

📖 Read the Full Article

👉 Develop a Desktop App with Tauri: Scan & Clean Your Disk

📃 License

MIT

About

A lightweight macOS desktop app built with Tauri (Rust + React) to scan folders, analyze disk usage, and safely move files to trash.

Topics

Resources

Stars

Watchers

Forks

Contributors