D2 appeared as part of a new wave of diagramming tools focused on readable source text and attractive default rendering.
It gained attention in docs-as-code workflows because diagrams could be reviewed in source control with minimal syntax overhead.
Its evolution reflects growing demand for diagram tooling that fits naturally into CI pipelines and developer documentation practices.