burrow

command module
v0.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Burrow

Burrow is a free, open-source macOS app (Apple Silicon) that frees disk space and shows the live health of your Mac.

  • Clean scans for junk, lets you review it group by group down to single paths, and removes only what you pick. Caches and logs are deleted; things you might miss go to the Trash.
  • Status shows CPU, memory, network, battery, disk and thermal health, refreshed every second.

Burrow is a work in progress. See the v1 spec.

Credits

Burrow is built on Mole by tw93. Mole finds the junk and reads the system's health; Burrow bundles a pinned version of it and adds the interface and the removal. Thank you to Mole and its contributors.

Burrow is not affiliated with Mole or Mole for Mac and uses none of their assets.

Develop

You need Go (the toolchain line of go.mod fetches the pinned version) and Bun (the version in packageManager of package.json).

bun install                 # also fetches the pinned Mole into resources/
bun run dev                 # the app, with live reload
bun run build               # Burrow.app and a DMG in build/darwin-arm64/
bun run check               # lint, typecheck and unit tests, Go and TypeScript
bun run test:integration    # Go integration tests
bun run test:e2e            # Playwright, against the UI with a fake Go client
bun run test:smoke          # launches the built app
bun run test:realtrash      # moves a temp file into your real Trash; never in CI

Burrow ships its own Mole: mole.lock pins the release and the SHA-256 of what Burrow downloads, and bun run fetch:mole installs it, failing on any checksum mismatch. The source checksum is that of GitHub's archive of the tag; should GitHub ever regenerate it, the fetch fails safe and the lock needs a reviewed re-pin. dev, build and the tests fetch it first. To move to another release, run go run ./tools/fetchmole -update V1.63.0 and review the diff of mole.lock; the integration tests must pass in the same PR.

These scripts are the only entry points; CI runs the same ones. The app is built with MyGo: the Go side is in main.go and internal/, the React frontend in src/, and src/mygo.ts is generated from the Go services by bun run generate.

Release

  1. Set version in mygo.config.ts (X.Y.Z) and merge it.
  2. Push the tag v plus that version: git tag v0.2.0 && git push origin v0.2.0. A tag such as v0.2.0-rc.1 publishes a pre-release of 0.2.0, to try the pipeline.

.github/workflows/release.yml fails on any other tag before building, runs all of CI, builds the app signed ad hoc, smoke tests it, and publishes its DMG and SHA256SUMS as a GitHub release. The install guide of .github/release-notes.md comes above notes generated from the merged PRs: there is no hand-written changelog. To sign with another identity, set the repository variable MACOS_SIGNING_IDENTITY and add a step importing that identity into the runner's keychain before the build.

Architecture decisions are in docs/adr/ and the domain language in GLOSSARY.md.

License

GPL-3.0.

Documentation

Overview

Burrow frees disk space and shows system health on macOS. This file only wires the app: it binds the services and opens the window.

Directories

Path Synopsis
internal
automation
Package automation lets the process that launched Burrow run scripts in its page, the way the built-app smoke test drives Scan and Clean.
Package automation lets the process that launched Burrow run scripts in its page, the way the built-app smoke test drives Scan and Clean.
clean
Package clean owns Burrow's Scan contract.
Package clean owns Burrow's Scan contract.
clean/cleantest
Package cleantest holds test doubles for the Clean engine.
Package cleantest holds test doubles for the Clean engine.
engine
Package engine is Burrow's deep module: it decides what Burrow does with what Mole finds and measures.
Package engine is Burrow's deep module: it decides what Burrow does with what Mole finds and measures.
mole
Package mole is Burrow's adapter to the Mole release that ships inside it (ADR 0001).
Package mole is Burrow's adapter to the Mole release that ships inside it (ADR 0001).
service
Package service holds the MyGo bound services the frontend calls.
Package service holds the MyGo bound services the frontend calls.
testhome
Package testhome creates the fake HOME shared by Burrow's unit, integration, and smoke tests.
Package testhome creates the fake HOME shared by Burrow's unit, integration, and smoke tests.
tools
fetchmole command
Command fetchmole puts the Mole release that mole.lock pins into the app's resources, after checking it against the lock's checksums.
Command fetchmole puts the Mole release that mole.lock pins into the app's resources, after checking it against the lock's checksums.
releasetag command
Command releasetag checks a release tag against the version in mygo.config.ts and prints, as GitHub Actions step outputs, what the release workflow publishes.
Command releasetag checks a release tag against the version in mygo.config.ts and prints, as GitHub Actions step outputs, what the release workflow publishes.
testhome command
Command testhome generates Burrow's deterministic fake HOME and prints its expected Scan manifest as JSON for smoke-test setup.
Command testhome generates Burrow's deterministic fake HOME and prints its expected Scan manifest as JSON for smoke-test setup.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL