#5757th of 67 in Code review and testing

gritql

Query language for searching and rewriting source code with tree-sitter

Releases and problems feed (RSS)

Stars
4.6k
License
MIT
Last commit
Nov 2026
Last release
Mar 2026
Language
Rust
Stars, last 30 weeks+170
27 Apr 2026: 4,460 stars4 May 2026: 4,466 stars11 May 2026: 4,470 stars18 May 2026: 4,480 stars25 May 2026: 4,489 stars1 Jun 2026: 4,495 stars8 Jun 2026: 4,501 stars15 Jun 2026: 4,506 stars22 Jun 2026: 4,511 stars29 Jun 2026: 4,518 stars6 Jul 2026: 4,528 stars13 Jul 2026: 4,531 stars20 Jul 2026: 4,534 stars27 Jul 2026: 4,546 stars3 Aug 2026: 4,551 stars10 Aug 2026: 4,558 stars17 Aug 2026: 4,563 stars24 Aug 2026: 4,569 stars31 Aug 2026: 4,575 stars7 Sept 2026: 4,582 stars14 Sept 2026: 4,587 stars21 Sept 2026: 4,591 stars28 Sept 2026: 4,594 stars5 Oct 2026: 4,598 stars12 Oct 2026: 4,601 stars19 Oct 2026: 4,610 stars26 Oct 2026: 4,613 stars2 Nov 2026: 4,619 stars9 Nov 2026: 4,622 stars16 Nov 2026: 4,625 stars23 Nov 2026: 4,630 stars

4,460 on 27 Apr 20264,630 on 23 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

GritQL is a declarative query language and Rust CLI (`grit`) for searching and rewriting code. Any code snippet in backticks is a valid query, with `$metavariables` as holes, `=>` for rewrites and `where` clauses for conditions. Patterns can be saved in `.grit/grit.yaml` and enforced as custom lints with `grit check`. It has no AI model features, so it fits this list only loosely.

Who it is for: Engineers running large codemods, migrations and custom lint rules

Strengths

  • Any code snippet is a valid query, so no AST knowledge is needed to start
  • One query language targets JavaScript/TypeScript, Python, Java, Go, Rust, Terraform, SQL and more
  • Rust implementation; README claims it scales to 10M+ line repositories
  • Reusable patterns, 200+ in the standard library, and `grit check` for CI lints

Weaknesses

  • Complex rewrites need a custom query language beyond the snippet basics
  • No LLM features, so it does not match the AI focus of this list
  • README documents install only as a `curl | bash` script
  • README links point to the getgrit org, not the biomejs repository

What it needs

  • no GPU

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Code review and testing

See all 67
Also in Code review and testing
RankProjectScore
#55truecourseGenerates Playwright tests from product docs to find where docs and product disagree537 starsMIT58 out of 100
#56eslint-plugin-reactReact-specific lint rules for ESLint, covering JSX style and component correctness9.3k starsMIT57 out of 100
#58apiautoBrowser-based HTTP API tester with generated docs, code and regression runs Live demo ↗ (opens in a new tab)2.2k starsApache-2.051 out of 100
#59go-criticExtensible Go linter with about 100 checks for bugs, performance and style2.1k starsMIT50 out of 100
#60ai-codereview-gitlabLLM reviewer for GitLab merge requests and pushes, with chat notifications1.9k starsApache-2.046 out of 100