Port of https://github.com/dmytrostriletskyi/diagrams-as-code
pnpm add diagrams-as-code
import { readFileSync } from "node:fs"; import { render } from "diagrams-as-code"; const filePath = "./examples/message-collecting-gcp.yaml"; console.log(render(readFileSync(filePath, "utf8")));
- implement c4
- implement ilograph
- try elk instead of Graphviz
- online demo, like this one
- embed SVG files instead of using urls (otherwise images can be blocked by Content Security Policy)
- postprocess SVG
- use package with icons, like aws-svg-icons
- don't use
raw.githubusercontent.com