ts-morph provides a TypeScript compiler API wrapper that simplifies AST manipulation and code generation. It offers a fluent, type-safe interface for navigating and modifying TypeScript code, making it easier to analyze, refactor, and generate code programmatically. Simplify TypeScript manipulation using TS-Morph through features like enhanced type information, node insertion, and formatting capabilities. Ideal for code analysis tools, build scripts, and refactoring engines, ts-morph boosts productivity when dealing with TypeScript's abstract syntax tree.
Ts-morph's release frequency has become less consistent. From February 2019 to December 2021, releases were frequent, sometimes multiple times a month. Starting in 2022, releases became sparse, often with months passing without any new versions. No releases occurred so far in September 2025.
ts-morph npm package downloads show a generally upward trend from March 2024 (9.7M) to July 2025 (23.2M). August 2025 saw a slight decrease (22.5M), and September 2025 (1.7M), which is still in progress, shows a significant dip, but should be ignored due to the imcomplete month.