ast-grep (devel/ast-grep) Updated: 1 week, 3 days ago Add to my watchlist

A CLI tool for code structural search, lint and rewriting.

ast-grep is a AST-based tool to search code by pattern code. Think it as your old-friend grep but it matches AST nodes instead of text. You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure. You can use $ sign + upper case letters as wildcard, e.g. $MATCH, to match any single AST node. Think it as REGEX dot ., except it is not textual.

Version: 0.30.0 License: MIT GitHub
Displaying statistics for 1,138 users who made submissions during: until

Statistics for selected duration

2024-Oct-23 to 2024-Nov-22


Total Installations 2
Requested Installations 2


macOS Versions

Loading Chart

Port Versions

Loading Chart



Xcode Versions

Loading Chart

CLT Versions

Loading Chart



Variants table

Variants Count


Monthly Statistics

Can remain cached for up to 24 hours