nsSank facilitates the data construction process for nswidgets::create_sankey. It contains:

The data returned from nsSank::sankey_maker can directly be used in nswidgets::create_sankey to render a Sankey visualization.

Bonus feature: nsSank also creates data for sunbursts!