Product Hunt logo dark
  • Launches
    Coming soon
    Upcoming launches to watch
    Launch archive
    Most-loved launches by the community
    Launch Guide
    Checklists and pro tips for launching
  • Products
  • News
    Newsletter
    The best of Product Hunt, every day
    Stories
    Tech news, interviews, and tips from makers
    Changelog
    New Product Hunt features and releases
  • Forums
    Forums
    Ask questions, find support, and connect
    Streaks
    The most active community members
    Events
    Meet others online and in-person
  • Advertise
Subscribe
Sign in
Subscribe
Sign in
ast-grep

ast-grep

⚡A polyglot tool for code searching, linting, rewriting!

5.0
•1 review•

23 followers

⚡A polyglot tool for code searching, linting, rewriting!

5.0
•1 review•

23 followers

Visit website
Automation tools
•
Command line tools
ast-grep(sg) is a fast and polyglot tool for code searching, linting, and rewriting at large scale. Think it as a hybrid of grep, eslint, and codemod. But for all programming languages with super fast running speed!
  • Overview
  • Launches1
  • Reviews1
  • Alternatives
  • Team
  • More
Company Info
ast-grep.github.ioGitHub
ast-grep Info
Launched in 2023View 1 launch
Forum
p/ast-grep
  • Blog
  • •
  • Newsletter
  • •
  • Questions
  • •
  • Forums
  • •
  • Product Categories
  • •
  • Apps
  • •
  • About
  • •
  • FAQ
  • •
  • Terms
  • •
  • Privacy and Cookies
  • •
  • X.com
  • •
  • Facebook
  • •
  • Instagram
  • •
  • LinkedIn
  • •
  • YouTube
  • •
  • Advertise
© 2025 Product Hunt
SocialMediumX

Similar Products

bloop
bloop
Code-search engine for developers
5.0(1 review)
Code editors
Search engine for code by Quod AI
Search engine for code by Quod AI
Find the code you need faster
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
Free
Launch tags:
Productivity•Developer Tools•Tech
Launch Team
Herrington Darkholme

What do you think? …

Herrington Darkholme
Herrington Darkholme
ast-grep

ast-grep

Maker
📌
Hi everyone, I’m the maker of ast-grep, a polyglot tool for code searching, linting, and rewriting at large scale. ast-grep is fast and easy to use. You can write patterns as if you are writing ordinary code, and use them to search, lint, or rewrite code across thousands of files. You can also use YAML configuration to write custom rules for your own needs. ast-grep supports multiple languages and has a beautiful command line interface. It is written in Rust and powered by tree-sitter. ast-grep also has a fancy playground where you can try out the tool and write rules online. You can find it here: https://ast-grep.github.io/playg.... I hope you find ast-grep useful and fun to use. I would love to hear your feedback and questions. Thank you for checking out my project!
Report
2yr ago
Timo Bechtel
MoneyVision

MoneyVision

Oh that's slick. Installed. Definitely something I can see myself using quite often. I'll try it and report back :)
Report
2yr ago
Herrington Darkholme
Herrington Darkholme
ast-grep

ast-grep

Maker
A new video about ast-grep landed! https://twitter.com/hd_nvim/stat...
Report
2yr ago
Intercom
Intercom — Startups get 90% off Intercom + 1 year of Fin AI Agent free
Startups get 90% off Intercom + 1 year of Fin AI Agent free
Promoted

Do you use ast-grep?

5.0
Based on 1 review
Review ast-grep?
Reviews
Helpful
沈青川
沈青川
•1 review
I'm using ast-grep for Vue Vine and some other projects, it's super efficient for AST node searching, and I really love the rules mechanism, it indeed provides a much more easy, intuitive and declarative way for describing my requirements, I don't need to write a lot of `walk` methods or write very imperative visitors. For today's JavaScript ecosystem, ast-grep is really a good choice to do tasks like "Code search and analysis", "Code rewrite/refactor", "Lint for specific expressions or statements". It's definitely worth a try!
Report
2yr ago
Herrington Darkholme
Herrington Darkholme
ast-grep

ast-grep

Thanks for your kind words!
Report
2yr ago