Grit provides declarative code search and transformation through its GritQL language.

docs.grit.io
Grit homepage screenshot

About Grit

Grit is a code search and transformation tool built around GritQL, a declarative query language for finding and modifying source code. Any code snippet can be used as a valid GritQL query, so users can begin without learning abstract syntax tree details, and patterns can be saved to enforce as custom lints using where clauses that exclude specific cases.

Key features

  • GritQL declarative query language for searching and modifying source code
  • Any code snippet is a valid query, without AST knowledge
  • Built-in module system with 200+ standard patterns
  • Patterns can include auto-fix rules for remediation
  • where clauses exclude specific cases from custom lints
  • Targets JavaScript/TypeScript, Python, JSON, Java, Terraform, Solidity, CSS, Markdown, YAML, Rust, Go, SQL
Best for: Development teams automating large-scale code migrations, custom linting, dependency upgrades or codebase-wide refactors.
Good for
  • Code snippets work directly as queries, reducing the initial learning requirement
  • Built-in module system offers 200+ standard patterns and allows sharing custom ones
  • Documentation states GritQL is built on Rust with query optimization for repositories of 10M+ lines
Watch out for
  • No pricing, plan or licensing details are given in the source
  • Listed as not open source

Grit at a glance

Type
Website
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Grit alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

Grit FAQ

What is GritQL?
GritQL is a declarative query language for searching and modifying source code, and it is the language documented on the Grit site.
Which languages can be searched and rewritten?
The documentation lists JavaScript/TypeScript, Python, JSON, Java, Terraform, Solidity, CSS, Markdown, YAML, Rust, Go and SQL.
How are patterns reused across a project?
Grit provides a built-in module system that gives access to 200+ standard patterns and lets users share their own patterns.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing