Javascript powered Mermaid diagrams!
Clone the repo
yarn install
You can now render in a variety of outputs your Triton diagrams like this example:
ts-node examples/myDatabase.ts
It will output the result in the html
folder, which you can preview in your browser!
new ER([link, link2, ...]])
new Graph([root, root2, ...]])
check the offical documentation here: https://mermaid-js.github.io/mermaid/#/
- https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mermaid
- https://github.com/imjuni/erdia
- https://github.com/nurdiansyah/sveltekit-markdown/blob/2fffe9287943fced8516f33d4c5b19017f22a2af/src/lib/plugins/mermaid/index.ts
- https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mermaid
- https://github.com/stechy1/ast-to-mmd
- https://github.com/stechy1/ast-to-mmd/blob/ce20811c463981a2a509cc57ea7b2600c990252d/packages/ast-to-mmd/src/app/graph-blocks/renderer/shape-renderer.ts