Skip to content

Commit 6afd99c

Browse files
committed
Update README.md to enhance project clarity and user guidance. Revise feature descriptions for better understanding, add version badge, and improve formatting. Update safety model section to emphasize user confirmation before deletions and clarify admin privileges required on launch.
1 parent eb7d54d commit 6afd99c

File tree

1 file changed

+86
-61
lines changed

1 file changed

+86
-61
lines changed

README.md

Lines changed: 86 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
# System Health Tool
88

9-
A lightweight, open-source Windows desktop app that scans, diagnoses,<br>and cleans up system issues — built for people who aren't technical.
9+
Scan, diagnose, and clean up Windows system issues<br>from a single native desktop app.
1010

1111
<br>
1212

1313
[![License](https://img.shields.io/badge/license-MIT-222?style=for-the-badge)](LICENSE)
1414
&nbsp;
15+
[![Version](https://img.shields.io/badge/version-1.0.0-4C1?style=for-the-badge)](https://github.com/TMHSDigital/system-cleaner/releases)
16+
&nbsp;
1517
[![Tauri](https://img.shields.io/badge/Tauri_2-24C8D8?style=for-the-badge&logo=tauri&logoColor=white)](https://v2.tauri.app)
1618
&nbsp;
1719
[![React](https://img.shields.io/badge/React_19-61DAFB?style=for-the-badge&logo=react&logoColor=000)](https://react.dev)
@@ -20,11 +22,11 @@ A lightweight, open-source Windows desktop app that scans, diagnoses,<br>and cle
2022

2123
<br>
2224

23-
`~2.5 MB` &nbsp;&bull;&nbsp; `No bloat` &nbsp;&bull;&nbsp; `No telemetry` &nbsp;&bull;&nbsp; `Open source`
25+
`~2.5 MB installer` &middot; `No bloat` &middot; `No telemetry` &middot; `Open source`
2426

2527
<br>
2628

27-
[Download](https://github.com/TMHSDigital/system-cleaner/releases) &nbsp;&nbsp;|&nbsp;&nbsp; [Build from source](#build-from-source) &nbsp;&nbsp;|&nbsp;&nbsp; [Contributing](docs/CONTRIBUTING.md)
29+
[Download](https://github.com/TMHSDigital/system-cleaner/releases) &nbsp;&nbsp;|&nbsp;&nbsp; [Architecture](#system-architecture) &nbsp;&nbsp;|&nbsp;&nbsp; [Build from source](#build-from-source) &nbsp;&nbsp;|&nbsp;&nbsp; [Contributing](docs/CONTRIBUTING.md)
2830

2931
</div>
3032

@@ -36,30 +38,31 @@ A lightweight, open-source Windows desktop app that scans, diagnoses,<br>and cle
3638

3739
### What it does
3840

39-
One window. Five panels. Everything your PC needs to stay healthy.
40-
41-
| Panel | What you get |
42-
|:------|:-------------|
43-
| **Dashboard** | Real-time health score (0-100), drive space bars, RAM donut chart, one-click **Quick Clean** that only touches safe items |
44-
| **Disk Cleanup** | Scans temp files, browser caches, crash dumps, dev caches, recycle bin — every item tagged with a color-coded risk level |
45-
| **Memory** | Live RAM usage, runaway process detection, Hyper-V and WSL VM detection, direct process kill for non-system processes |
46-
| **Startup** | Toggle startup programs on/off with impact ratings and "recommended to disable" flags — nothing is uninstalled, just toggled |
47-
| **Recommendations** | Auto-generated tips like *"Your pagefile is on a full drive"* with a **Fix It** button that jumps to the right panel |
41+
| Module | Capabilities |
42+
|:-------|:-------------|
43+
| **Dashboard** | Compute a real-time health score (0-100). Visualize drive capacity, RAM usage, and surface a one-click **Quick Clean** that only touches safe items. |
44+
| **Disk Cleanup** | Scan temp files, browser caches, crash dumps, dev caches, and the recycle bin. Tag every item with a color-coded risk level before deletion. |
45+
| **Memory** | Monitor live RAM pressure. Detect runaway processes, Hyper-V VMs, and WSL instances. Kill non-system processes directly from the panel. |
46+
| **Startup** | Toggle startup entries on/off via registry and shell folders. Display impact ratings (High / Medium / Low) and recommended-to-disable flags. |
47+
| **Recommendations** | Generate contextual tips (e.g. *"Pagefile is on a full drive"*) and expose a **Fix It** action that navigates to the responsible panel. |
4848

4949
<br>
5050

5151
### Safety model
5252

5353
> [!IMPORTANT]
54-
> Nothing is deleted without showing you exactly what will happen first.
54+
> No files are deleted without explicit user confirmation. Every cleanable item is displayed with its full path and risk classification before any action is taken.
55+
56+
| Risk | Policy |
57+
|:-----|:-------|
58+
| **Safe** | Temp files, caches, crash dumps. Regenerated automatically. Quick Clean only touches this tier. |
59+
| **Moderate** | Dev caches (npm, pip, cargo), Windows Update files. Re-downloaded on demand. Requires manual selection. |
60+
| **Advanced** | Reserved for future surface area. Will require explicit opt-in confirmation. |
5561

56-
| Risk | What it means |
57-
|:-----|:--------------|
58-
| **Safe** | Always fine to delete. Temp files, caches, crash dumps — regenerated automatically. Quick Clean only touches these. |
59-
| **Moderate** | Dev caches, Windows Update files. Re-downloaded on demand. Must be manually selected. |
60-
| **Advanced** | Reserved for future features. Will require explicit confirmation. |
62+
> [!CAUTION]
63+
> Locked files are silently skipped. System-critical processes are protected and cannot be killed from the Memory panel.
6164
62-
Locked files are silently skipped. System processes cannot be killed. Full details in [`docs/SAFETY.md`](docs/SAFETY.md).
65+
Full policy documented in [`docs/SAFETY.md`](docs/SAFETY.md).
6366

6467
<br>
6568

@@ -71,26 +74,26 @@ Locked files are silently skipped. System processes cannot be killed. Full detai
7174

7275
Grab the latest build from [**Releases**](https://github.com/TMHSDigital/system-cleaner/releases):
7376

74-
| Installer | Size |
75-
|:----------|:-----|
77+
| Artifact | Size |
78+
|:---------|:-----|
7679
| `System Cleaner_x.x.x_x64-setup.exe` (NSIS) | ~2.5 MB |
7780
| `System Cleaner_x.x.x_x64_en-US.msi` | ~3.8 MB |
7881

7982
> [!NOTE]
80-
> Admin privileges are requested on launch — required for clearing system temp files, managing services, and reading all processes.
83+
> Admin elevation is requested on launch. Required for accessing system temp directories, enumerating all processes, and managing startup registry keys.
8184
8285
<br>
8386

8487
### Build from source
8588

86-
Requires [Node.js](https://nodejs.org/) 18+, [Rust](https://rustup.rs/) 1.85+, and Windows 10/11 with [WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/).
89+
`Node.js >= 18` &middot; `Rust >= 1.85` &middot; `Windows 10/11` &middot; `WebView2 Runtime`
8790

8891
```bash
8992
git clone https://github.com/TMHSDigital/system-cleaner.git
9093
cd system-cleaner && npm install
9194

92-
npm run tauri:dev # dev mode hot reload
93-
npm run tauri:build # production → src-tauri/target/release/bundle/
95+
npm run tauri:dev # dev mode with hot reload
96+
npm run tauri:build # production build → src-tauri/target/release/bundle/
9497
```
9598

9699
<br>
@@ -99,23 +102,42 @@ npm run tauri:build # production → src-tauri/target/release/bundle/
99102

100103
<br>
101104

102-
### Architecture
103-
104-
```
105-
┌─────────────────────────────────────┐
106-
│ Tauri Window │
107-
│ │
108-
│ React 19 + TypeScript + Tailwind │
109-
│ Dashboard / Disk / Memory / │
110-
│ Startup / Recommendations │
111-
│ ↕ api.ts │
112-
│ ──────────────────────────────────── │
113-
│ Rust Backend (Tauri 2) │
114-
│ disk · memory · startup · cleanup │
115-
│ · recommendations │
116-
└────┬──────────┬──────────────┬───────┘
117-
│ │ │
118-
Win32 API PowerShell Registry
105+
### System architecture
106+
107+
```mermaid
108+
flowchart TD
109+
subgraph Frontend ["React 19 + TypeScript + Tailwind v4"]
110+
UI["Dashboard / Disk / Memory / Startup / Tips"]
111+
API["api.ts — typed invoke() wrappers"]
112+
UI --> API
113+
end
114+
115+
subgraph Backend ["Rust Backend — Tauri 2"]
116+
DISK["disk.rs — drive info, temp/cache scanning"]
117+
MEM["memory.rs — RAM stats, process list, VM detection"]
118+
START["startup.rs — registry + shell folder management"]
119+
CLEAN["cleanup.rs — safe deletion with progress tracking"]
120+
REC["recommendations.rs — contextual system tips"]
121+
end
122+
123+
API -- "IPC (JSON)" --> DISK
124+
API -- "IPC (JSON)" --> MEM
125+
API -- "IPC (JSON)" --> START
126+
API -- "IPC (JSON)" --> CLEAN
127+
API -- "IPC (JSON)" --> REC
128+
129+
subgraph OS ["Windows OS Layer"]
130+
WIN32["Win32 API"]
131+
PS["PowerShell"]
132+
REG["Registry"]
133+
end
134+
135+
DISK --> WIN32
136+
MEM --> WIN32
137+
START --> REG
138+
CLEAN --> PS
139+
REC --> WIN32
140+
REC --> REG
119141
```
120142

121143
Full architecture docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)
@@ -127,9 +149,9 @@ Full architecture docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)
127149
| | |
128150
|:--|:--|
129151
| **Frontend** | React 19 &middot; TypeScript 5.9 &middot; Tailwind CSS v4 &middot; Recharts |
130-
| **Backend** | Tauri 2 (Rust) &middot; Win32 API &middot; PowerShell &middot; Registry |
131-
| **Build** | Vite 7 &middot; Cargo |
132-
| **Icons** | Lucide React |
152+
| **Backend** | Tauri 2 &middot; Rust &middot; sysinfo &middot; winreg &middot; windows-rs |
153+
| **Build** | Vite 7 &middot; Cargo &middot; tauri-cli |
154+
| **UI** | Lucide React &middot; Custom design tokens |
133155

134156
<br>
135157

@@ -141,6 +163,8 @@ Full architecture docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)
141163
```
142164
src/
143165
├── App.tsx # Sidebar nav + tab routing
166+
├── index.css # Global styles + scrollbar
167+
├── main.tsx # React DOM entry point
144168
├── components/
145169
│ ├── Dashboard.tsx # Health score, drives, RAM, Quick Clean
146170
│ ├── DiskCleanup.tsx # Scan → Review → Clean workflow
@@ -149,28 +173,29 @@ src/
149173
│ └── Recommendations.tsx # Auto-tips with Fix It navigation
150174
├── lib/
151175
│ ├── api.ts # Typed Tauri invoke() wrappers
152-
│ ├── types.ts # Shared interfaces
153-
│ └── format.ts # Byte/percent formatting
176+
│ ├── types.ts # Shared TypeScript interfaces
177+
│ └── format.ts # Byte/percent formatting utils
154178
└── styles/
155-
└── tokens.css # Design tokens + component classes
179+
└── tokens.css # Design tokens, component classes, animations
156180
157181
src-tauri/
158182
├── src/
159183
│ ├── lib.rs # Tauri bootstrap + command registration
160-
│ ├── main.rs # Windows entry point
184+
│ ├── main.rs # Windows entry point (#![windows_subsystem])
161185
│ └── commands/
162-
│ ├── disk.rs # Drive info, temp/cache scanning
163-
│ ├── memory.rs # RAM stats, process list, VM detection
164-
│ ├── startup.rs # Registry + folder startup management
165-
│ ├── cleanup.rs # Safe deletion with progress tracking
166-
│ └── recommendations.rs # Auto-generated system tips
167-
├── tauri.conf.json
168-
└── Cargo.toml
186+
│ ├── disk.rs # get_drive_info, scan_disk
187+
│ ├── memory.rs # get_memory_info, get_processes, kill_process, get_vm_info
188+
│ ├── startup.rs # get_startup_items, toggle_startup_item
189+
│ ├── cleanup.rs # clean_items
190+
│ └── recommendations.rs # get_recommendations
191+
├── tauri.conf.json # Window config, bundle targets, CSP
192+
├── Cargo.toml # Rust dependencies + crate config
193+
└── icons/ # Generated app icons (ico, icns, png)
169194
170195
docs/
171-
├── ARCHITECTURE.md
172-
├── SAFETY.md
173-
└── CONTRIBUTING.md
196+
├── ARCHITECTURE.md # Internal design + data flow
197+
├── SAFETY.md # Risk model + deletion policy
198+
└── CONTRIBUTING.md # Setup, code style, PR guidelines
174199
```
175200

176201
</details>
@@ -183,12 +208,12 @@ docs/
183208

184209
### Contributing
185210

186-
PRs welcome. See [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) for setup, code style, and how to add new cleanup targets.
211+
PRs welcome. See [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) for environment setup, code style, and how to add new cleanup targets or recommendation rules.
187212

188213
<br>
189214

190215
<div align="center">
191216

192-
[MIT License](LICENSE) &middot; [TMHSDigital](https://github.com/TMHSDigital)
217+
[MIT License](LICENSE) &middot; [TMHSDigital](https://github.com/TMHSDigital) &middot; [Security Policy](docs/SAFETY.md)
193218

194219
</div>

0 commit comments

Comments
 (0)