dsherret/ts-morph

TypeScript Compiler API wrapper for static analysis and programmatic code changes.

59
/ 100
Established

ts-morph helps developers analyze and change TypeScript and JavaScript code programmatically. It takes your existing TypeScript or JavaScript files as input and allows you to build tools that refactor code, generate new code, or inspect code structure, outputting modified or newly generated code. This is for software developers who work with TypeScript or JavaScript.

6,005 stars. Used by 21 other packages. No commits in the last 6 months. Available on npm.

Use this if you are a developer building tools that need to understand, modify, or generate TypeScript or JavaScript code.

Not ideal if you are looking for a general-purpose text manipulation library or a tool for other programming languages.

TypeScript-development JavaScript-development code-refactoring code-generation static-code-analysis
Stale 6m
Maintenance 2 / 25
Adoption 15 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

6,005

Forks

229

Language

TypeScript

License

MIT

Category

code-review

Last pushed

Oct 12, 2025

Commits (30d)

0

Dependencies

2

Reverse dependents

21

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/dsherret/ts-morph"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.