yuzutech / kroki

Creates diagrams from textual descriptions!
https://kroki.io
MIT License
2.89k stars 216 forks source link

BPMN to Ascii Art (Ascii art more generally) #1455

Open SylvianHemus opened 1 year ago

SylvianHemus commented 1 year ago

Good morning Sirs,

A project maintainer said that Kroki may already have support for BPMN diagramme as ascii art and therefore does not need to be implemented in bpmn-js. Kindly do the needful and revert back to me as to whether this is possible. I cannot find this feature in kroki documentation. (https://github.com/bpmn-io/bpmn-js/issues/1856#issuecomment-1453824175)

Our team does not use a gui and tries to avoid needing support for image viewing is the need for this feature

ggrossetie commented 1 year ago

Hello!

As far as I know, only PlantUML can export a diagram to text ASCII. If you are using BPMN.js to describe your business process, it's probably easier to export to an image and then use a library to convert this image to ASCII art.

For instance, you could use: https://github.com/TheZoraiz/ascii-image-converter (disclaimer: never used it)

Technically, we could add this feature in Kroki (if there's a high demand for it) to support /txt on any diagram library but in my opinion it's better to follow the unix philosophy: "write programs that do one thing and do it well".