TSDiagram

Create diagrams and plan your code with TypeScript.
GitHub
430
Created a year ago, last commit 2 months ago
2 contributors
127 commits
Stars added on GitHub, month by month
N/A
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
+1
Last week
+0.9
/day
Last month
+0.4
/day
README

TSDiagram

TSDiagram is an online tool that helps you draft diagrams quickly by using TypeScript.
šŸ‘‰ https://tsdiagram.com

Features

  • Lets you define your data models through top-level type aliases, interfaces, and classes.
  • Automatically layouts the nodes in an efficient way.
  • ...but if you move one of the nodes manually, it will only auto-layout the other ones.
  • Persists the document state in the URL and localStorage.
  • Export your diagrams as SVG.

Roadmap

  • Function call representation
  • Customizable TypeScript context (lib, etc.)
  • Bring your own storage (different vendors)

This project is not just a diagramming tool, but also the foundation for a greater code visualization project. Imagine flagging types and functions in your code editor and see how they are connected, and how data flows through them. That's the end goal, so we'll swap the TS compiler with Tree-sitter in the process.


TSDiagram Screenshot

Test links

Special thanks <3