D2

Terrastruct, Inc.·Terrastruct.D2

A modern diagram scripting language that turns text to diagrams.

winget install --id Terrastruct.D2 --exact --source winget

Latest 0.9.0·September 7, 2026

Release Notes

Features πŸš€

  • TALA is now open source and bundled with D2, including the JavaScript/WASM package. Select it with d2 --layout=tala, D2_LAYOUT=tala, or vars.d2-config.layout-engine: tala. No separate plugin installation or license key is required.
  • tala: configure layout attempts with --tala-seeds, D2_TALA_SEEDS, or vars.d2-config.data.tala-seeds.
  • exports: render PNG, GIF, PDF, and PPTX with the built-in renderer

Improvements 🧹

  • performance: reduce repeated work in Dagre ranking, text measurement, SVG preparation, and PNG encoding
  • performance: reduce repeated work in selective imports, dynamic grid layout, and PNG connection rendering
  • exports: reduce PNG memory usage and support images above the previous 67-megapixel limit
  • performance: SVG rendering is approximately 10Γ— faster across the E2E corpus. Real-world diagrams compile, lay out, and render approximately 3Γ— faster at the median.
  • renders: SVG exports are approximately 24% smaller across the E2E corpus and 18% smaller across real-world fixtures, with unchanged appearance.
  • renders: render Markdown labels as native SVG instead of HTML foreignObject content

Bugfixes ⛑️

  • install: reject the obsolete --tala installer flag with migration guidance before installing, instead of incorrectly claiming that older D2 releases bundle TALA
  • sequence diagrams: keep synthetic lifeline endpoint IDs stable across architectures
  • exports: honor D2_TIMEOUT during PNG and GIF rendering
  • compiler: keep recursive globs out of class and variable definitions and report class reference cycles instead of overflowing the stack
  • renders: decode gzip, Brotli, and deflate remote images before embedding them For the latest d2.js changes, see separate changelog.

Installer type: wix

x64β€”DBAC13EDAEC26878D36C79C2BCD91D57927CAE8878204E3B9816E6C0F32AAE1B

Details

Homepage
https://d2lang.com/
License
MPL-2.0
Publisher
Terrastruct, Inc.
Support
https://discord.com/invite/NF6X8K4eDq
Copyright
Copyright 2022 Terrastruct Inc.
Moniker
d2

Tags

diagramscripttext-to-diagram

Older versions (22)

0.8.2
x64β€”EC5431E02EDA348F8914C7BD22BD1686789DF673C081D609FD7E3463D450789A
0.7.1
x64β€”45C75848C0201EC68B3A3A88179A3294C7B12204E39B42BD62C76C6C6EA1613D
0.7.0
x64β€”CC5D4509661B351F142AE035A3909352664F28E79624891FE0C15081103F7678
0.6.9
x64β€”6E12455D881A7C5273ACDFF13A05BBAA1049A4193716FFEE15363753DC501CAD
0.6.8
x64β€”1C16D9CF14CD642721805FCF44B4F9741CD23F823EE38D98218F853024DCC1C0
0.6.5
x64β€”4C2BE190B49B271EC12D5652622B0F696B27C0BE1E5F5A1AFAA657B140373362
0.6.3
x64β€”8180C1B1CEA9938E21C3DB455D79D4D3091129F5C500C9CDC79B808FB74B3E50
0.6.1
x64β€”1FCA97B9D29FEBDA79D509CB32DDBF72F36BB5E295EA69F5D8825EBE05336695
0.6.0
x64β€”7FE4F4B4A2722F57B2422BA696ADCD26EDFAB6495AE3B58F9556FB16A085C65D
0.5.1
x64β€”F01E8DECF78A8DDEABE534BBBFA0E63C10C00F8A33D4D98D53DC42ED9B878B72
0.5.0
x64β€”FB9EB667512BF35E45FBDE1E786DB9B02E07F3FB321F028EDC8E239391609E7E
0.4.2
x64β€”66BE775E83B255817BF96A229492B9C80012B9E7E319272E142F50D4083F4002
0.4.1
x64β€”33425E1B00E5F18644E93887922A690204253F2686E681AFF54E40BFE8578DA5
0.4.0
x64β€”232BAB586DC406EDE2CA011D7672DFBC05D8B5788694CA97D0DD93BC4B0CB56C
0.3.0
x64β€”A6EFD0966501BD78E1235C82DC59F72BAE6F1EE2B2BF5C6953E5311480B66C98
0.2.6
x64β€”0079CDF333EE7B2E48E366E41CA245E0880954E37DC74F8FE7A9912AE5F64588
0.2.5
x64β€”69C1B177A6DF916C584DF48F503BC142AD48D0DC7032EC43FA643B8805E101C3
0.2.4
x64β€”435C7CAEC7CD57836A984BE26912A1149FE0286FC0D11FF882D9EAFD8BB9A13E
0.2.3
x64β€”137669ACFC27C810ABCE75E922C1902CEE159009965E37B56CB12BE1618490F8
0.2.2
x64β€”BCA48BD52AE65BC0A9C21A18899463E986B79452397244A0C6AE2E0B31EE8575
0.2.1
x64β€”FDB2F1DBA434537A0F2F2854B0904A74D9912573231DBEF07671D93BD70647B5
0.1.6
x64β€”C9CB1D0A2037AA484D46ED8B57F91DDBFF7BEA9952CE3B7D338FF946BCFD92F3