Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
Go to file
John Muccigrosso d2e3517c78 Reformat with no changes to content. 2016-03-21 19:11:38 -04:00
bin CLI: Propagate exit code from lib (i.e., phantomjs) 2015-11-05 15:50:59 -05:00
dist Update dist files 2016-03-14 18:09:27 -04:00
docs Reformat with no changes to content. 2016-03-21 19:11:38 -04:00
editor Add build with new ellipse syntax 2015-10-26 23:03:07 +00:00
gulp Fix for issue #281, support for Chrome v 48 2016-01-25 18:59:03 +01:00
lib Quote phantomPath so that it doesn't fail on window 2016-02-01 11:02:01 +05:30
node_modules/jison/node_modules/ebnf-parser Version 0.1.0 2014-11-16 19:00:01 +01:00
scripts Fix for issue with rednering in IE as described in #303 2016-03-12 11:23:57 +01:00
spec/support Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
src Support title in parser, add to renderer, with naive positioning logic 2016-03-14 17:51:03 -04:00
test Merge pull request #317 from crodriguez1a/feature/dark-theme 2016-03-14 07:14:37 +01:00
.eslintignore Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
.eslintrc Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
.gitattributes Fix for issue windows builds as described in #284 2016-01-26 18:03:58 +01:00
.gitignore Merge branch 'master' of https://github.com/knsv/mermaid 2014-12-22 13:58:30 +01:00
.travis.yml Fixed uglify command 2015-10-17 15:21:34 +02:00
CHANGELOG.md Fix for defect #158 2015-04-20 21:22:05 +02:00
CONTRIBUTING.md #296 Further edit of build instructions 2016-02-10 09:10:15 +02:00
LICENSE
README.md updated links in README.md 2015-10-29 23:06:36 -07: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
karma.conf.js Fix for issues #249. Adding configuration option for when to use absolute references for arrow heads. Default is off. 2015-11-21 11:51:15 +01:00
package.json New release 2016-01-27 15:02:41 +01:00

README.md

mermaid Build Status Code Climate

Join the chat at https://gitter.im/knsv/mermaid

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.