Skip to content

SpaceKnife 0.3.3

Pre-release
Pre-release

Choose a tag to compare

@DuskXi DuskXi released this 21 Oct 16:16
· 396 commits to main since this release
v0.3.3
27924f3

English · 简体中文 · Website · Documentation

SpaceKnife 0.3.3 (pre-release)

A disk usage analyzer that shows what fills your drives, on Windows, Linux and macOS. SpaceKnife is an independent project inspired by SpaceSniffer and is not affiliated with SpaceSniffer or its author.

This is a pre-release. Windows and Linux builds are not code-signed; the macOS build is ad-hoc signed, not notarized.

Download

System File Size
Windows 10+ x64 SpaceKnife-0.3.3-Setup-x64.exe 137 MB
Windows 10+ x64, portable SpaceKnife-0.3.3-win-x64-portable.zip 175 MB
macOS 14+, Apple Silicon SpaceKnife-0.3.3-mac-arm64.dmg 141 MB
macOS 14+, Intel SpaceKnife-0.3.3-mac-x64.dmg 148 MB
Ubuntu 22.04+ / Debian family spaceknife_0.3.3_amd64.deb 132 MB
RHEL 9+ / Fedora family spaceknife-0.3.3.x86_64.rpm 119 MB
Other Linux x64 SpaceKnife-0.3.3-x86_64.AppImage 164 MB
Linux x64, portable SpaceKnife-0.3.3-linux-x64-portable.tar.gz 162 MB
  • From 0.3.2: click the badge at the top right; the card downloads the file for your installation and checks its SHA-256. Snapshots and settings stay.
  • Windows: run the new installer over the old one. It is unsigned: SmartScreen › "More info › Run anyway".
  • macOS: drag into Applications; on first launch, System Settings › Privacy & Security › "Open Anyway" (steps).
  • Portable: unzip anywhere; everything is kept in data next to the app. To upgrade by hand, replace all but data.
  • Linux: deb / rpm go to /opt/SpaceKnife (command spaceknife). The AppImage needs FUSE 2 (libfuse2) or --appimage-extract-and-run; AppImageUpdate updates it in place.
  • Checksums: SHA256SUMS.txt (installers), SHA256SUMS-portable-*.txt, SHA256SUMS-mac-*.txt.

