← All projects

D2

A modern DSL that turns text to diagrams.

Dev Toolsdiagrammingdsltext-to-diagramcliopen-sourcedeveloper-toolsvisualization
D2 screenshot

About

D2 is a declarative diagramming language (DSL) that lets users create diagrams from plain text with a simple syntax. It supports features like themes, sketch mode, animations, LaTeX, code snippets, and multiple layout engines. Diagrams can be generated via a local CLI, an online playground, or a language API.

Problem

Creating and maintaining diagrams is time-consuming and hard to version-control with visual tools.

For

Software developers and technical writers who need to create diagrams

How it works

Users write diagram definitions in D2's text-based DSL syntax, which is then rendered into SVG, PNG, or PDF outputs via a CLI or online playground.

Business model

open-source

Status

launched

Similar projects