Files
gpuix/examples
Tommy D. Rossi b3c2823e01 feat(disktree): publish disktree as its own npm package
`bunx disktree [dir]` opens the treemap on a folder, the current directory,
or `/`. Published as disktree@0.1.0.

- moved from examples/ to a `disktree` workspace package: src/app.tsx
  (store + view), src/cli.tsx (bin), src/core.ts, src/scan-worker.ts
- scan runs on a pool of worker threads with sync lstat, like the Rust
  original on rayon; the frontier is handed back after 400 dirs so deep
  trees spread across workers. Full disk here: 24.5M files in 150 s, no
  stall
- skips iCloud dataless folders (SF_DATALESS via bun:ffi lstat), like the
  Rust scanner; listing them made macOS download them and stalled the scan
- keeps the 12 largest files per directory, folds the rest into one
  "N smaller files" tile
- store lives on globalThis so `bun --hot` remounts instead of starting a
  second full scan
- scan progress bar uses used disk space as the total when scanning a
  volume root
- lighter pastel tiles at 90% opacity

Session: ses_f1cc78bbbffeiqA1qhn3vB0pzN
2026-09-27 17:18:30 +02:00
..