Repository navigation
Releases
Releases · sinhaparth5/heft
heft 2026.11.9
Changed
- pkgtop is now heft (another project already uses the pkgtop name). The command, release tarballs (
heft-linux-<arch>), repo and install URL are renamed. Re-runninginstall.sh(the old URL still works) replaces an installedpkgtopwithheftand leavespkgtopas a symlink to it.PKGTOP_VERSIONandPKGTOP_BIN_DIRare still read, and the size cache moves from$XDG_CACHE_HOME/pkgtopto$XDG_CACHE_HOME/hefton first run.
pkgtop 2026.11.8
Fixed
- On WSL, pkgtop no longer sits on a blank screen for ~50 s at startup (#11). WSL adds the Windows
PATH(/mnt/c/...), and checking each of its ~5k files over the 9P mount took several host round trips. Those directories are now listed from the directory entries alone, so thePATHscan dropped from 51 s to 0.23 s. Windows binaries still appear on the PATH tab.
pkgtop 2026.11.7
Fixed
- Scrolling with the mouse wheel or a touchpad no longer freezes the UI. Each wheel notch re-sorted the whole list and built ~50k formatted rows to do it (~11 ms at 2k packages), so a fast scroll queued up to a minute of work. Sorting now builds each row once, renders dropped from ~50 ms to ~4 ms, and 5000 wheel events drain instantly.
pkgtop 2026.11.6
Added
?opens a popup with every key.
Changed
- The Keys bar shows only the hints that fit the terminal width, starting with
? Keys, and is always on (?used to hide it). At 80 columns the top bar drops the ecosystem count so all five tabs fit.
pkgtop 2026.11.5
Added
- Docker tab (5): containers, images, volumes and networks with their sizes, read from the Docker API socket.
uremoves the selected item andtstarts or stops a container, each after a confirmation. Removing a running container or a built-in network (bridge,host,none) is refused; images are removed with all their tags.
pkgtop 2026.11.4
Added
- Update checks for apt and pacman, read from the local package indexes (
apt update/pacman -Sykeep them fresh; no network), and for Homebrew via formulae.brew.sh. apt and pacman checks also work in builds without libcurl. --asciidraws the TUI with ASCII only (borders, gauges, spinner, status glyphs), for terminals without box-drawing characters.- Mouse: click a tab, row or ecosystem; the wheel scrolls.
eopens an ecosystem picker (j/k to choose, Enter to keep, Esc to undo) instead of cycling.Tabmoves focus between the table and the Ecosystems pane (it no longer cycles tabs; use 1-4).- Sizes are remembered between runs (
$XDG_CACHE_HOME/pkgtop/sizes), so the TUI paints them at once. A package is only re-measured when its version, root or root's mtime changes. Caches show the last size until a fresh scan replaces it. - PATH ownership: pnpm's global bins (wrapper scripts) are traced to their package, and binaries in system dirs show the apt/pacman package that installed them instead of
system(filled in once manifests are read). - LAST ACTIVE column on the Packages tab (when the terminal is wide enough).
- apt/pacman libraries (no binaries, installed as a dependency) get a last-used time from the packages that depend on them, so they show up on the Stale tab and in
--stale. A library nothing depends on, or whose dependents are all unused, counts as unused since install. uon the PATH tab uninstalls the package that owns the binary.- npm's cache index is used as weak evidence of use for npm/pnpm globals: a registry fetch after install (npx, a project install) counts as use when nothing better is known.
Changed
- Rows on screen are sized first, so they no longer wait behind a huge cache or store.
uandpno longer wait for loading to finish; sizing pauses while the command runs and picks up after.
Fixed
uon an older Homebrew version runsbrew cleanup <name>instead ofbrew uninstall <name>, which removed the version in use rather than the selected one.- Versions are now compared properly (epochs, numeric parts, pre-releases), so an installed version newer than the registry's latest no longer shows as outdated.
pkgtop 2026.11.3
Changed
- Re-running
install.shupgrades in place: it replaces thepkgtopalready onPATHatomically (safe while it is running) and printsUpdated old -> new.
pkgtop 2026.11.2
Changed
install.shinstalls to/usr/local/binwhen run as root, sopkgtopis onPATHright away.
pkgtop 2026.11.1
Added
- Prebuilt releases: pushing a
vYYYY.MM.PATCHtag builds fully static Linux binaries (x86_64 and aarch64, musl, libcurl included) and publishes them on GitHub Releases with sha256 checksums and the changelog section as notes. CI builds and tests both architectures on every push and pull request. install.sh:curl -fsSL https://raw.githubusercontent.com/sinhaparth5/pkgtop/main/install.sh | shinstalls the latest release to~/.local/binafter checking its checksum (PKGTOP_VERSION,PKGTOP_BIN_DIRto override). On macOS and Windows it explains why not (Windows: use WSL).- CMake option
PKGTOP_STATICfor a fully static build; libcurl is now found through pkg-config. - Opt-in update checks, the only network access pkgtop makes:
pkgtop --outdatedlists packages whose registry has a newer version, andpkgtop --updatesopens the TUI with lookups running in the background (VERSION gets↑, Details shows Latest). Covers cargo (crates.io), uv and pipx (PyPI), npm and pnpm (npm registry) and Go binaries (proxy.golang.org, using the module path from the binary's build info). One request per package, 6 at a time, HTTPS only, 15 s timeout, cancelled on quit. Needs libcurl at build time; without it the flags explain that and exit. - Delegated uninstall and cache purge:
uon a package (Packages or Stale tab) orpon a cache opens a confirmation modal with the exact command and the space it frees; onlyyruns it. pkgtop leaves the screen, runs the ecosystem's own command on your terminal (no shell, sosudoprompts and Ctrl-C reach it), waits for Enter, then rescans only that provider and shows the exit status. Essential packages are refused, and so are Go binaries and cargo caches (no native command). Commands:apt remove,pacman -R,brew uninstall,cargo uninstall,uv tool uninstall,pipx uninstall,npm uninstall -g --prefix <its prefix>,pnpm remove -g; caches:apt clean,pip cache purge,uv cache clean,npm cache clean --force,pnpm store prune,brew cleanup --prune=all,go clean -modcache/-cache. - Usage and staleness: last use per package from zsh, bash and fish history (timestamped or not) and from the binaries' atime after install, with a confidence level (
●history,◐atime only,◌never seen or date unknown). apt and pacman binaries come from their manifests, other providers' from the$PATHgraph. The Stale tab andpkgtop --stalerank packages with binaries by bloat score (size × days idle); Details shows Last used, Evidence and Bloat. Essential packages and libraries without binaries are left out. - Reading files no longer bumps their atime when pkgtop owns them (
O_NOATIME), so scanning Go binaries doesn't make them look used. $PATHgraph: every executable on$PATHin lookup order, with its owning package (resolved through symlink chains), version manager (pyenv, rbenv, asdf, mise, nvm, volta) orsystem. Flags shadowed binaries (⚠), shims (↯) and broken links (✗, reported, never deleted). Directories that resolve to the same place (/bin→/usr/bin) count once. Shown in the TUI's PATH tab, where Details lists which copy wins, and aspkgtop --path.- Providers: pacman, Homebrew, uv tools, pipx, npm globals (including every nvm node), pnpm globals, and Go binaries (module version read from the
.go.buildinfoELF section). All read from disk; none run the tool. - Interactive TUI (run
pkgtopwith no arguments): Packages and Caches tabs, Ecosystems pane with disk bars, Details pane, keys panel and status line in the gruvbox palette. Sizes stream in from background workers while the UI stays responsive.j/k,g/G, PgUp/PgDn,/fuzzy filter,s/Ssort,eecosystem filter,1–4/Tabtabs,?keys panel,qquit. HonorsNO_COLOR; falls back to 256 colours without truecolor; collapses panes below 120 and 100 columns. pkgtop --list: headless inventory of installed apt packages, read directly from/var/lib/dpkg/status(no subprocess), with Essential flag and scan time.- cargo provider: packages from
$CARGO_HOME/.crates.toml(default~/.cargo) with their binaries;--listgains a BINS column. - Physical disk accounting:
st_blocks-based walker that counts hardlinks once, never follows symlinks, never crosses mount points, and counts unreadable entries as skipped (shown as+). Matchesdu -sx -B1byte-for-byte except for symlinks with long targets (counted as 0 to save astateach). pkgtop --list --sizes: per-package physical size (apt via/var/lib/dpkg/info/*.list, cargo via its binaries), sorted largest first.pkgtop --caches: size and file count of known caches (apt, cargo, pip, uv, npm, pnpm, go, Homebrew), honoringXDG_CACHE_HOME,CARGO_HOME,PIP_CACHE_DIR,UV_CACHE_DIR,PNPM_HOME,GOPATH,GOCACHE.