biomejs/gritql
GritQL is a query language for searching, linting, and modifying code. observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 98
- Release rhythm 65
- Longevity 64
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 908
- days_rel: 156
- days_push: 17
- n_releases_24m: 73
Adoption not part of the score
4582 stars · 125 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
GritQL is a declarative query language and Rust-based CLI for searching, linting, and rewriting source code using pattern matching over ASTs. It supports many target languages (JavaScript/TypeScript, Python, Java, Terraform, Rust, Go, SQL, and more) and includes auto-fix, custom lint enforcement, and a shareable pattern library.
Use cases
- find all console.log calls in a codebase
- rewrite console.log to winston.log across a repo
- migrate React class components to hooks
- convert Cypress tests to Playwright
- enforce team-specific lint rules in CI
- automate large-scale API migrations
- remove imports from a specific package
When to choose
- you need to search or refactor code across millions of lines
- you want codemods without learning each language's AST APIs
- you need custom lint rules with auto-fix in CI
- you want reusable, shareable code search patterns
When to avoid
- you only need simple regex find-and-replace
- your target language is not among the supported tree-sitter grammars
- you need a GUI-based refactoring tool
Facets
cli-tool · maturity active
search-engine parser linter developer-tools developer-tools parsers windows cli rust gritql codemod tree-sitter code-search code-transformation ast-query refactoring custom-linting command-line automation linux macos
4 sources
- readme: https://github.com/biomejs/gritql · fetched 2026-08-28 · 4572fc907b4c
- homepage: https://docs.grit.io/ · fetched 2026-08-29 · e195da36900a
- site_page: https://docs.grit.io/language/overview · fetched 2026-08-29 · 82740f574b66
- site_page: https://docs.grit.io/cli/quickstart · fetched 2026-08-29 · 7c768e87c3ea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| biomejs/gritql | main | 80 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem