Nullify Storage Viewer
A fast WPF disk-space analyser for Windows (.NET 10).
- List mode – an expandable folder tree; each row has a bar showing its share of its parent folder, plus size, file/folder counts and modified date.
- Treemap mode – a squarified block graph where each rectangle's area is proportional to its size. Files are coloured by type (see the legend), folders are framed with a caption. Click to select, double-click a folder to zoom in, use the breadcrumb, Backspace or mouse-back to go up.
- Largest files (top 1,000, filterable) and File types (space per extension; double-click a type to list its largest files).
- Explorer context menu on every file and folder (list, treemap and side panels): the real Windows shell menu including shell extensions, "Send to", "Open with", etc. Hold Shift for extended verbs. The app adds Show in list / Show in treemap / Rescan / Copy full path. Delete uses Explorer's delete (Recycle Bin; Shift+Delete for permanent). Items removed through the menu disappear from the views.
- Scans ~1.7M files in about 5 seconds on an NVMe drive. Junctions and symbolic links are skipped to avoid double counting. If some folders can't be read, a Rescan as administrator button appears.
- Remembers window position, mode and panel width.
Keyboard: arrows / +/- expand and collapse, Enter toggles, Apps key or Shift+F10 opens the Explorer menu, Delete deletes.
Build and run
dotnet build src\Nullify.StorageViewer
src\Nullify.StorageViewer\bin\Debug\net10.0-windows\Nullify.StorageViewer.exe
Releases
Pushing a version tag runs .github/workflows/release.yml, which builds and attaches four zips to a GitHub release:
git tag v1.0.0
git push origin v1.0.0
| Zip |
Contents |
…-win-x64-self-contained.zip |
Single exe (~57 MB), no .NET install needed |
…-win-x64-framework-dependent.zip |
Small; needs the .NET 10 Desktop Runtime |
…-win-arm64-* |
The same for ARM64 Windows |
The tag (minus the v) becomes the assembly version. The workflow can also be run by hand from the Actions tab; that builds the zips as workflow artifacts without creating a release.
Command line
| Option |
Effect |
--scan <path> |
Scan the path on startup |
--treemap |
Start in treemap mode |
--reveal <path> |
After scanning, select this item |
--snapshot <file.png> |
Render the window off-screen to a PNG after scanning, then exit |
--mcp |
Run as an MCP server over stdio (window stays off-screen) |
--mcp --show |
MCP server with the window visible, so you can watch |
MCP server
--mcp runs the app as a Model Context Protocol server (newline-delimited JSON-RPC over stdin/stdout). The WPF window still exists, off-screen, so tools can drive the real UI and take snapshots.
.mcp.json registers it for Claude Code as storage-viewer, pointing at a Release copy in artifacts\app so it never locks your Debug build. Run .\publish.ps1 to create or refresh that copy. Stop the running server first, since it holds the exe open.
| Tool |
Purpose |
list_drives |
Drives with total/used/free |
scan |
Scan a drive/folder (waits by default; wait=false + get_status to poll) |
cancel_scan, get_status |
Progress, root summary, UI state |
list_folder |
Children by size, nested to depth, with more summarising the rest |
largest_files |
Top files, optional extension / name_contains |
largest_folders |
By size of files directly inside (direct) or recursive total |
file_types |
Space per extension with Windows type names |
find |
Wildcard / substring name search, sorted by size |
get_item |
Details, ancestor shares, largest children, exists-on-disk |
set_view |
Drive the UI: mode, treemap zoom, expand, select, side tab, filters |
snapshot |
PNG of the window (returned as an image; optional resize/scale/save) |
treemap_layout, treemap_hit_test |
Inspect the drawn treemap rectangles |
context_menu |
The item's Explorer menu (text, verbs, submenus) without showing it |
invoke_verb |
Run an Explorer verb (open, properties, …). delete/cut/rename need allow_destructive=true |
rescan |
Rescan one folder in place |
reveal_in_explorer |
Open Explorer with the item selected |
show_window |
Move the window on/off screen |
Layout
src/Nullify.StorageViewer/
Models/FsNode.cs tree node (sizes are recursive totals)
Services/DiskScanner.cs parallel scanner, largest-files and per-extension queries
Shell/ IContextMenu interop, shell icons and type names
Controls/TreemapControl.cs squarified treemap (DrawingVisual-based)
Controls/Palette.cs file-type colours
ViewModels/ main view model, list rows
Mcp/ stdio MCP server and tool set
MainWindow.* UI, command line, settings
License
Copyright 2026 Simon Soanes
Licensed under the Apache License, Version 2.0. See NOTICE.