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

Build Status Stories in Ready 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, puppeteer, handlebars.js

Setting up project

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

Generating sequence diagrams

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

TODO

  • 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

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

  •  
  •  
  •  
  •