Skip to main content

diagramkit

diagramkit module map: main API, utils, color, and convert entry points

The diagramkit npm package exposes five entry points:

Entry point What it covers Reference
diagramkit Core rendering APIs (render, renderFile, renderAll) API
diagramkit/utils Discovery, manifest, output, validation helpers for custom pipelines Utils
diagramkit/color Dark SVG contrast utilities Color
diagramkit/convert SVG-to-raster conversion via sharp Convert
diagramkit/validate SVG structural + WCAG 2.2 AA contrast validation API → SVG Validation

And the CLI surface:

Area Reference
CLI CLI reference
Config Configuration reference
Types TypeScript types