phenomnomnominal/tsquery
TypeScript AST query library observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 76
- 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: 3056
- days_rel: n/a
- days_push: 149
- n_releases_24m: 0
Adoption not part of the score
1053 stars · 33 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
TSQuery is a TypeScript library that ports the ESQuery API to TypeScript, letting you query a TypeScript AST using CSS-style selectors. It supports node type selectors, attribute matching, combinators, and pseudo-classes for pattern-based syntax matching.
Use cases
- find all identifiers named X in a TypeScript file
- query TypeScript AST with CSS-like selectors
- write custom lint rules that match syntax patterns
- search code for specific AST node patterns
- extract class declarations or function signatures from TypeScript source
- build codemods that select nodes to transform
When to choose
- you need pattern-based searching over TypeScript source code
- you're building linting, refactoring, or codemod tooling on the TypeScript compiler API
- you already know ESQuery or CSS selectors and want the same ergonomics for TS ASTs
When to avoid
- you need to query JavaScript or other languages' ASTs (use ESQuery or a language-specific tool)
- you need full TypeScript type information rather than syntax patterns
- you want a GUI-based code search tool
Facets
library · maturity active
parser search-engine developer-tools developer-tools parsers programming-languages cross-platform ast typescript-ast css-selectors code-analysis esquery static-analysis code-search nodejs typescript
1 source
- readme: https://github.com/phenomnomnominal/tsquery · fetched 2026-08-28 · d19d05e6e1db
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phenomnomnominal/tsquery | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="phenomnomnominal/tsquery")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem