kuizer 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The release workflow puts the section that matches the tagged version on the GitHub release.
4
+
5
+ ## [0.1.3] - 2026-11-07
6
+
7
+ - GUI: settings in the sidebar footer and behind Ctrl+, with a light theme, a motion switch and sidebar options; one toolbar per section; Shift+1 to Shift+9 switch sections; Escape stops a scan and keeps the results found so far; tooltips anchor to their trigger.
8
+ - Documentation at kuizer.app/docs.
9
+ - Deletion is always permanent. Trash mode, the `delete.mode` key, `--permanent`, the TUI `t` toggle and the GUI undo bar are gone; `delete.confirm` now defaults to `true`. `kuizer restore` still brings back runs that older versions moved to the trash.
10
+ - A folder your user cannot remove, such as a `node_modules` installed with `sudo`, is refused before anything is touched, with the owner and how to remove it instead of a raw permission error.
11
+
12
+ ## [0.1.2] - 2026-10-24
13
+
14
+ - Toolchain versions, Docker and Podman objects, and git repositories with their `git gc` gain and merged branches, in the CLI and the GUI.
15
+ - GUI: command palette and full keyboard control, right-click menu, undo after a trash run, space map with zoom, dashboard charts, custom window decorations on macOS and Linux, zoom with Ctrl and the scroll wheel, tooltips, scan progress, shift-select, a new palette and icon, and reopening with the previous scan.
16
+ - Faster scan with streaming results in the GUI; Docker queries run side by side.
17
+ - Ctrl+Q quits the GUI and the TUI.
18
+ - Releases publish to crates.io.
19
+
20
+ ## [0.1.1] - 2026-10-17
21
+
22
+ - `--idle` for `scan` and `clean`.
23
+ - Detection rules for twelve more ecosystems.
24
+ - GUI start screen with folder choice and scan options.
25
+ - Releases built with cargo-dist: shell installers, an npm package and prebuilt binaries for Linux and macOS.
26
+ - CI builds and tests on macOS.
27
+
28
+ ## [0.1.0] - 2026-10-16
29
+
30
+ First release: `scan`, `clean`, `cache`, `duplicates`, `history` and `restore`, the HTML report and dashboard, a terminal UI and a desktop app, with deletion to the trash and the safety checks.
package/README.md CHANGED
@@ -1,26 +1,45 @@
1
+ <p align="center">
2
+ <img src="packaging/icons/512x512.png" width="88" alt="kuizer logo" />
3
+ </p>
4
+
1
5
  <h1 align="center">kuizer</h1>
2
6
 
