Comparison
ast-grep-cli vs flawfinder vs semgrep
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Structural Search and Rewrite code at large scale using precise AST pattern.
Actively maintained. Last release 2 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install ast-grep-clia program that examines source code looking for security weaknesses
Maintained. Last release 7 months ago. Weaker on release cadence.
$
pip install flawfinderLightweight static analysis for many languages. Find bug variants with patterns that look like source code.
Actively maintained. Last release 7 days ago, commits in 23 of the last 26 weeks. A safe choice.
$
pip install semgrepIn short
- semgrep is the most used: 23.8M downloads a month, 5.3× more than ast-grep-cli.
- Maintenance is comparable: ast-grep-cli 93, semgrep 86, flawfinder 54 on Pythie’s Index.
- ast-grep-cli is growing fastest: downloads +19% over the last month.
- Safe default for a new project: semgrep.
Side by side
| Metric | ast-grep-cli | flawfinder | semgrep |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | 54 |