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/
node.js, npm, puppeteer, handlebars.js
Clone project from git repository
git clone https://github.com/schrepfler/sequence-diagram-generator.git
Fetch dependencies
#install dependencies
npm install
#install web dependencies via bower
npm run setup
Edit the sequence-diagrams.txt (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.txt -o sequence-diagram.png
- Add an API eg.
var generator = require('generate-sequence-diagrams');
generator.generate('my dsl text', function (data) { // data is the output image });
- npm-ise and publish
- Add proper image caption above and below the image with stylesheet
- Tests
- On body
- On image