ts-morph
TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Pricing
See website
Flat rate
Adoption
→StableLicense
Open Source
Data freshness
—Overview
What is ts-morph?
ts-morph is a powerful TypeScript compiler API wrapper that enables developers to perform static analysis and make programmatic changes to their code. It simplifies the process of working with TypeScript source files, making it easier to analyze and modify code programmatically.
Key differentiator
“ts-morph stands out by providing a more accessible and streamlined way to interact with the TypeScript compiler API compared to directly using the TypeScript Compiler API itself.”
Capability profile
Strength Radar
Honest assessment
Strengths & Weaknesses
↑ Strengths
Fit analysis
Who is it for?
✓ Best for
Developers who need to automate complex refactoring tasks in large TypeScript codebases.
Teams building static analysis tools that require deep integration with the TypeScript compiler.
✕ Not a fit for
Projects requiring real-time interaction with a running application, as ts-morph is primarily for offline/static analysis.
Developers looking for a solution to handle multiple languages beyond TypeScript.
Cost structure
Pricing
Free Tier
None
Starts at
See website
Model
Flat rate
Enterprise
None
Performance benchmarks
How Fast Is It?
Next step
Get Started with ts-morph
Step-by-step setup guide with code examples and common gotchas.