Homebrew formulas for jrnxf's tools.
brew install jrnxf/tap/thokrthokr: sleek typing tui with visualized results and historical loggingfsrx: flow state reading in the terminaldrip: scriptable notifications from the Mac notch.brew install jrnxf/tap/dripdownloads its prebuilt universal binary, for Apple silicon and Intel, with its shell completions and man page, and nothing to compile.brew install --HEAD jrnxf/tap/dripbuilds its latestmain.okfs: web file browser. No release yet, so install its latestmainwithbrew install --HEAD jrnxf/tap/okfsand update it withbrew reinstall okfs. From v0.1.0,brew install jrnxf/tap/okfsdownloads its prebuilt binary for macOS or Linux, on ARM or x86-64, with its shell completions and man page, and nothing to compile.vxr: fast voxel scenes, a voxel scene editor for macOS with an MCP server for coding agents.brew install jrnxf/tap/vxrdownloads its latest release, one universal app for Apple silicon and Intel with nothing to compile (pre-releases until v0.1.0). Thenvxr setup appadds it to Spotlight andvxr setup claude(or codex) lets that agent edit scenes. Before its first release,brew install --HEAD jrnxf/tap/vxrbuilds its latestmain.
To have a project update its formula on every release, see Updating a formula from a project's release.
scripts/bump-formula.sh points a formula at a release. It reads the repository address from the formula's homepage, which must be https://github.com/<owner>/<repo>, and expects the release tag to be v<version>. A leading v on the version argument is accepted. It has two modes.
With only a formula and a version, the formula builds from the tag's source archive:
scripts/bump-formula.sh thokr v0.7.0This writes the top-level url and sha256, pointing at https://github.com/<owner>/<repo>/archive/refs/tags/v<version>.tar.gz.
With <platform>=<asset> arguments, the formula installs files attached to the GitHub release instead:
scripts/bump-formula.sh okfs v0.1.0 \
macos-arm=okfs-0.1.0-aarch64-apple-darwin.tar.gz \
macos-intel=okfs-0.1.0-x86_64-apple-darwin.tar.gz \
linux-arm=okfs-0.1.0-aarch64-unknown-linux-musl.tar.gz \
linux-intel=okfs-0.1.0-x86_64-unknown-linux-musl.tar.gzThe platforms are macos-arm, macos-intel, linux-arm and linux-intel. macos and linux stand for both architectures of that system, for example a universal macOS binary. Leave out a platform the project has no binary for.
Each asset is downloaded from https://github.com/<owner>/<repo>/releases/download/v<version>/<asset> and hashed. When the release also has <asset>.sha256, its first field must match, or the script stops.
The script writes:
- one asset for every platform given (such as
macos=drip-0.1.0-universal-apple-darwin.tar.gz): a top-levelurlandsha256, the same as the source mode. Use it for a formula that only runs on one system and says so, such asdepends_on macos:. - different assets: an
on_macosand anon_linuxblock, each with anon_armand anon_intelblock holding that platform'surlandsha256. Homebrew does not accept aurldirectly insideon_macosoron_linux.
on_macos do
on_arm do
url "https://github.com/jrnxf/okfs/releases/download/v0.1.0/okfs-0.1.0-aarch64-apple-darwin.tar.gz"
sha256 "..."
end
on_intel do
url "https://github.com/jrnxf/okfs/releases/download/v0.1.0/okfs-0.1.0-x86_64-apple-darwin.tar.gz"
sha256 "..."
end
endEvery run replaces what the last run wrote, in either mode: the top-level url and sha256, and any on_macos or on_linux block that holds a url. A formula can move between the modes this way.
A formula that uses the binary mode needs a few things the script does not write:
- Homebrew allows one
on_macosand oneon_linuxblock per formula, so the formula cannot have its own block for a system the script writes one for. The script stops with an error instead. def installinstalls what the asset holds. An asset can be an archive or a bare file, and the script hashes it either way. brew unpacks a.tar.gzand steps into its one top-level directory, so with<name>(mode 0755) at the top of the archive,bin.install "okfs"works for every platform. A bare binary downloads without its executable bit, and brew does not add one, so it needschmod 0755and a rename.- If the formula keeps
headto build from source, its build dependencies go in ahead doblock with theurlof the repository, so a binary install does not pull them in.def installthen checksbuild.head?to choose between building and installing the binary.