MCPcopy Index your code
hub / github.com/dsherret/ts-morph

github.com/dsherret/ts-morph @28.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 28.0.0 ↗
9,304 symbols 23,017 edges 1,175 files 2,784 documented · 30% 46 cross-repo links
README

ts-morph

CI

Monorepo for ts-morph and related projects.

Packages

  • ts-morph - TypeScript Compiler API wrapper. Provides an easier way to programmatically navigate and manipulate TypeScript and JavaScript code.
  • @ts-morph/bootstrap - Separate library for getting quickly setup with the Compiler API.

Resources

Extension points exported contracts — how you extend this code

ParseConfigFileHost (Interface)
* Interface extending ParseConfigHost to support ParseConfigFile that reads config file and reports errors [6 implementers]
packages/common/lib/typescript.d.ts
TextManipulator (Interface)
(no doc) [14 implementers]
packages/ts-morph/src/manipulation/textManipulators/TextManipulator.ts
FileSystemHost (Interface)
(no doc) [3 implementers]
packages/bootstrap/lib/ts-morph-bootstrap.d.ts
CreateDeclarationProjectOptions (Interface)
(no doc)
packages/scripts/createDeclarationProject.ts
GetEffectiveTypeRootsHost (Interface)
(no doc) [6 implementers]
packages/common/lib/typescript.d.ts
NodeHandler (Interface)
(no doc) [19 implementers]
packages/ts-morph/src/manipulation/nodeHandlers/NodeHandler.ts
ResolutionHost (Interface)
(no doc)
packages/bootstrap/lib/ts-morph-bootstrap.d.ts
Comparer (Interface)
(no doc) [7 implementers]
packages/common/lib/ts-morph-common.d.ts

Core symbols most depended-on inside this repo

nameof
called by 1544
packages/common/src/utils/nameof.ts
getInfoFromText
called by 1199
packages/ts-morph/src/tests/compiler/testHelpers/getInfoFromText.ts
getText
called by 899
packages/ts-morph/src/compiler/ast/name/base/CommonIdentifierBase.ts
getFullText
called by 541
packages/common/lib/typescript.d.ts
createSourceFile
called by 457
packages/common/lib/typescript.d.ts
getName
called by 386
packages/ts-morph/src/compiler/ast/base/name/NameableNode.ts
getStandardizedAbsolutePath
called by 308
packages/common/src/fileSystem/FileUtils.ts
write
called by 297
packages/common/lib/typescript.d.ts

Shape

Method 4,955
Class 1,604
Interface 1,387
Function 1,275
Enum 83

Languages

TypeScript100%

Modules by API surface

packages/common/lib/typescript.d.ts1,897 symbols
packages/ts-morph/lib/ts-morph.d.ts1,229 symbols
packages/ts-morph/src/compiler/ast/common/Node.ts306 symbols
packages/ts-morph/src/compiler/ast/class/base/ClassLikeDeclarationBase.ts159 symbols
packages/ts-morph/src/compiler/ast/statement/StatementedNode.ts144 symbols
packages/common/lib/ts-morph-common.d.ts141 symbols
packages/ts-morph/src/compiler/ast/base/TypeElementMemberedNode.ts117 symbols
packages/common/src/fileSystem/TransactionalFileSystem.ts110 symbols
packages/ts-morph/src/compiler/ast/module/SourceFile.ts92 symbols
packages/ts-morph/src/structures/Structure.generated.ts80 symbols
packages/ts-morph/src/fileSystem/Directory.ts79 symbols
packages/ts-morph/src/compiler/types/Type.ts78 symbols

Dependencies from manifests, versioned

@rollup/plugin-typescript12.1.2 · 1×
@ts-morph/common0.29.0 · 1×
@types/chai5.2.1 · 1×
@types/diff7.0.2 · 1×
@types/mocha10.0.10 · 1×
@types/node22.14.1 · 1×
chai5.2.0 · 1×
code-block-writer13.0.3 · 1×
conditional-type-checks1.0.6 · 1×
cross-env7.0.3 · 1×
diff7.0.0 · 1×
dprint0.50.1 · 1×

For agents

$ claude mcp add ts-morph \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact