d3-sankey is a D3.js library for creating Sankey diagrams, a type of flow diagram where the width of the links is proportional to the quantity of flow. It simplifies the layout calculation, automatically positioning nodes and links to effectively visualize complex flows. Easily customize node spacing, link curvature, and overall diagram orientation. This package is ideal for displaying data flows between different entities and understanding the relative importance of each component.