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.
https://derlin.github.io/docker-compose-viz-mermaid
MIT License
33 stars 3 forks source link

image rendering without playwright #12

Open derlin opened 1 year ago

derlin commented 1 year ago

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.

mgaitan commented 1 year ago

why not the official cli ? https://github.com/mermaid-js/mermaid-cli

derlin commented 1 year ago

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.