3
- A terminal tool that finds build output, development caches and duplicate files on a developer machine, and removes the ones you select.
7
+ A disk cleanup tool for developers, written in Rust. It finds `node_modules`, Cargo `target` directories, build output, tool caches and duplicate files under your projects, and deletes the ones you select.
8
+
9
+ Website and documentation: [kuizer.app](https://kuizer.app), [kuizer.app/docs](https://kuizer.app/docs).
4
10
 
5
11
  <p align="center">
12
+ <img src="https://shieldcn.dev/github/remcostoeten/kuizer/release.svg?font=jetbrains-mono" alt="release" />
13
+ <img src="https://shieldcn.dev/github/remcostoeten/kuizer/ci.svg?font=jetbrains-mono" alt="CI" />
14
+ <img src="https://shieldcn.dev/github/remcostoeten/kuizer/license.svg?font=jetbrains-mono" alt="license" />
15
+ <img src="https://shieldcn.dev/crates/kuizer.svg?font=jetbrains-mono" alt="crates.io" />
6
16
  <img src="https://shieldcn.dev/badge/core-Rust-black.svg?font=jetbrains-mono&logo=rust" alt="core: Rust" />
7
- <img src="https://shieldcn.dev/badge/UI-ratatui-black.svg?font=jetbrains-mono" alt="UI: ratatui" />
8
17
  <img src="https://shieldcn.dev/badge/deletes%20to-trash-black.svg?font=jetbrains-mono" alt="deletes to: trash" />
9
18
  <img src="https://shieldcn.dev/badge/platform-Linux%20%7C%20macOS-black.svg?font=jetbrains-mono" alt="platform: Linux and macOS" />
10
19
  </p>
11
20
 
12
- kuizer walks your project folders and lists `node_modules`, `.next`, Cargo `target` directories and other generated folders with their sizes. Built-in rules cover JavaScript and its frameworks, Rust, Python, .NET, Maven, Gradle, Swift, CocoaPods, Dart and Flutter, Elixir, Zig, Haskell, CMake, Terraform and Unity; `kuizer rules` lists them. You select what to remove in an interactive list or with `kuizer clean`. A scan on its own never deletes anything.
21
+ <p align="center">
22
+ <img src="docs/gui/overview.png" width="100%" alt="The kuizer desktop app after scanning ~/projects: totals for project artifacts, caches and duplicates, with the largest projects and caches listed" />
23
+ </p>
24
+ <p align="center">
25
+ <sub>The desktop app on Linux. The same scan runs in the terminal as <code>kuizer</code>.</sub>
26
+ </p>
27
+
28
+ kuizer walks your project folders and lists `node_modules`, `.next`, Cargo `target` directories and other generated folders with their sizes. Built-in rules cover JavaScript and its frameworks, Rust, Python, .NET, Maven, Gradle, Swift, CocoaPods, Dart and Flutter, Elixir, Zig, Haskell, CMake, Terraform and Unity; `kuizer rules` lists them. A scan on its own never deletes anything.
29
+
30
+ It ships as a terminal tool with an interactive list, and as a desktop app built on [GPUI](https://gpui.rs). Both run the same scan, the same checks and the same deletion, and share one config file and one history.
13
31
 
14
32
  - **Each artifact is checked against its project.** A `dist` folder counts only next to a `package.json`, and a `target` folder only next to a `Cargo.toml` with Cargo's cache tag inside. Every result is marked `safe` or `review`.
15
- - Deleted items go to the trash by default. Before each removal kuizer checks again that the item is the directory it scanned, not a symlink or mount point, inside a scanned root, and not your home directory or a system directory.
16
- - Browser and app profiles are never entered or deleted: Chrome, Brave, Firefox, Edge and Electron apps such as Discord, Slack and VS Code. The same goes for `~/.ssh`, `~/.gnupg` and the keyrings, and for globally installed tools and editor extensions (`~/.vscode/extensions`, pnpm, bun and yarn global installs). Anything else found inside a hidden folder of your home directory is marked `review`, never `safe`.
17
- - Projects with uncommitted git changes get a warning in the list and in the delete confirmation.
18
- - `--idle 60d` keeps only projects you have not touched for that long, so the dependencies of what you work on today stay. A project's activity is its newest file outside generated folders or its last git commit, whichever is later; `npm install` or `cargo build` in an abandoned project does not make it active. `--sort idle` lists the longest idle first.
19
- - Every deletion is logged to `~/.kuizer-history.json`. `kuizer history` lists past runs with ids like `s4`, shows what was freed and what is still in the trash, and `kuizer restore s4` puts a run back from the trash without overwriting anything.
20
- - `kuizer scan --report` writes a single HTML file with a zoomable treemap of every result, grouped by project, category or rule, and opens it in your browser. The file loads nothing from the network.
21
- - `kuizer dashboard` writes one HTML page with tabs for an overview with insights, project artifacts, a folder drill-down, global caches, duplicates and the deletion history with charts per week or month. Like the report, it loads nothing from the network.
22
- - `kuizer cache` lists global caches for npm, pnpm, yarn, bun, deno, cargo, pip, uv, Go, Gradle, Maven, Playwright and others.
23
- - `kuizer duplicates` finds files with identical contents by size and BLAKE3 hash. It never deletes them: you choose which copy to keep.
33
+ - **Deletion goes to the trash and is checked twice.** Right before removal, kuizer confirms the item is the directory it scanned, not a symlink or mount point, inside a scanned root, and not your home or a system directory.
34
+ - **Profiles and secrets are never entered.** Chrome, Brave, Firefox, Edge and Electron apps such as Discord, Slack and VS Code, plus `~/.ssh`, `~/.gnupg`, the keyrings and global tool installs are skipped. Anything else in a hidden home folder is `review`, never `safe`.
35
+ - **Beyond project folders** it lists global caches (npm, pnpm, yarn, bun, cargo, pip, uv, Go, Gradle, Maven, Playwright and more), installed toolchain versions (rustup, nvm, fnm, volta, pyenv, uv, SDKMAN, Go), Docker and Podman leftovers, git repositories that `git gc` would shrink, and duplicate files by size and BLAKE3 hash.
36
+ - **Idle projects only, if you want.** `--idle 60d` keeps the dependencies of what you work on today; a project's activity is its newest source file or last commit, so a stray `npm install` does not count.
37
+ - **Every deletion is logged.** `kuizer history` lists past runs with ids like `s4`, and `kuizer restore s4` puts a run back from the trash without overwriting anything.
38
+ - **Reports stay on your machine.** `kuizer scan --report` writes one HTML file with a zoomable treemap, and `kuizer dashboard` one page with charts and drill-downs. Neither loads anything from the network.
39
+
40
+ Configuration lives in `~/.config/kuizer/config.toml`; every key is optional and [docs/config.example.toml](docs/config.example.toml) lists them all. A folder containing a `.kuizerignore` file is skipped with everything under it. kuizer was called sweep until October 2026 and still reads `.sweepignore` markers and `~/.sweep-history.json`. The design and module boundaries are in [docs/design.md](docs/design.md).
41
+
42
+ ## Command line
24
43
 
25
44
  ```sh
26
45
  kuizer # interactive list of the current directory
@@ -32,76 +51,89 @@ kuizer clean ~/projects --dry-run # show what clean would remove
32
51
  kuizer clean ~/projects --idle 3mo # remove safe items of projects untouched for three months
33
52
  kuizer clean ~/projects --select all # remove safe and review items, after a confirmation
34
53
  kuizer cache --clean --select npm # remove the npm cache
54
+ kuizer toolchain ~/projects --clean # remove toolchain versions no project pins
55
+ kuizer docker --clean # remove dangling images, stopped containers and build cache
56
+ kuizer git ~/apps --gc --branches # pack loose objects, delete merged branches
35
57
  kuizer restore --last # put the last run back from the trash
36
58
  kuizer duplicates ~/Downloads --verify # duplicate files, compared byte by byte
37
59
  kuizer --json scan ~/projects # every command prints JSON with --json
38
60
  ```
39
61
 
40
- Configuration lives in `~/.config/kuizer/config.toml`; every key is optional. A directory containing a `.kuizerignore` file is skipped along with everything under it. kuizer was called sweep until October 2026 and still reads `.sweepignore` markers and `~/.sweep-history.json`. See [docs/config.example.toml](docs/config.example.toml) for the config keys, [docs/design.md](docs/design.md) for the design and roadmap, and [docs/kuizer-migration.md](docs/kuizer-migration.md) for the planned `kuizer code` dead-code command.
62
+ Deletion is permanent: nothing goes to the trash. Every command shows what it will remove and asks first. A tool downloads a toolchain version again when needed, and a merged branch's commits stay in the default branch.
41
63
 
42
64
  ## Desktop app
43
65
 
44
- `kuizer-gui` is a desktop window for the same scan, built on [GPUI](https://gpui.rs), the framework Zed is built on. It shows the dashboard's overview, project artifacts, global caches, duplicates, history and scan issues, and moves the items you select to the trash with the same checks as `kuizer clean`: a plain confirmation when everything is `safe`, and typing the item count when any item is `review`. Each cleanup lands in the history, so `kuizer history` and `kuizer restore` work on it. It never deletes permanently.
66
+ `kuizer-gui` opens on a start screen. Type a folder, pick one with the system dialog, reopen one of the last eight, or scan your whole home folder. The same screen sets the scan options: which kinds of artifacts to list, the smallest item size, how deep to walk, and whether to measure global caches, toolchains and Docker, look for duplicates and stay on one file system. The scan streams results in as it runs, and Escape stops it and keeps what it found.
67
+
68
+ The sidebar lists the sections: Overview, Project artifacts, Global caches, Toolchains, Docker, Git repositories, Duplicates, History and Issues. Shift+1 to Shift+9 jump between them, and `m` opens the space map: the scanned folders and the global caches as tiles sized by what they hold. Enter or a click opens a folder and shows each item inside as its own tile; Backspace goes back.
69
+
70
+ <p align="center">
71
+ <img src="docs/gui/artifacts.png" width="100%" alt="The project artifacts list with several rows selected and the inline confirmation showing the item count and total size before they are deleted" />
72
+ </p>
45
73
 
46
- It opens on a start screen. Type a folder, pick one with the system folder dialog, reopen one of the last eight folders or choose a full scan of your home folder. The same screen sets the scan options: which kinds of artifacts to list, the smallest item size, how deep to walk, and whether to measure global caches, search for duplicate files and stay on one file system. The scan shows its progress and Escape cancels it. New scan in the title bar goes back to the start screen.
74
+ In a list, `j`/`k` or the arrow keys move the cursor, Space selects a row, Shift-click selects a range, and `/` filters by path or name. Enter, Delete or `d` deletes the selection for good after an inline confirmation that shows the item count, total size and how many items are marked `review`. Right-click a row, or press the Menu key or Shift+F10, to reveal it in the file manager, copy its path, delete only that item, or exclude it from every later scan.
75
+
76
+ Ctrl+K (Cmd+K on macOS) opens a command palette with every action, section and recent folder, and `?` lists all shortcuts. Settings sit in the sidebar footer and behind Ctrl+, (Cmd+,): a dark or light theme, motion on or off, how the sidebar opens and whether the section keys show. They write to the same config file the CLI reads. Ctrl+B collapses the sidebar to a strip of icons. Tab and Shift+Tab move a focus ring through every button, toggle and sidebar item, Enter or Space presses it and Esc goes back to the list.
77
+
78
+ <p align="center">
79
+ <img src="docs/gui/light.png" width="100%" alt="The desktop app in the light theme with the settings panel open over the overview" />
80
+ </p>
47
81
 
48
82
  ```sh
49
83
  kuizer-gui # open the start screen
50
- cargo run --release -p kuizer-gui -- ~/projects # skip the start screen and scan this folder right away
84
+ kuizer-gui ~/projects # skip the start screen and scan this folder
51
85
  ```
52
86
 
53
- ![Start screen](docs/gui/start.png)
54
-
55
- ![Overview](docs/gui/overview.png)
87
+ ## Install
56
88
 
57
- On Linux GPUI needs the X11, Wayland, Vulkan and font development packages. On Arch they come with `libxkbcommon-x11 wayland vulkan-icd-loader fontconfig freetype2`; on Debian and Ubuntu install `libxkbcommon-x11-dev libwayland-dev libx11-xcb-dev libxcb1-dev libfontconfig-dev libfreetype-dev libvulkan-dev libasound2-dev`.
89
+ Prebuilt binaries for Linux and macOS, on x86_64 and ARM, are attached to every [GitHub release](https://github.com/remcostoeten/kuizer/releases), as plain archives with a SHA-256 checksum next to the installers below. The `kuizer-gui` archive includes a `.desktop` entry and an icon for Linux menus.
58
90
 
59
- ## Install
91
+ ### Installer script
60
92
 
61
- Prebuilt binaries for Linux and macOS, on x86_64 and ARM, are attached to every [GitHub release](https://github.com/remcostoeten/kuizer/releases). The installer script downloads the right one, checks it and puts it in `~/.cargo/bin`:
93
+ Downloads the right binary, checks it and puts it in `~/.cargo/bin`.
62
94
 
63
- ```sh
95
+ ```bash
64
96
  curl -LsSf https://github.com/remcostoeten/kuizer/releases/latest/download/kuizer-installer.sh | sh
97
+ curl -LsSf https://github.com/remcostoeten/kuizer/releases/latest/download/kuizer-gui-installer.sh | sh
65
98
  ```
66
99
 
67
- With Node, the CLI also runs from npm:
100
+ ### npm
68
101
 
69
- ```sh
70
- npx kuizer # run without installing
102
+ ```bash
103
+ npx kuizer # run the CLI without installing
71
104
  npm install -g kuizer # or keep it installed
72
105
  ```
73
106
 
74
- The desktop app installs the same way under its own name:
107
+ ### cargo
75
108
 
76
- ```sh
77
- curl -LsSf https://github.com/remcostoeten/kuizer/releases/latest/download/kuizer-gui-installer.sh | sh
109
+ ```bash
110
+ cargo binstall kuizer # the prebuilt binary through cargo-binstall
111
+ cargo install kuizer # or build from crates.io
78
112
  ```
79
113
 
80
- Each release also has plain archives with a SHA-256 checksum. The `kuizer-gui` archive includes a `.desktop` entry and an icon for Linux menus.
81
-
82
114
  ### From source
83
115
 
84
- ```sh
116
+ ```bash
85
117
  git clone https://github.com/remcostoeten/kuizer
86
118
  cargo install --path kuizer
87
119
  cargo install --path kuizer/crates/kuizer-gui
88
120
  ```
89
121
 
122
+ On Linux the desktop app needs the X11, Wayland, Vulkan and font development packages to build. On Arch: `libxkbcommon-x11 wayland vulkan-icd-loader fontconfig freetype2`. On Debian and Ubuntu: `libxkbcommon-x11-dev libwayland-dev libx11-xcb-dev libxcb1-dev libfontconfig-dev libfreetype-dev libvulkan-dev libasound2-dev`.
123
+
90
124
  ## Development
91
125
 
92
126
  Requires Rust 1.88 or newer (edition 2024).
93
127
 
94
128
  ```sh
95
- cargo test # unit and filesystem tests in temp dirs
96
- cargo test -p kuizer-gui # desktop app tests
97
- cargo clippy --all-targets -- -D warnings # lint, as CI runs it
98
- cargo fmt --check # formatting, as CI runs it
99
- cargo deny check # advisories, licenses and duplicate crates
100
- dist plan # list what a release builds, see dist-workspace.toml
101
- cargo run --release --example synth -- /tmp/kuizer-bench 200 100 # build a synthetic tree to scan
129
+ cargo test --workspace --all-targets -j 2 -- --test-threads=2 # unit and filesystem tests, in temp dirs only
130
+ cargo clippy --workspace --all-targets -- -D warnings # lint, as CI runs it
131
+ cargo fmt --all --check # formatting, as CI runs it
132
+ cargo deny check # advisories, licenses and duplicate crates
133
+ cargo run --release --example synth -- /tmp/kuizer-bench 200 100 # build a synthetic tree to scan
102
134
  ```
103
135
 
104
- To release, bump `version` under `[workspace.package]` in `Cargo.toml`, commit, and push a matching tag such as `v0.1.0`. The release workflow builds both binaries, packages them and publishes the GitHub release.
136
+ `./dev` is a keyboard menu for building, running and testing. To release, bump `version` under `[workspace.package]` in `Cargo.toml`, commit, and push a matching tag such as `v0.1.3`; the release workflow builds both binaries, packages them and publishes the GitHub release with the matching section of [CHANGELOG.md](CHANGELOG.md) as its notes. Contribution notes are in [CONTRIBUTING.md](.github/CONTRIBUTING.md) and the security policy in [SECURITY.md](.github/SECURITY.md).
105
137
 
106
138
  <br/>
107
139
 
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "kuizer",
22
- "version": "0.1.1"
22
+ "version": "0.1.3"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.1.1"
51
+ "version": "0.1.3"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/remcostoeten/kuizer/releases/download/v0.1.1"
3
+ "https://github.com/remcostoeten/kuizer/releases/download/v0.1.3"
4
4
  ],
5
5
  "bin": {
6
6
  "kuizer": "run-kuizer.js"
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "detect-libc": "^2.1.2"
10
10
  },
11
- "description": "Keyboard-driven disk cleanup for developers: generated artifacts, caches and duplicates",
11
+ "description": "Keyboard-driven disk cleanup for developers: finds node_modules, build output, tool caches and duplicate files, trashes only what you select",
12
12
  "devDependencies": {
13
13
  "prettier": "^3.9.6"
14
14
  },
@@ -20,15 +20,16 @@
20
20
  "major": 2,
21
21
  "series": 35
22
22
  },
23
- "homepage": "https://github.com/remcostoeten/kuizer",
23
+ "homepage": "https://kuizer.app",
24
24
  "keywords": [
25
25
  "command-line-utilities",
26
26
  "filesystem",
27
+ "development-tools",
27
28
  "cleanup",
28
- "disk",
29
+ "disk-usage",
29
30
  "node-modules",
30
31
  "cache",
31
- "cli"
32
+ "duplicates"
32
33
  ],
33
34
  "license": "MIT",
34
35
  "name": "kuizer",
@@ -69,7 +70,7 @@
69
70
  "zipExt": ".tar.xz"
70
71
  }
71
72
  },
72
- "version": "0.1.1",
73
+ "version": "0.1.3",
73
74
  "volta": {
74
75
  "node": "18.14.1",
75
76
  "npm": "9.5.0"