This package takes your sequelize models and produces ERD diagrams of them.
It should be noted that the implimentation is a bit hacky. Its built on top of mdaines's vis.js which is described as "a hack to put Graphvis on the web." It seems like it was recently taken off NPM, so it isn't included as a dependency but instead in this package.
You don't need Graphviz or any non-javascript software to use this. Just
$ npm install sequelize-erd --save-devExported from sequelize-erd is a function which takes your models. It can either take the sequelize instance or a path to a file to require. The function returns an svg of the models.
We expose a binary for you to use as a npm script. If you want an erd diagram generated in your project folder every time you commit, add this to your package json.
{
"scripts": {
"erd": "sequelize-erd --source ./path/to/your/sequelize/instance --destination ./erd.svg"
},
"pre-commit": ["erd"]
}The pre-commit part works because this package depends on pre-commit.
