d2lang-cs
d2lang-cs is an unofficial C and .NET interface designed to facilitate the programmatic creation of D2 diagram files. It allows developers to build complex visualizations by defining shapes, connections, styles, and containers directly within C code. The library supports a wide range of D2 features including node shapes like rectangles, arrows with configurable directions, nested containers, and the embedding of markdown, LaTeX, block strings, and code within shapes. It also supports adding icons to shape definitions, such as the Google logo in typical examples. Users can instantiate D2 objects to construct relationships, such as defining that a company belongs to a parent organization, and then output the result in standard D2 language syntax. This renders into clear, structured diagram code that can be visualized by any D2 renderer. Key capabilities include full support for shape styling, container nesting, and arrow directions, while acknowledging that SQL table shapes, class shapes, and comments are curre