Description
TSDiagram is an online tool that turns TypeScript code into diagrams. You write interfaces, type aliases and classes in an editor, and the tool draws them as boxes with their properties, methods and getters, connected by lines that show how types relate. This lets you plan the shape of a codebase in code and see it as a diagram, which the site calls diagrams as code. The example shows a Node interface with properties such as id, path and source, getters for meta, title, links and backlinks, and a Task type with status and schedule fields. Diagrams can be auto-fitted to the page and arranged in a chosen orientation. You can select a node and move it with the arrow keys, press delete to remove a node or an edge, and use escape to cancel. The tool is intended for developers who want to document or plan a TypeScript project, and for teams who want a diagram that stays close to the code. Sharing and preferences can be set from the top of the editor.…
Highlights
- Turns TypeScript types into diagrams
- Interfaces, type aliases and classes
- Auto-fit and orientation settings
- Keyboard controls to move and delete nodes
- Diagrams as code
Ratings & Reviews
No ratings yet
Be the first to rate TSDiagram.
People also visit
TSDiagram FAQ
What is TSDiagram?
It is an online tool that turns TypeScript interfaces, type aliases and classes into a diagram.
Who is it for?
Developers who want to plan or document the types in a TypeScript project and see them as a diagram.
How do I edit a node?
Press enter or space to select a node, then use the arrow keys to move it. Press delete to remove it, or escape to cancel.
Can I change the layout?
Yes. You can auto-fit the diagram and choose its orientation.
Does it need an account?
The site does not mention one. You write TypeScript in the editor to draw the diagram.
Can I share a diagram?
The editor has a share option, along with preferences.
What are the best TSDiagram alternatives?
Popular alternatives to TSDiagram include CodeCanvas, JsDiagram and vibeX. See all TSDiagram alternatives












