Ast-grep
ast-grep is a powerful tool that helps developers find and tidy up specific patterns in their computer code across thousands of files simultaneously.
Platform availability
Available on 0 of 10 platforms
- Unraid (not listed)
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
82/100 Excellent
- Maintained
- 100last commit 4 days ago
- Popular
- 8416,625 GitHub stars
- Easy to install
- 250 install platforms, install notes, Docker image
- Light to run
- No data
- Security check
- 100no serious findings, CI, tests
Based on 4 of 5 factors.
- GitHub stars
- 16,625
- Open issues
- 48
- Last commit
- 2026-11-16
- Latest release
- 0.51.3
- License
- MIT
- Activity
- rising
Checked 3 days ago - source: GitHub (ast-grep/ast-grep)
Resources & Compatibility
ARM (e.g. Raspberry Pi) is supported.
Checked 54 days ago - source: Docker Hub image tags and published docs
First-install notes
- Install the npm package If you are using this in a Node.js project, open a terminal in that project and run npm install dockerfile-ast. This downloads the package so your program can use it; without it, the program will error when it tries to import dockerfile-ast. source
Fetched 53 days ago - each note links to its source
Variants
Alternatives
No alternatives collected yet.
Common questions
How can I use ast-grep programmatically in a Node.js project?
It provides a Node.js binding for accessing syntax trees programmatically. Install the @ast-grep/napi package to use jQuery-like traversal methods and opt-in type safety.
Can ast-grep work with custom languages?
Yes, it supports many languages out of the box. It can also register custom tree-sitter parsers by dynamic loading.
How should I debug an ast-grep rule that behaves unexpectedly?
Simplify the code and the rule step by step to isolate the behavior.
Does ast-grep provide an interactive way to review code changes?
It provides an interactive editing experience for reviewing code changes and refining patterns.
Can ast-grep be used to enforce team coding standards?
It can help tech leads enforce code best practices tailored to business needs.
Answers sourced from ast-grep.github.io, ast-grep.github.io, github.com, www.reddit.com
Community
- astgrep - Reddit (reddit)
- Meet ast-grep: a Rust-based tool for code searching, linting ... - Reddit (reddit)
- anyone using ast-grep? did you write the rules yourself? (reddit)
- Newest 'ast-grep' Questions - Stack Overflow (forum)
Collected 48 days ago - public community threads