A UML generation tool for TypeScript codebases. Primarily uses the TypeScript compiler API to compile type relations and d2 to render the class diagrams.
- node >=18
This tool is primarily used as a command line tool. Install it using
npm i autouml --save-dev
If this is being used in code, --save
the package instead. Refer to the documentation for more information.
The command line tool comes with a few options. For a comprehensive list, run npx autouml --help
.
The official documentation can be hound here. This documentation is designed for developers of this project, and documents the entire codebase. For API information, refer to the exposed functions and classes listed here.
This project can expand in a few directions. The following are a few directions that are currently being considered:
- tsdoc integration
- more compilation targets (mermaid, plantuml)
- javascript project support
The following is a lsit of currently known issues.
- Empty interfaces are primitives
- Type literals are interpreted as __type