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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
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