What's new

  • Two ways to update. New versions are downloaded and checked in the background; the update card then offers:
    • Seamless update: the Windows installer runs silently, a portable copy's files are swapped by the new version's own backend (no script; data stays, a failed swap rolls back), an AppImage replaces its file. SpaceKnife reopens.
    • The classic way: Run the installer (with its wizard), Open the disk image / Open the package (macOS, deb, rpm), or Replace it yourself (portable, AppImage).
  • Never installs by itself. Checking and downloading may be automatic; installing always waits for your click. No auto-install option will ever be added.
  • Skip a whole series. Skip 0.4.x (Skip 1.x for a major version) mutes the card, dialog, badge and automatic download for every release of that series, across restarts; other series still show. Settings › About & updates › Turn prompts back on undoes it. Closing a card still hides only that version.
  • Nothing left behind by updates. Update files go to updates in the data folder, not Downloads; each start deletes those of the running version or older.
  • Clean uninstall on Windows. Caches and downloaded updates go; the new Your data page keeps snapshots, settings and logs unless you tick the box (silent uninstall: --delete-app-data).
  • Disks page (title bar, start page, palette): every disk, scanned or not, as aligned dashboard cards.
    • Summary: capacity, free space, volumes, fastest link, capacity by storage type, and findings: nearly full volumes, slow links (PCIe 5.0 drive in a 4.0 slot, USB 3 reader on USB 2, SATA on a narrow controller), fast growth since the last snapshot, health warnings (critical, media errors, wear, spare blocks, heat).
    • Per disk: fullness, link vs top rate, lifetime and since-boot reads / writes (NVMe SMART, ATA Device Statistics), temperature, power-on time, SSD life left; its volumes with class mix, largest folders and snapshot growth.
    • No admin rights on Windows and macOS (NVMe via IOKit). On Linux, Read with administrator rights… asks once (polkit); a read-only helper reads NVMe and SATA, USB enclosures included.
  • About & updates settings page: version and install type, last / next check, the update card, component versions (Copy version info), and the last 30 releases with notes in your language.
  • Recycle Bin effect. Trash contents (Windows $Recycle.Bin, macOS ~/.Trash / .Trashes, freedesktop Trash on Linux) are hatched inside a marching coral outline in all three views, labeled with what emptying frees. Settings › Appearance makes it still or off; Reduce motion stills it. The Recycle Bin chip (R) leaves the bin out of the picture; its default for new views is in Settings › Visualization.
  • Headless mode. SpaceKnife --headless serves the interface to a browser, without a window; --listen 0.0.0.0 opens it to the network after a red warning you confirm with Y (--yes for services). Random-token link, backend on 127.0.0.1, HTTPS via --tls-cert / --tls-key; runs on display-less Linux servers. In the browser, paths are typed and deletes happen on the server (5-second undo kept). On Windows run SpaceKnife without .exe so the terminal waits. Docs.
  • New Code and Data classes, far less Other. Code: sources and build / package output (py, ts, pyc, pdb, whl…); Data: weights, datasets, databases (safetensors, gguf, onnx, parquet, sqlite…). Other classes learned RAW, design, VM, crash-dump, e-book and mail formats: 430+ extensions. On a dev disk Other fell from 60% to 34% of space (78% → 33% of files). An edited class table stays; Restore default classes switches.
  • Folders decide their files' class. Recognised game installs are the new Games class whatever the extension (Steam, Epic, GOG, Xbox, EA, Ubisoft, Riot, HoYoPlay / miHoYo, Hypergryph, Unity / Unreal / Godot, Blizzard, Minecraft, saves); project folders (.git, package.json, Cargo.toml, *.sln…) are Code; model caches Data; system metadata and unclassed files of installed software Programs. A lone package.json in Downloads doesn't count. Other: 34% → 2% on a 2.7 TB dev disk. Classes shows the by-extension view, Details says why, and Classify in the context menu sets your own (listed in Settings › File classes).
  • Hover a class to see where it is. Hovering a row or bar segment on Classes dims the rest of the picture and outlines that class's files, blocks and folders; nothing is filtered.
  • Resizable details panel: drag its edge (280–640 px), double-click to reset; the width is remembered.
  • Reorder tabs: drag sideways (Esc cancels) or Ctrl+Shift+PgUp / PgDn (also in the palette).

