Skip to content
D2 Documentation·

💡Terrastruct Opens TALA AutoLayout Algorithm to the World

TALA's open-source release could change how you draw diagrams

TL;DR

Terrastruct's TALA, an autolayout algorithm for software architecture diagrams, is now open-source. It offers an orthogonal layout, aiming for whiteboard-like diagrams, but comes with tradeoffs like randomness and longer runtimes for larger diagrams.

Terrastruct has released TALA, an autolayout algorithm designed for software architecture diagrams, as open-source under the MPL-2.0 license. TALA aims to produce diagrams that closely resemble those drawn on whiteboards, focusing on aesthetics like symmetry and clustering of like nodes. However, it introduces randomness in its algorithm, meaning the same diagram can look different with the addition of a single node. Developers should care because TALA can be integrated into D2 v0.9.0 and tested on https://play.d2lang.com. It's a game-changer for those looking to enhance the visual appeal of their diagrams without sacrificing functionality.

Terrastruct Opens TALA AutoLayout Algorithm to the World — D2 Documentation

Key Points

1

TALA is now open-source under MPL-2.0, released by Terrastruct on GitHub.

2

TALA is designed for software architecture diagrams, focusing on whiteboard-like aesthetics.

3

TALA considers multiple objectives of 'aesthetic', including symmetry, median distance, and clustering.

4

TALA uses a default of 3 seeds to find the best layout, ensuring reproducibility with the same seeds and input.

5

TALA can be tried out on https://play.d2lang.com, which runs 100% client-side.

Why It Matters

If you're using D2 for software architecture diagrams, TALA's open-source release offers a new way to enhance diagram aesthetics. However, it's not without tradeoffs: randomness and longer runtimes for larger diagrams mean it may not be ideal for all use cases. Anyone looking to improve diagram clarity in D2 should explore TALA.

TerrastructTALAD2open-sourcediagrams

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,484 builders reading daily.

Also get