Grit.io
verifiedFreemiumgrit.io
Declarative query language and CLI for searching and rewriting source code at scale for migrations, linting, and dependency upgrades.
What it does
Grit centers on GritQL, a declarative query language for searching and modifying source code. Any code snippet is a valid query, and it scales to repositories with tens of millions of lines using a Rust engine. It supports many languages and ships with a module system of 200+ reusable patterns plus built-in auto-fix.
Core features
GritQL declarative code query language
Search-and-rewrite with auto-fix
Works across JS/TS, Python, Go, Java, and more
200+ reusable standard patterns
Rust-based engine for 10M+ line repos
Custom lint rules with where clauses
Best for
→Large-scale API and framework migrations
→Enforcing custom lint standards
→Handling breaking changes in dependency upgrades
→Systematic codebase quality improvements