Skip to content

Generate a sequence diagram from a diagram DSL file and output it as a png image with a given name.

Notifications You must be signed in to change notification settings

schrepfler/sequence-diagram-generator

Repository files navigation

Sequence Diagram Generator

This project can be used to generate sequence diagrams from the command line after defining the diagram with a simple DSL. It's a node wrapper around js-sequence-diagrams, check this page for DSL syntax http://bramp.github.io/js-sequence-diagrams/

Requirements

node.js, npm, phantomjs, handlebars

Setting up project

Clone project from git repository

git clone https://github.com/schrepfler/sequence-diagram-generator.git

Fetch dependencies

npm install

Generating sequence diagrams

Edit the sequence-diagrams.html (or make your own) file according to the diagram syntax and after running the following command you will find a png with your image.

./generate-sequence-diagram.js -f sequence-diagram.html -o sequence-diagram.png

TODO

See if we can avoid having to modify the tpl after precompilation. Full lines seem not to be rendered, check with nightmare team or phantom or js-sequence-diagram project npm-ise and publish Add proper image caption above and below the image with stylesheet See if libs can be fetched as deps

About

Generate a sequence diagram from a diagram DSL file and output it as a png image with a given name.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •