TALA Auto-Layout Algorithm Goes Open-Source Under MPL-2.0
Original: TALA Is Open-Source
Why This Matters
Open-sourcing a proprietary layout engine expands community-driven development in the diagramming-as-code ecosystem.
Terrastruct's TALA (Terrastruct's AutoLayout Algorithm), a novel orthogonal auto-layout engine for software architecture diagrams, was released as open-source under MPL-2.0 on September 7, 2026. It is bundled with D2 v0.9.0 and available via --layout=tala.
Terrastruct announced that TALA, its proprietary auto-layout algorithm for the D2 diagramming language, is now open-source under the MPL-2.0 license — the same license as D2 itself. TALA is an orthogonal layout engine designed specifically for software architecture diagrams, contrasting with DAG-based engines like Dagre and ELK that grow in a single direction. The algorithm blends techniques from published graph-drawing research with original methods, optimizing for aesthetics including symmetry, median distance, flow, and node clustering. A key differentiator is support for partial coordinate locking: users or AI agents can specify fixed positions for certain nodes while TALA handles routing for the rest — a capability the team highlights as especially useful for agentic AI workflows. Tradeoffs include non-determinism across different inputs (due to seed-based randomization), weaker performance on long DAG-style graphs, and nonlinear scaling for large diagrams. Runtime benchmarks are available at github.com/d2lang/d2-benchmarks. TALA ships bundled in D2 v0.9.0 and can be tested at play.d2lang.com, which runs fully client-side.