D2 is a diagram scripting language that turns text to diagrams. It stands for Declarative Diagramming. Declarative, as in, you describe what you want diagrammed, it generates the image. As well, the functioning of the install script is described in detail to alleviate any concern of its use. We recommend using your OS's package manager directly instead for improved security but the install script is by no means insecure. D2 includes a variety of official themes to style your diagrams beautifully right out of the box. See ./d2themes to browse the available themes and make or contribute your own creation. D2 is designed with language tooling in mind. D2's parser can parse multiple errors from a broken program, has an autoformatter, syntax highlighting, and we have plans for LSP's and more. Good language tooling is necessary for creating and maintaining large diagrams. D2 is designed to be extensible and composable.

Features

  • D2 as a library
  • D2 is a diagram scripting language that turns text to diagrams
  • Declarative, as in, you describe what you want diagrammed, it generates the image
  • The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files
  • You can run the install script with --dry-run to see the commands that will be used to install without executing them
  • In addition to being a runnable CLI tool, D2 can also be used to produce diagrams from Go programs

Project Samples

Project Activity

See All Activity >

License

Mozilla Public License 1.0 (MPL)

Follow D2

D2 Web Site

Other Useful Business Software
Stay in Flow. Let Zenflow Handle the Heavy Lifting. Icon
Stay in Flow. Let Zenflow Handle the Heavy Lifting.

Your AI engineering control center. Zenflow turns specs into shipped features using parallel agents and multi-repo intelligence.

Zenflow is your engineering control center, turning specs into shipped features. Parallel agents handle coding, testing, and refactoring with real repo context. Multi-agent workflows remove bottlenecks and automate routine work so developers stay focused and in flow.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of D2!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Software Development Software, Go Frameworks, Go Diagram Software

Registered

2023-01-05