I just finished a hobby project. It is a F# library for creating Mermaid graph YAML. I used Fable to transpile to JS (+types) and python, and added a convenience C# access layer. This means you have a nice API for creating Mermaid graphs in 4 languages. My documentation also includes code examples for all languages and a blogpost on library design.
Would appreciate feedback!