Mermaid is a tool which is written in Javascript for drawing diagrams with plain text.