dsherret/ts-morph
TypeScript Compiler API wrapper for static analysis and programmatic code changes. observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 99
- Release rhythm 67
- Longevity 100
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: 85
- age_days: 3469
- days_rel: 143
- days_push: 7
- n_releases_24m: 8
Adoption not part of the score
6164 stars · 237 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ts-morph is a TypeScript library that wraps the TypeScript Compiler API to simplify programmatic navigation and manipulation of TypeScript and JavaScript code. It provides an easier interface for static analysis, AST traversal, and automated code changes.
Use cases
- write codemods that refactor TypeScript code automatically
- analyze TypeScript source files and query the AST
- generate TypeScript code programmatically
- build custom linters or static analysis tools
- rename or move symbols across a codebase
- extract type information from source files
When to choose
- you need to programmatically edit or generate TypeScript/JavaScript code
- the raw TypeScript Compiler API feels too low-level and verbose
- you're building code analysis, refactoring, or migration tooling
When to avoid
- you only need to transpile or type-check code without AST manipulation
- you're working with languages other than TypeScript/JavaScript
- you need runtime code instrumentation rather than static analysis
Facets
library · maturity active
parser developer-tools code-review developer-tools parsers programming-languages cross-platform typescript-compiler-api ast-manipulation code-generation static-analysis codemod nodejs deno
2 sources
- readme: https://github.com/dsherret/ts-morph · fetched 2026-08-28 · 2a1ffaa93621
- homepage: https://ts-morph.com · fetched 2026-08-29 · 25d321f9a66c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dsherret/ts-morph | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="dsherret/ts-morph")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem