node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป

sankey-layout

sankey-layout

Build Status

Sankey diagram layout algorithm written in Javascript, intended for use with d3. See d3-sankey-diagram if you just want to draw Sankey diagrams; this package contains the layout algorithms but no visualisation.

If you use the Jupyter notebook, try ipysankeywidget.