How chunyu33/light-c works
LightC is a Windows desktop utility for reviewing disk usage and system-cleanup candidates, then selectively applying maintenance actions. The main workflow runs through the React dashboard and feature modules, the Tauri command boundary, and Rust scanners or system-maintenance code; results are presented for review before cleanup. README-described capabilities include disk growth, social-app caches, AI-model storage, drivers, registry entries, and system slimming. Several feature implementations were not sampled, so their nodes reflect exact tree paths, while uncertain implementation links are omitted or dashed.
Main entry points: commands Command handlers · modules Feature modules · App.tsx Dashboard shell · commands.ts Tauri command API
Components 28
Desktop interface
- Dashboard shell
src/App.tsx - Dashboard state
src/contexts/DashboardContext.tsx - Feature modules
src/components/modules - Module cards
src/components/ModuleCard.tsx - Review dialogs
src/components/ConfirmDialog.tsx - Toast feedback
src/components/Toast.tsx - Localization
src/i18n/index.ts - Module catalog
src/config/moduleMeta.ts
Disk analysis
- Junk scanning
src-tauri/src/scanner/deep_junk.rs - Scan engine
src-tauri/src/scanner/scan_engine.rs - Disk analysis
src-tauri/src/scanner - Disk growth
src-tauri/src/disk_growth - Social cache scan
src-tauri/src/scanner/social_scanner - AI storage scan
src-tauri/src/ai_models - Uninstall leftovers
src-tauri/src/scanner/leftovers.rs - Directory analyzer
src-tauri/src/scanner/hotspot.rs - Hotspot engine selector
src-tauri/src/scanner/hotspot_engine/engine_selector.rs
Cleanup and maintenance
- Safe deletion
src-tauri/src/cleaner/delete_engine.rs - Deletion safeguards
src-tauri/src/cleaner/safety_constants.rs - System slimming
src-tauri/src/system_slim/mod.rs - Driver cleanup
src-tauri/src/driver_cleanup/mod.rs - Disk health
src-tauri/src/disk_health/mod.rs - Shell icon manager
src-tauri/src/scanner/shell_icons.rs
Tauri platform
- Tauri command API
src/api/commands.ts - Command handlers
src-tauri/src/commands - Runtime setup
src-tauri/src/runtime.rs - App data paths
src-tauri/src/data_dir.rs
Other components
- Windows user
Connections 25
- Windows user → Dashboard shell: uses
src/App.tsx - Dashboard shell → Dashboard state: reads state
src/App.tsx - Dashboard shell → Module catalog: selects modules
- Dashboard state → Tauri command API: requests data
src/contexts/DashboardContext.tsx - Feature modules → Tauri command API: invokes commands
src/components/modules/ContextMenuModule.tsx - Feature modules → Module cards: renders
src/components/modules/ContextMenuModule.tsx - Feature modules → Review dialogs: confirms cleanup
src/components/modules/ContextMenuModule.tsx - Feature modules → Toast feedback: reports results
- Tauri command API → Command handlers: invokes
src/api/commands.ts - Command handlers → Junk scanning: runs scans
- Command handlers → Safe deletion: requests deletion
- Scan engine → Deletion safeguards: checks paths
src-tauri/src/scanner/scan_engine.rs - Safe deletion → Deletion safeguards: checks protection
src-tauri/src/cleaner/delete_engine.rs - Directory analyzer → Hotspot engine selector: selects engine
src-tauri/src/scanner/hotspot_engine/engine_selector.rs - Runtime setup → App data paths: prepares paths
src-tauri/src/data_dir.rs - Command handlers → Disk growth: runs analysis
- Command handlers → Social cache scan: runs scans
- Command handlers → AI storage scan: runs scans
- Command handlers → Uninstall leftovers: runs scans
- Command handlers → Disk analysis: runs analysis
- Command handlers → System slimming: applies changes
- Command handlers → Driver cleanup: manages drivers
- Command handlers → Disk health: gets health
- Command handlers → Shell icon manager: manages icons
- Localization → Dashboard shell: localizes interface