codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

Feature: Homebrew tap support for macOS installation

Open phpmac opened this issue 5 months ago • 2 comments

Problem

Currently CodeGraph supports three installation methods:

  • curl | sh script
  • npm i -g @colbymchenry/codegraph
  • bun add -g @colbymchenry/codegraph

On macOS, brew install codegraph would be the most natural option for many developers. It also provides:

  • Automatic updates via brew upgrade
  • Easy uninstall via brew uninstall
  • Hash verification (sha256) built into the formula
  • PATH management handled by Homebrew

Proposed Solution

Provide a Homebrew tap (e.g., colbymchenry/tap/codegraph) with a formula that downloads the pre-built tar.gz from GitHub Releases, similar to how the install.sh script works.

The formula would be straightforward since darwin-arm64 and darwin-x64 builds already exist in Releases.

Alternative

If maintaining a separate tap is too much work, consider submitting to homebrew-core for wider visibility.

phpmac avatar Jun 04 '26 16:06 phpmac

Git config--dont allow/readme

treytracedit-lab avatar Jun 04 '26 16:06 treytracedit-lab

I wanted the same Homebrew workflow, so I put together a personal, unofficial tap for CodeGraph: https://github.com/lizijing98/homebrew-codegraph

It installs the upstream prebuilt release and verifies its SHA-256 checksum. I tested the install on an Apple Silicon Mac. If you'd like to try it:

brew tap lizijing98/codegraph
brew install lizijing98/codegraph/codegraph

After that, you can update it with brew upgrade lizijing98/codegraph/codegraph.

lizijing98 avatar Dec 01 '26 07:12 lizijing98