🍺 BREW Explorer

← all formulae

ast-grep

brew install ast-grep v0.43.0 MIT

Rust-based structural code search, lint, and rewrite tool supporting 10+ languages via AST matching.

Why you might care

Search and refactor code by syntax structure rather than regex—find function calls, variable assignments, etc. across JavaScript, Python, Go, Java, and more with pattern matching. Single binary, fast, and great for large-scale codebase migrations and custom linting rules that text patterns can't express.

Categories

Alternatives

codemod comby ripgrep ESLint
8.6k
30-day installs · #392
22.6k
90-day · #482
54.8k
365-day · #640

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "codemod",
    "comby",
    "ripgrep",
    "ESLint"
  ],
  "build_dependencies": [
    "rust"
  ],
  "categories": [
    "search",
    "linter",
    "parser"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Code searching, linting, rewriting",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:35+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "ast-grep",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://ast-grep.github.io/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "ast-grep | structural search/rewrite tool for many languages",
  "installs_30d": 8607,
  "installs_365d": 54761,
  "installs_90d": 22605,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:44:35+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "ast-grep",
  "oldnames": [],
  "one_liner": "Rust-based structural code search, lint, and rewrite tool supporting 10+ languages via AST matching.",
  "optional_dependencies": [],
  "rank_30d": 392,
  "rank_365d": 640,
  "rank_90d": 482,
  "raw_hash": "ac2a65cf4a4dc03d",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/a/ast-grep.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.43.0",
  "versioned_formulae": [],
  "why_use_this": "Search and refactor code by syntax structure rather than regex\u2014find function calls, variable assignments, etc. across JavaScript, Python, Go, Java, and more with pattern matching. Single binary, fast, and great for large-scale codebase migrations and custom linting rules that text patterns can\u0027t express."
}