GritQL
github.com · Open source · Active
Rust CLI for searching and rewriting source code
- Developer tools
- Open source
- Rust
- Day-7 check
- Day-30 check
- code search
- refactoring
- ast
- rust
- codemod
- javascript
- linter
- search
- tree sitter
- code search and rewrite
- Stars
- 4.6k
- Forks
- 128
- Open issues
- 114
- Last commit
- Releases
- ≥ 183
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
GritQL is a query language and Rust command-line tool for searching, linting and modifying source code. It grew out of large refactors and migrations, where it handles cases that plain regex search cannot. It suits engineers planning code migrations across big codebases.
Positioned as an alternative to grep.
Repository description on GitHub: “GritQL is a query language for searching, linting, and modifying code.”
What it does
- Declarative query language for searching and modifying source code
- Rust CLI for structural search and rewrite
- Reuses 200+ standard patterns from a module system
Good for
- Find and rewrite code patterns across a large repository
- Plan a code migration with a reusable pattern library
- Lint source code with structural queries
Suits: Engineers planning code migrations across large codebases.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw GritQL on , when morgante posted it to Show HN. The oldest published release on GitHub is v0.1.0-alpha.1715733897, dated . Its first tagged release came 55 days after it was found. 183 releases or more have been published in total; the latest is v0.0.3 ().
Day-7 and day-30 updates
Day 7 not reconstructed
- This project has more than 100 releases, and Kip did not page back far enough to count the ones from this window.
- Show HN discussion at check time: 280 points, 54 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 not reconstructed
- This project has more than 100 releases, and Kip did not page back far enough to count the ones from this window.
- Show HN discussion at check time: 280 points, 54 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: getgrit/gritql
- Found: morgante posted it to Show HN. Show HN
- Release v0.1.0-alpha.1715733897
- Release v0.1.0-alpha.1740617725
- Release v0.1.0-alpha.1740646116
- Release v0.1.0-alpha.1740749968
- Release v0.1.0-alpha.1743007075
- Release v0.0.2
- Release v0.0.3
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 183 releases. All releases on GitHub
Quick answers
- When was GritQL released?
- Its first tagged release on GitHub is dated 15 May 2024. Kip found it on Show HN on 20 Mar 2024.
- Is GritQL open source?
- Its source is public on GitHub at getgrit/gritql under the MIT licence.
- What does GritQL run on?
- Command line.
- Is GritQL free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is GritQL still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | getgrit/gritql REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-39770908. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.