WiseDisk is a Windows desktop application that analyzes disk usage, identifies clutter, and recommends safe deletions with context-aware guidance. Built with Electron.js, WiseDisk helps users understand and optimize their system's disk space intelligently and safely.
The goal of WiseDisk is to move beyond simple file size analysis and build an intelligent cleanup assistant that:
- Understands the role and risk of each file/folder
- Suggests safe deletion candidates
- Logs every operation for transparency and rollback
- Eventually integrates LLMs for smarter reasoning and assistant-style interaction
- Framework: Electron.js with Node.js backend
- Testing Ground: Simulated directory (
./test-disk) used for safe, repeatable cleanup testing - Deletion Handling: Uses the
trashpackage to safely move files to the Recycle Bin - Planned Additions:
- File/folder scoring (based on size, age, type, importance)
- Categorization (temp files, dev folders, media, etc.)
- LLM-based recommendation engine (future)
- Script generation (PowerShell, Bash) (future)
- Simulate fake disk clutter for testing
- Scan and display a tree of folders/files with sizes
- Allow checkbox-based deletion through Recycle Bin
- Log each action to a local
.logfile - Support rollback through logs or file restoration To restore deleted files using the logs, run:
node scripts/rollback.js [logDir]The logDir defaults to logs/.
- Tag files/folders (system, user, temp, dev, etc.)
- Assign deletability score
- Filter or sort by score
- Chat assistant to explain folders or suggest deletions
- Natural language command interface
- Custom script generator (e.g., delete all unused
.logfiles > 100MB)
We use a fake clutter generator script to simulate disk usage and test logic safely before scanning real disk partitions. This ensures a safe, iterative development process without risking system files.
npm install
npm test
npm start
npm run formatRun npm run format to apply Prettier formatting to the project files.
To generate fake clutter for testing, run:
node scripts/fakeClutterGenerator.jsThis command creates a test-disk folder populated with random files and
directories. The automated tests rely on this folder when running in the
simulated environment only.