Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
Go to file
knsv 6612b3e01e Fix relatwed to issue number #54 - % in text 2015-01-24 19:33:10 +01:00
bin Adds CLI for rendering mermaid files 2014-12-20 17:18:38 -08:00
conf Style in place for edges 2014-11-13 19:51:05 +01:00
dist Fix relatwed to issue number #54 - % in text 2015-01-24 19:33:10 +01:00
editor initial setup for editor page to generate graph through textarea input 2014-12-01 20:50:58 +01:00
lib Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration 2015-01-14 19:10:39 +01:00
node_modules/jison/node_modules/ebnf-parser Version 0.1.0 2014-11-16 19:00:01 +01:00
scripts Adding missing files 2014-11-13 19:53:31 +01:00
src Fix relatwed to issue number #54 - % in text 2015-01-24 19:33:10 +01:00
test Fix relatwed to issue number #54 - % in text 2015-01-24 19:33:10 +01:00
.gitignore Merge branch 'master' of https://github.com/knsv/mermaid 2014-12-22 13:58:30 +01:00
.travis.yml Updated readme and changes to the coverage setting on the ci server 2014-11-27 19:34:35 +01:00
CONTRIBUTING.md Add apostrophe & 'and' 2014-12-27 20:05:15 -05:00
LICENSE Initial commit 2014-11-02 00:52:32 +01:00
README.md Update README.md 2015-01-12 07:31:51 +01:00
bower.json New release 2015-01-11 15:02:35 +01:00
gulpfile.js * Draft implementation of info diagram 2015-01-20 19:48:33 +01:00
package.json Require d3 directly to better support Node usage 2015-01-20 16:59:58 +11:00

README.md

mermaid Build Status Code Climate

Generation of diagrams and flowcharts from text in a similar manner as markdown.

Ever wanted to simplify documentation and avoid heavy tools like Visio when explaining your code?

This is why mermaid was born, a simple markdown-like script language for generating charts from text via javascript.

The code below would render the following image

CodeRendered diagram

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

Example 1

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail...
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!

Example 2

Further reading

Credits

Many thanks to the d3 and dagre-d3 projects for providing the graphical layout and drawing libraries! Thanks also to the js-sequence-diagram project for usage of the grammar for the sequence diagrams.

Mermaid was created by Knut Sveidqvist for easier documentation.

Knut has not done all work by him self, here is the full list of the projects contributors.