derlin / docker-compose-viz-mermaid

Generate beautiful visuals from docker-compose files. The mermaid graph can be exported to PNG, SVG, or edited directly in https://mermaid.live.

Home Page:https://derlin.github.io/docker-compose-viz-mermaid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image rendering without playwright

derlin opened this issue · comments

docker-compose-viz currently embeds the minified mermaid.min.js script along with the playwright library (headless browser automation). Playwright is however very heavy and doesn't work well inside a docker image.

This issue is about looking for a replacement, that is, a way to still render mermaid diagrams offline and from Kotlin, but with a lighter tool.

Hello there!
Just a heads up: the latest release supports the official mermaid-js as well, provided you have npm installed on your system. Let me know what you think.