Compare software

D2 vs Diagram-as-code: catalog facts
D2Diagram-as-code
Free

Free and open source under the Mozilla Public License 2.0.

Free

Free software under the Apache 2.0 license.

Windows, Command line Command line
  • Diagrams as text that fit into version control
  • Simple syntax with automatic layout
  • Generates AWS diagrams from YAML
  • Works in containers without a graphical interface
  • Requires learning the D2 syntax
  • Less fine control than drawing by hand
  • Focused on infrastructure diagrams
Downloadable app Downloadable app
Open source Open source
License: MPL-2.0 License: Apache-2.0
No account needed Not stated if an account is needed
Works offline Not stated if it works offline

Checked October 2, 2026

Checked October 8, 2026

Catalog facts only. Anything “not stated” is unconfirmed. Check full listings for details.