dsherret/ts-morph

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 7 minutes ago
Added to GitGenius on September 10th, 2026
Created on March 4th, 2017
Open Issues & Pull Requests: 292 (+0)
GitHub issues: Enabled
Number of forks: 237
Total Stargazers: 6,179 (+0)
Total Subscribers: 19 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.9 days
Mean response time: 190.2 days
90th percentile: 530.5 days
Tracked items: 81

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 6% of issues opened in the past year have been closed. Three people close 77% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 47
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 891 days
Stale 30+ days: 45
Stale 90+ days: 42

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (6)
  • bug (5)
  • question (3)
  • suggestion (3)
  • breaking change (1)
  • help wanted (1)
  • status: in discussion (1)

Detailed Description

ts-morph is a TypeScript Compiler API wrapper that simplifies programmatic navigation and manipulation of TypeScript and JavaScript code through static analysis and code generation.

The tool addresses the complexity of working directly with TypeScript's Compiler API by providing a more accessible abstraction layer. Rather than wrestling with the low-level API, developers can use ts-morph to traverse abstract syntax trees, query code structure, and apply transformations with a more intuitive interface. This approach makes it practical to build tools that need to understand or modify TypeScript and JavaScript source code without deep familiarity with compiler internals.

Teams building code generation tools, linters, refactoring utilities, or other static analysis systems should consider ts-morph when they need to work with TypeScript or JavaScript at the AST level. It suits projects where programmatic code manipulation is central to the tool's purpose. The project includes a separate bootstrap package for developers who want to get started quickly with the Compiler API, reducing initial setup friction.

The project maintains active development with regular updates to keep pace with TypeScript releases. Commits are frequent and focused on specific improvements and bug fixes. The maintainer responds to issues and pull requests consistently, indicating ongoing engagement with the user base. Documentation is actively maintained alongside code changes, and the project includes supplementary resources like an interactive TypeScript AST viewer to help developers understand the structures they are working with.