ast-grep
Install command:
brew install ast-grepCode searching, linting, rewriting
License: MIT
Development: Pull requests
Formula JSON API: /api/formula/ast-grep.json
Formula code: ast-grep.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 0.51.1 |
| head | ⚡️ | HEAD |
Depends on when building from source:
| rust | 1.99.1 | Safe, concurrent, practical language |
Binaries:
ast-grep,
sg
GitHub Packages downloads:
| Last 30 days | 60,368 |
|---|---|
| Downloads | 487,920 |
| Analytics install events (30 days) | 13,700 |
| Downloads / install events (30 days) | 4.4× |
Source: GitHub Packages, fetched 2026-11-07T00:49:12Z. Analytics dates: 2026-10-08 to 2026-11-07. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 13,684 | 30,214 | 91,931 |
Installs (--HEAD) | 16 | 33 | 124 |
| Installs on Request | 13,664 | 30,158 | 91,671 |
Installs on Request (--HEAD) | 16 | 33 | 124 |
| Build Errors | 7 | ||
Build Errors (--HEAD) | 1 |