Skip to content

A clean, safe, and powerful Windows 10/11 disk analyzer application to view and analyze file contents and storage allocation.

Notifications You must be signed in to change notification settings

mobius29er/winTrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

WinTrim - Disk Analyzer

A clean, safe, and powerful Windows 10/11 disk analyzer application to view and analyze file contents and storage allocation.

.NET 8.0 Platform License

๐ŸŽฏ Features

Core Functionality

  • โœ… Disk Scanning - Fast recursive scanning with async processing
  • โœ… Storage Analytics - Visual breakdown of how data is allocated by category
  • โœ… Cleanup Recommendations - Safe suggestions for freeing disk space
  • โœ… Quick Clean - One-click cleanup with preview and file-level selection
  • โœ… Largest Files Finder - Top 50 largest files with quick access
  • โœ… Game Detection - Auto-detect Steam, Epic, GOG, and Xbox game installations
  • โœ… Developer Tools Scanner - Detect npm, NuGet, pip, Maven caches with cleanup recommendations
  • โœ… File Age Analysis - Identify files not accessed in 90+ days
  • โœ… Session Persistence - Automatically saves and restores your last scan (including treemap & dev tools)

Interactive Visualization

  • ๐Ÿ—บ๏ธ Treemap View - Visual representation of disk usage with drill-down navigation
  • ๐ŸŽจ 5 Treemap Color Schemes - Vivid, Pastel, Ocean, Warm, and Cool palettes
  • ๐Ÿ“Š Pie Charts - Category breakdown (Documents, Media, Games, etc.)
  • ๐Ÿ“ˆ Bar Charts - Largest folders at a glance
  • ๐ŸŒฒ Tree View - Hierarchical folder navigation with search & filters

Quick Clean Features

  • ๐Ÿงน Preview Before Delete - See exactly what will be removed
  • โ˜‘๏ธ File-Level Selection - Expand categories to select individual files
  • ๐Ÿ“ Smart Detection - Finds temp files, browser cache, Windows Update cache, old logs
  • โš ๏ธ Risk Indicators - Safe/Low/Medium/High risk levels for each item

Developer Tools Detection

  • ๐Ÿ“ฆ npm - node_modules, npm cache
  • ๐Ÿ“ฆ NuGet - Package cache
  • ๐Ÿ pip - Python package cache
  • โ˜• Maven - .m2 repository
  • ๐Ÿฆ€ Cargo - Rust package cache
  • ๐Ÿ“ฑ Gradle - Android/Java build cache

Data Provided

  • ๐Ÿ“… Date last accessed/modified
  • ๐Ÿ“Š Size of folders and files (human-readable)
  • ๐Ÿ“ Full path locations
  • ๐Ÿท๏ธ File type categorization
  • ๐ŸŽฎ Game platform detection (Steam, Epic, GOG, Xbox)

UI/UX Features

  • ๐ŸŽจ 5 Themes - Default (Retrofuturistic), Tech (Blade Runner), Enterprise (Light), Terminal Green, Terminal Red
  • โš™๏ธ Settings Panel - Font size, treemap colors, treemap depth controls
  • ๐Ÿ“ 4 Font Size Presets - Small, Medium, Large, Extra Large
  • โ–ถ๏ธ Scan Controls - Start/Stop/Pause with progress tracking
  • ๐Ÿ“‹ Sortable Data Grids - Click headers to sort by name, size, date
  • ๐Ÿ–ฑ๏ธ Context Menus - Right-click to open location or copy path
  • ๐Ÿ“‚ Quick Actions - Open in Explorer buttons throughout
  • ๐Ÿ” File Explorer Filters - Search and filter by type, size, age

๐Ÿš€ Getting Started

Prerequisites

Installation

  1. Clone or download this repository
  2. Open terminal in the project folder
  3. Build and run:
cd DiskAnalyzer
dotnet restore
dotnet build
dotnet run

Or build a standalone executable:

dotnet publish -c Release -r win-x64 --self-contained true

๐Ÿ“ Project Structure

DiskAnalyzer/
โ”œโ”€โ”€ Models/           # Data models (FileSystemItem, ScanResult, ScanCache, etc.)
โ”œโ”€โ”€ ViewModels/       # MVVM ViewModels with commands
โ”œโ”€โ”€ Views/            # XAML UI files
โ”œโ”€โ”€ Controls/         # Custom controls (TreemapControl)
โ”œโ”€โ”€ Services/         # Business logic services
โ”‚   โ”œโ”€โ”€ FileScanner       # Core scanning engine
โ”‚   โ”œโ”€โ”€ GameDetector      # Steam/Epic/GOG/Xbox detection
โ”‚   โ”œโ”€โ”€ DevToolDetector   # Developer cache detection
โ”‚   โ”œโ”€โ”€ CleanupAdvisor    # Cleanup recommendations
โ”‚   โ”œโ”€โ”€ CleanupService    # Execute cleanup operations
โ”‚   โ”œโ”€โ”€ SettingsService   # User preferences & scan caching
โ”‚   โ”œโ”€โ”€ TreemapLayoutService # Squarified treemap algorithm
โ”‚   โ””โ”€โ”€ CategoryClassifier   # File type classification
โ”œโ”€โ”€ Converters/       # Value converters for UI
โ””โ”€โ”€ Themes/           # 5 color themes (Default, Tech, Enterprise, Terminal)

๐Ÿ›ก๏ธ Safety Features

  • Read-only scanning - No files are modified during analysis
  • Preview before delete - Quick Clean shows exactly what will be removed
  • Risk levels for cleanup suggestions (Safe/Low/Medium/High)
  • Graceful error handling for inaccessible folders
  • Memory efficient - Processes files in batches

๐Ÿ”ง Technical Details

  • Framework: .NET 8.0 + WPF
  • Architecture: MVVM with CommunityToolkit.Mvvm
  • Charts: LiveCharts2 (SkiaSharp)
  • Treemap: Custom SkiaSharp-based squarified treemap with iterative layout algorithm
  • Async: Full async/await with CancellationToken support
  • Persistence: JSON-based settings and scan caching
  • Themes: 5 built-in themes with dynamic resource switching
  • Performance: Iterative algorithms to prevent stack overflow on large datasets

๐Ÿ“ธ Screenshots

Dashboard with Category Breakdown

Pie chart showing storage allocation by file type

Treemap Visualization

Interactive treemap with double-click drill-down and 5 color schemes

Quick Clean Dialog

Preview and select individual files before cleanup

Settings Panel

Customize font size, treemap colors, and visualization depth

๐ŸŽจ Themes

Theme Description
Default Retrofuturistic teal/cyan with orange accents
Tech Cyberpunk neon - Cyan/Pink on void black
Enterprise Professional Windows-style - Clean blues and grays (light mode)
Terminal Green Classic terminal - Green on black
Terminal Red Alert terminal - Red on black

๐Ÿ“‹ Original Requirements

Purpose of this software is to download locally a clean and safe application to view and analyze the contents and location of the files on your harddrive in Windows 10/11.

The application will:

  • Read the designated drive
  • Provide analytics on how data is allocated
  • Provide recommendations on what could be cleaned
  • Provide a top hits of the largest files
  • Analyze Steam and other applications with large files

It should provide:

  • Date used last
  • Size of the folders/files
  • Location of them

UI/UX:

  • Simple and friendly to use
  • Ability to Start/stop/pause analysis and maintain the current results

๐Ÿ“„ License

MIT License - feel free to use and modify as needed.

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published