gkz/grasp
JavaScript structural search, replace, and refactor observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 4758
- days_rel: n/a
- days_push: 3352
- n_releases_24m: 0
Adoption not part of the score
1282 stars · 33 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Grasp is a command-line utility for structural search, replace, and refactoring of JavaScript code based on its abstract syntax tree rather than text. It supports CSS-style selector queries (squery) and example-based queries with wildcards (equery), and can also be used as a library.
Use cases
- find all usages of a variable in javascript code
- refactor javascript code structurally instead of with grep and sed
- search javascript ast with css-like selectors
- replace function call arguments across a codebase
- find if statements with compound conditions
- run codemods on javascript files from the command line
When to choose
- you need structure-aware search or replacement in JavaScript that ignores formatting differences
- you want to write quick one-line codemods or macros from the terminal
- you prefer CSS-style selectors or code examples with wildcards over regex
When to avoid
- you need to refactor languages other than JavaScript
- you want an actively maintained tool with modern ES2020+ support
- you need IDE-integrated refactoring rather than a CLI
Facets
cli-tool · maturity maintenance
search-engine parser developer-tools cli developer-tools parsers web-development cli cross-platform ast structural-search code-refactoring codemod javascript livescript command-line nodejs
10 sources
- readme: https://github.com/gkz/grasp · fetched 2026-08-28 · 37ccae70ad6c
- homepage: http://graspjs.com · fetched 2026-08-29 · 34d0bef1d137
- site_page: http://www.graspjs.com/docs · fetched 2026-08-29 · 78cb42a497c0
- site_page: http://www.graspjs.com/docs/install · fetched 2026-08-29 · a306b778d701
- site_page: http://www.graspjs.com/docs/concepts · fetched 2026-08-29 · 033af30371b2
- site_page: http://www.graspjs.com/docs/options · fetched 2026-08-29 · 31729a12ea44
- site_page: http://www.graspjs.com/docs/syntax-js · fetched 2026-08-29 · 6951679d429a
- site_page: http://www.graspjs.com/docs/equery · fetched 2026-08-29 · e61b4e59f225
- site_page: http://www.graspjs.com/docs/squery · fetched 2026-08-29 · 9a6eb04a59d7
- site_page: http://www.graspjs.com/docs/replace · fetched 2026-08-29 · 439c2eb16432
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gkz/grasp | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem