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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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