Fixes

  • Classes page no longer wraps: a class-colored bar, then one aligned row per class (files, size, share); counts shorten when narrow; click to filter. Code and Data fold away under 2% and 8 GB (Show all classes).
  • TypeScript is no longer video: .ts / .mts over 16 MB, or over 1 MB and a whole number of 188-byte packets (192 for .mts), are video; the rest is code. Nothing is read from the file.
  • A filter can always be left: Clear filter in Matches, × on the match bar, and Esc on the picture when nothing is selected.
  • Singular English labels ("1 file", "1 largest file"). Thanks to @nimalagnanaguru (#16).
  • Deleted space no longer shows as unknown: deletions in a monitored scan (Explorer, emptying the bin, other programs) now free space at once; views follow the volume's free space after each change.

Known limitations

  • Not code-signed or notarized; deb and rpm not yet tested on clean RHEL 9 / Ubuntu 22.04.
  • No seamless update yet on macOS, deb and rpm: the card opens the disk image or package.

License: MIT. Third-party licenses ship in resources/licenses/.


简体中文

SpaceKnife 是看清磁盘被什么占满的硬盘占用分析工具,支持 Windows、Linux 和 macOS。它受 SpaceSniffer 启发,是独立开发的新项目,与 SpaceSniffer 及其作者没有任何关联。官网 · 文档

这是预发布版:Windows 和 Linux 版没有代码签名,macOS 版是 ad-hoc 签名,未经公证。

下载

系统 文件 大小
Windows 10+ x64 SpaceKnife-0.3.3-Setup-x64.exe 137 MB
Windows 10+ x64 便携版 SpaceKnife-0.3.3-win-x64-portable.zip 175 MB
macOS 14+,Apple Silicon SpaceKnife-0.3.3-mac-arm64.dmg 141 MB
macOS 14+,Intel SpaceKnife-0.3.3-mac-x64.dmg 148 MB
Ubuntu 22.04+ / Debian 系 spaceknife_0.3.3_amd64.deb 132 MB
RHEL 9+ / Fedora 系 spaceknife-0.3.3.x86_64.rpm 119 MB
其他 Linux x64 SpaceKnife-0.3.3-x86_64.AppImage 164 MB
Linux x64 便携版 SpaceKnife-0.3.3-linux-x64-portable.tar.gz 162 MB
  • 从 0.3.2 升级:点右上角的徽章,卡片下载对应安装方式的文件并核对 SHA-256,快照和设置都保留。
  • Windows:直接在旧版上运行新安装程序。未签名,SmartScreen 提示时点「更多信息 › 仍要运行」。
  • macOS:拖进「应用程序」;第一次打开到「系统设置 › 隐私与安全性」点「仍要打开」(步骤)。
  • 便携版:解压即用,数据都在程序旁的 data 里;手动升级时替换 data 以外的文件。
  • Linux:deb / rpm 装到 /opt/SpaceKnife(命令 spaceknife)。AppImage 需要 FUSE 2(libfuse2),或加 --appimage-extract-and-run;可用 AppImageUpdate 就地更新。
  • 校验和:SHA256SUMS.txt(安装包)、SHA256SUMS-portable-*.txt、SHA256SUMS-mac-*.txt。

新功能

  • 两种更新方式:新版本在后台下载并校验,之后更新卡片给出:
    • 「无缝更新」:Windows 安装版静默安装;便携版由新版本自带的后端换文件(不用脚本,data 保留,失败自动回滚);AppImage 替换文件本身。完成后自动重新打开。
    • 经典方式:「运行安装程序」(带向导)、「打开磁盘映像」/「打开安装包」(macOS、deb、rpm),或「自己替换」(便携版、AppImage)。
  • 从不自己安装:检查和下载可以自动,安装一律等你点击;以后也不会加自动安装的选项。
  • 跳过一整个系列:「跳过 0.4.x」(大版本是「跳过 1.x」)让这个系列的所有版本都不再弹卡片、对话框和徽章,也不自动下载,重启后依然有效;其他系列照常提示。在「设置 › 关于与更新」点「恢复提示」撤销。关闭卡片仍只关这一个版本。
  • 更新不留残余:更新文件放在数据文件夹的 updates 里而非「下载」;每次启动删除当前及更旧版本的更新文件。
  • Windows 干净卸载:删除缓存和下载的更新;新的「你的数据」页默认保留快照、设置和日志,勾选才删除(静默卸载加 --delete-app-data)。
  • 「本机磁盘」页(标题栏、开始页、命令面板):所有盘(扫描过与否)排成逐段对齐的仪表盘卡片。
    • 汇总:容量、可用空间、卷数、最快链路、按存储类型分段的容量条,以及发现:快满的卷、链路降速(PCIe 5.0 盘插 4.0 槽、USB 3 读卡器接 USB 2、SATA 接窄通道扩展卡)、比上次快照增长很多的卷、健康警告(严重警告、介质错误、寿命、备用块、温度)。
    • 每块盘:用量、链路相对最高速率、整个寿命和开机以来的读写量(NVMe SMART、ATA 设备统计)、温度、通电时间、SSD 剩余寿命,以及盘上各卷的类别构成、最大文件夹和快照增长。
    • Windows 和 macOS(NVMe 经 IOKit)无需管理员权限;Linux 上点「用管理员权限读取…」才通过 polkit 授权一次,由只读助手读取 NVMe 和 SATA,USB 硬盘盒也行。
  • 「关于与更新」设置页:版本和安装方式、上次 / 下次检查、更新卡片、组件版本(「复制版本信息」),以及最近 30 个版本的发布说明(按界面语言)。
  • 回收站特效:回收站里的东西(Windows $Recycle.Bin、macOS ~/.Trash / .Trashes、Linux freedesktop 回收站)在三种可视化里蒙上暗纹、围上流动的珊瑚色虚线,并标出清空能释放多少。「设置 › 外观」可改为静态或关闭,「减少动画」时静止。「回收站」芯片(R)让它不占画面,新视图的默认值在「设置 › 可视化」。
  • 无头模式:SpaceKnife --headless 不开窗口,把界面提供给浏览器;--listen 0.0.0.0 向网络开放,先显示红色警告、输入 Y 确认(服务用 --yes)。链接带随机令牌,后端只听 127.0.0.1,--tls-cert / --tls-key 提供 HTTPS;没有显示器的 Linux 服务器也能跑。浏览器里路径靠输入,删除发生在服务器上(照样 5 秒撤销)。Windows 上写 SpaceKnife(不加 .exe)终端才会等待。文档。
  • 新增「代码/开发」「数据/模型」,「其他」大减:代码含源码与构建、包管理产物(py、ts、pyc、pdb、whl……),数据含模型权重、数据集、数据库(safetensors、gguf、onnx、parquet、sqlite……)。其他类别新认识相机 RAW、设计、虚拟机、崩溃转储、电子书、邮件等格式,共 430 多个扩展名。开发机上「其他」从 60% 降到 34%(文件数 78% → 33%)。改过的类别表保持不变,「恢复默认类别」才切换。
  • 文件夹决定里面文件的类别:认出的游戏目录里不论扩展名都算新类别「游戏」(Steam、Epic、GOG、Xbox、EA、Ubisoft、Riot、HoYoPlay / miHoYo、鹰角、Unity / Unreal / Godot、暴雪、Minecraft、存档);项目文件夹(.git、package.json、Cargo.toml、*.sln……)算「代码/开发」;模型缓存算「数据/模型」;系统元数据和已安装软件里无类别的文件算「程序/系统」。「下载」里单个 package.json 不算项目。2.7 TB 开发机上「其他」34% → 2%。「类别统计」给出按扩展名的本来面目,「详情」说明原因,右键「归类」可自己指定(列在「设置 › 文件类别」)。
  • 悬停类别即在图上标出:在「类别统计」悬停一行或一段分段条,图上其余部分压暗,这一类的文件、块和文件夹亮起轮廓;不做过滤。
  • 详情面板可调宽:拖动边缘(280–640 像素),双击恢复默认,宽度会记住。
  • 标签可调顺序:左右拖动(Esc 取消),或 Ctrl+Shift+PgUp / PgDn(命令面板里也有)。

修复

  • 「类别统计」不再换行:顶部是按类别配色的分段条,每类一行、各列对齐(文件数、大小、占比);面板窄时缩写,单击即过滤。「代码/开发」「数据/模型」低于 2% 且不到 8 GB 时收起(「显示全部类别」)。
  • TypeScript 不再算视频:.ts / .mts 超过 16 MB,或超过 1 MB 且正好是整数个 188 字节包(.mts 为 192)的算视频,其余算代码;不读文件内容。
  • 过滤随时能退出:「匹配结果」标题有「清除过滤」,匹配条上有 ×,图上没有选中项时按 Esc 也行。
  • 详情栏英文单数(「1 file」「1 largest file」)。感谢 @nimalagnanaguru(#16)。
  • 删除的空间不再算成未知空间:监控中的删除(资源管理器、清空回收站、其他程序)现在立即释放空间,视图在每次变化后跟随卷的可用空间。

已知限制

  • 没有代码签名或公证;deb、rpm 还没在干净的 RHEL 9 / Ubuntu 22.04 上测过。
  • macOS 和 deb / rpm 暂无「无缝更新」:卡片会打开磁盘映像或安装包。

许可证:MIT。第三方许可证在 resources/licenses/ 里。