Mermaid parser

409 views
Skip to first unread message

Ged Wed

unread,
Oct 21, 2017, 11:16:18 AM10/21/17
to golang-nuts
Mermaid is a markdown format for expressing workflow diagrams like sequence diagram etc.

You can then render it as svg.

Is there anything similar written in golang ?

I want to use it for documentation but also for allowing users to visualise and edit workflows running on top of nats.
It's also a great way to visualise choreography that is happening across your Microservices because it's often very hard to keep track of the effects of events firing on your control plane.

So that's the intent.

If anyone has thoughts on the best way to achieve this use case please tell :)

howar...@gmail.com

unread,
Oct 27, 2017, 11:31:49 AM10/27/17
to golang-nuts
There is not one currently that I've seen; there are reasonably good SVG libraries for Go though, and it might be possible to take the Javascript code and convert it to Go fairly mechanically to make a start on one.

https://github.com/blampe/goat appears to do something like that for the charting parts of Markdeep, which is an alternative way of doing charting in Markdown.



ajstarks

unread,
Oct 27, 2017, 4:36:33 PM10/27/17
to golang-nuts
Not markdown, but here is compx a program for going "component" diagrams: basically placing items on a grid, and describing their connections.  It was one of the first clients for SVGo

Reply all
Reply to author
Forward
0 new messages