ast-grep
Find Code by Syntax
ast-grep.github.io Source★ 2,932MIT Discord RedditSoftware Development / Testing & Code Quality
- Monthly visits
- 11.5K
- Down14.3%MoMOct 2026
- Public revenue
- Undisclosed
- No public revenue evidence yet
- Entry price
- Free
- No monthly subscription pricing
- Launched
- 3y ago
- 2023-01-31 · Est.
Traffic
Marketing moves
Launches, search & content, referrals, promotions- https://t.co/mLEtNamsSK
@hd_nvim · 2026-11-06 · 15 likes · 0 reposts · 548 views
Launched on V2EX (6 comments)Launch
分享一下 ast-grep,结构化代码搜索工具 — 第一次在 v2 发帖,给大家介绍个基于 AST 的结构化搜索工具 ast-grep 可以用模式代码或者规则来结构化匹配代码,而不是文本。这样可以避免 grep 文本的差错。 目前 ast-grep 支持了 C/C++, Java, JavaScript, Python, Ru…
Jan 7, 2024 · 2y agoLaunch page
Launched on 阮一峰周刊投稿 (2 upvotes)Launch
【开源自荐】ast-grep 基于AST的代码搜索重写工具 — [ast-grep](https://ast-grep.github.io/) 是一个基于抽象语法树的代码搜索和重写的工具。 卖点:使用简单,性能优秀。将搜索AST的难度降低到类似于写CSS选择器和写模版代码。 特色:支持多种语言搜索,支持多平台,支持多种安装方法,支持多种使用方法(单次模式搜索/YAML规则搜索/API程序化搜索)。 典型使用场景:需要大量重复机械修改的情况,例如升级库或 API 破坏性更改。 ## 搜索/重写  ## YAML…
Dec 24, 2023 · 2y agoLaunch page
Launched on Product HuntLaunch
A polyglot tool for code searching, linting, rewriting
May 11, 2023 · 3y agoLaunch page
Launched on Show HN (11 pts · 2 comments)Launch
AST-grep, a grep/eslint/codemod hybrid tool, powered by tree-sitter. — It is heavily inspired by semgrep, but intends to be an AST-base searcher/linter/rewriter. https://github.com/ast-grep/ast-grep
May 10, 2023 · 3y agoLaunch page
Launched on DevHunt (7 upvotes · 2 comments)Launch
ast-grep — ⚡A fast and polyglot tool for code structrual search, lint and rewriting at large scale.
Jan 31, 2023 · 3y agoLaunch page
Open Source & Agent Ecosystem
- GitHub Stars
- ★ 2,932
- Forks
- 98
- License
- MIT
- Primary language
- JavaScript
Agent, MCP & Developer Integration
CLI / SDK- Exposed tool capabilities:
- Code AuditCode structural searchLintRewriting at large scaleStructural search and replace
Traffic sources
Traffic breakdown
Channels
- Direct40%
- Organic Search33%
- Referrals11%
- Social6%
- Other10%
Countries
- United States47%
- Vietnam11%
- Taiwan10%
- Thailand9%
- India8%
Search
Domain authority —Domain registered 2013-03-08
| Keyword | Monthly volume |
|---|---|
| ast-grep | 1,280 |
| ast grep | 830 |
| astgrep | 340 |
| ast search ai | 90 |
| ast-grep nodejs | 70 |
Traffic data: Vaneform
Pricing
Public pricing: FreeRaw source text; structured plans are extracted after website capture.
Pages & changes
Key pages
Weekly snapshots- Homeast-grep.github.io/
- Featuresast-grep.github.io/catalog/ Snapshot 2026-11-04
Design
Minimal Monochrome (Light canvas, balanced density) featuring split copy & visual layout and code block / terminal / cli visuals.
First-screen preview · click to zoom
First-screen pitch & conversion flow
“AST-GREP — Find Code by Syntax”
Split Copy & Visual hero structure paired with download app / install extension CTA and no explicit trust bar.
Conversion path: Split Copy & Visual + Code Block / Terminal / CLI → Download App / Install Extension
- Category Positioning Anchor
- Large Hero Product Shot
- Code & Terminal
Palette · click to copy
- Typography
- 7.0
- Color & Contrast
- 7.0
- Layout & Spacing
- 8.0
- Craft & Polish
- 7.0
- Distinctiveness
- 6.0
Structure
- Fonts
- Arial / monospace
- Hero layout
- Split Copy & Visual
- Primary visual
- Code Block / Terminal / CLI
- Conversion CTA
- Download App / Install Extension
- Social proof
- No Explicit Trust Bar
- Navigation
- Full-Width Top Bar
- Theme & density
- Light · Balanced
- Corners & depth
- Medium Radius · With shadow
Preview full AI design brief (includes :root CSS variables & layout rules)Style tokens only; never copy brand names, logos, copy, or images
# Design Brief: Minimal Monochrome (with Enterprise Clean)
Monochrome palette with a single accent color, hairline dividers, and generous whitespace.
## Design Tokens
```css
:root {
--background: #ffffff;
--surface: #f4f4f5;
--foreground: #303238;
--muted-foreground: #707075;
--accent: #8d8a23;
--radius: 8px;
--font-heading: "Arial", ui-sans-serif, system-ui, sans-serif;
--font-body: "Arial", ui-sans-serif, system-ui, sans-serif;
--font-mono: "monospace", ui-monospace, monospace;
}
```
Color area ratio: Background #FFFFFF (~82%) · Surface #F4F4F5 (~7%) · Text #303238 (~6%) · Muted Text #707075 (~4%) · Accent #8D8A23 (~1%). Background and surface dominate the canvas; reserve the accent color for primary buttons and active states.
## Layout & Conversion Structure
- Hero layout: Split Copy & Visual
- Navigation: Full-Width Top Bar
- Theme & density: Light · Balanced
- Border radius & elevation: Medium Radius; use elevation shadows to separate layers
- Primary visual medium: Code Block / Terminal / CLI
- Conversion CTA: Download App / Install Extension
- Headline hook: Category Positioning Anchor
- Hero components: Large Hero Product Shot, Code & Terminal
- Spatial layout notes: Split Copy & Visual hero structure paired with download app / install extension CTA and no explicit trust bar.
- Visual summary: Minimal Monochrome (Light canvas, balanced density) featuring split copy & visual layout and code block / terminal / cli visuals.
## Avoid
- Multi-stop neon gradients
- Heavy drop shadows
- More than one competing accent color
Implement the UI following the design tokens and layout specifications above: use only these color variables, and reserve the accent color strictly for primary actions and active states. Adopt only this visual style—never copy any reference product’s brand name, logo, copy, or imagery.
Questions & evidence
- How much website traffic does ast-grep get?
- Vaneform estimates 11.5K website visits in 2026-10. Visits can include repeat visits; this estimate measures web traffic separately from paying customers or revenue.Source
- What is ast-grep and what platforms does it support?
- ast-grep is catalogued under Testing & Code Quality: Find Code by Syntax. Supported platforms: CLI / SDK.
- Is ast-grep open source?
- ast-grep has a public repository (https://github.com/ast-grep/ast-grep) under the MIT license, recording 2,932 GitHub stars.Source
Related products in this category
These products share a catalog category. Compare customer tasks, features and deployment requirements before treating them as alternatives.
| Product | Entry price | Visits | Revenue |
|---|---|---|---|
| PostmanAPI engineering for your agents | $9/mo | 2.7M | Undisclosed |
| ApplauseSoftware Testing Reimagined for the Age of AI | — | 1.2M | Undisclosed |
| PlaywrightPlaywright enables reliable web automation for testing, scripting, and AI agents. | — | 1.1M | Undisclosed |
| BrowserStackEverything you need for testing | $375/mo | 1M | Undisclosed |
| TestMu AIAssure your AI deployment - across enterprise and real world | $19/mo | 796.4K | Undisclosed |
| BetterBugsBug Reporting | $12/mo | 663.3K | Undisclosed |