Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service
README.md

Getǣl #

Getǣl (Old English for count, reckoning, tally) is a strictly read-only macOS Rust web service that scans, caches, live-monitors, and visualizes disk usage across your home directory (~) alongside native APFS volume capacity and Time Machine local snapshot telemetry.

Note

This project was created by AI. Gemini Neon created the plan from the initial request, Gemini Hydrogen implemented the code, and Gemini Neon fixed the bugs discovered by the user.

Quick Start & Compilation #

Prerequisites: macOS, recent Rust toolchain (cargo), and recent (>24) Node.js / npm (used during compilation to build the embedded web UI). You'll also need to clone the git repo to somewhere convenient.

# 1. Build the release binary (automatically builds web/dist/ and embeds it)
cargo build --release

# 2. (Optional) Pre-populate the SQLite cache with a one-shot scan of ~
./target/release/getael scan

# 3. Start the read-only local server on http://127.0.0.1:6174 and open it
./target/release/getael serve --open

About web/dist and build order: You do not need to create ./web/dist manually or run npm run build separately — build.rs automatically runs npm ci (if web/node_modules is missing) and npm run build whenever web/dist/index.html is missing or older than web/ sources, right before rust-embed embeds the bundle into the binary.

If you choose to build the frontend manually (for example, when setting GETAEL_SKIP_WEB_BUILD=1), always run cd web && npm ci && npm run build before cargo build --release so the latest assets are baked into the compiled binary.

Other useful CLI commands:

./target/release/getael status            # Check running service or local cache status
./target/release/getael serve --port 7174 # Override default port (6174)

Highlights #

  • Strictly Read-Only: Never modifies, moves, deletes, or thins any user file or Time Machine snapshot. Writes only to its own cache (~/Library/Caches/getael/), config, and logs. Every HTTP route is GET-only.
  • Native macOS APFS Telemetry:
    • Always-visible mounted volume gauge separating Home (~), Other APFS Container Volumes, Purgeable Pool (NSURLVolumeAvailableCapacityForImportantUsageKey), and Strictly Free Space.
    • Dedicated Time Machine Local Snapshots telemetry module & ledger (diskutil apfs listSnapshots -plist) showing snapshot count, timeline, purgeable status, shrink-lock warnings, and XID churn sparkline.
  • Fast Startup Scan + Persistent Cache + Live FSEvents:
    • Serves cached per-directory sizes immediately on startup while running a full scan of ~ (including hidden files) in the background.
    • Physical allocated bytes (st_blocks * 512) by default — honoring APFS sparse files, hardlink deduplication, same-device mount boundaries, and iCloud dataless files — with instant UI toggle to Logical size.
    • Keeps sizes current in near real time via Apple FSEvents with 2 s coalescing and O(depth) ancestor delta propagation pushed to connected browsers over SSE.
  • Eight Interactive Visualization Lenses:
    1. Cell Map — Weighted Voronoi Treemap
    2. Topography — Van Wijk 3D-Cushioned Treemap
    3. Astrolabe — Zoomable Radial Sunburst
    4. Strata — Icicle / Flame Cross-Section
    5. Fossils & Dust — Age × Size Log-Scatter Plot
    6. Block Tapestry — Hilbert Space-Filling Curve
    7. Storage River — Alluvial / Uncursed[1] Sankey Flow Diagram
    8. Constellations — Zoomable Circle Packing
  • Single Local Binary & macOS Service: Embeds the offline web UI via rust-embed, listens on plain HTTP http://127.0.0.1:6174 (Kaprekar's Constant), and ships a launchd LaunchAgent installer.

Project Documentation #

  • CONTEXT.md — Architecture, macOS APFS realities, module seams, caching engine, and read-only API contract
  • DESIGN.md — Precision Cartographic Instrument design system, color tokens, typography, and all eight Lenses
  • GLOSSARY.md — Canonical domain vocabulary
  • AGENTS.md — Agent rules, skills, quality bar, and Git worktree workflow
  • plans/ROADMAP.md — Ordered implementation roadmap for building Getǣl phase by phase

macOS Background Service (launchd) #

Install and load the user LaunchAgent (~/Library/LaunchAgents/local.getael.plist) with ProcessType = Background and LowPriorityBackgroundIO = true:

./target/release/getael service install --port 6174
./target/release/getael service status
./target/release/getael service uninstall

Logs are written to ~/Library/Logs/getael/ and the SQLite WAL cache is stored at ~/Library/Caches/getael/cache.sqlite3.

Full Disk Access (Optional) #

macOS TCC protects directories such as ~/Library/Mail, ~/Library/Messages, and ~/Library/Safari. Without Full Disk Access, Getǣl records these safely as PermissionDenied (NO ACCESS badge) without aborting the scan. To include them in your tally, grant Full Disk Access to your terminal or the getael binary in System Settings → Privacy & Security → Full Disk Access.

Troubleshooting #

  • Port 6174 already in use: Override with GETAEL_PORT=7174 getael serve or ~/.config/getael/config.toml (port = 7174).
  • Stale cache: Run getael scan to force a fresh full scan of ~ and reconcile SQLite.

  1. Please trust me in that you do not need to know. That way lies madness. ↩︎