Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
Go to file
knsv 3ec7c6d18b Fix for being able to use the character v in node ids as described in issue #192 2015-07-23 15:33:26 +02: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 Beta fix for binding of click events when using the render function as discussed in issue #188. (Try num 2) 2015-07-18 00:40:42 +02:00
docs New version of docs 2015-07-03 08:52:01 +02:00
editor Render function as mentioned in issue #146, only works in browser context 2015-05-26 20:41:53 +02:00
gulp/tasks restoring standalone 2015-07-22 00:47:03 -04:00
lib Merge remote-tracking branch 'origin/master' 2015-07-03 08:53:10 +02:00
node_modules/jison/node_modules/ebnf-parser Version 0.1.0 2014-11-16 19:00:01 +01:00
scripts Beta fix for binding of click events when using the render function as discussed in issue #188. 2015-07-17 23:13:40 +02:00
src Fix for being able to use the character v in node ids as described in issue #192 2015-07-23 15:33:26 +02:00
test adding failing test for requirejs 2015-07-22 00:36:31 -04: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
CHANGELOG.md Fix for defect #158 2015-04-20 21:22:05 +02: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-06-07 21:09:09 +02:00
bower.json Remove moot `version` property from bower.json 2015-06-10 18:51:14 -04:00
gulpfile.js Render function as mentioned in issue #146, only works in browser context 2015-05-26 20:41:53 +02:00
package.json doing build before test 2015-07-22 01:15:05 -04: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. Thanks to Jessica Peter for inspiration and starting point for gantt rendering.

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.