dsherret/ts-morph
TypeScript Compiler API wrapper for static analysis and programmatic code changes.
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.
Stars
6,005
Forks
229
Language
TypeScript
License
MIT
Category
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.
Related tools
nikolaydubina/go-recipes
🦩 Tools for Go projects
gmickel/CodeWhisper
CodeWhisper: AI-Powered End-to-End Task Implementation & blazingly fast Codebase-to-LLM Context Bridge
mick-gsk/drift
Detect architectural erosion from AI-generated code. Static analyzer for pattern fragmentation,...
alexei-led/cc-thingz
Battle-tested Claude Code (Codex and Gemini) plugin marketplace — 27 skills, 34 agents, 9 hooks...
fairfield-programming/eaf-linter
🤪 A linter, prettier, and test suite that does everything as-simple-as-possible.