Terrastruct's AutoLayout Algorithm (TALA), a specialized autolayout engine for software architecture diagrams, has been made open-source. The algorithm is now available under the Mozilla Public License 2.0 (MPL-2.0), the same license used by D2, a diagramming language.
TALA functions as an orthogonal layout engine, differing from common DAG-based algorithms that grow in one direction. It integrates concepts from various graph-drawing research papers and original techniques to produce aesthetically pleasing diagrams. The algorithm considers multiple aesthetic objectives, including symmetry, median distance, flow, and clustering of similar nodes.
TALA allows for customization of node positions and sizes, enabling users to lock coordinates for specific nodes while the engine handles routing for others. This feature is particularly useful for scenarios where models generate 2D layouts but require assistance with connection routing. Examples demonstrate TALA's ability to combine user-specified coordinates with automatic layout for the remaining elements.
TALA has certain trade-offs, including a degree of randomness in its algorithm, which can lead to different layouts when a single node is added. It may not perform as well for long, flowing directed acyclic graphs (DAGs) compared to alternatives like Dagre or ELK. Additionally, TALA's runtime can increase nonlinearly for larger diagrams. Benchmarks comparing TALA's performance to other algorithms are available on GitHub.
TALA is included in D2 v0.9.0; users can activate it by specifying "--layout=tala" when generating diagrams.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Terrastruct's AutoLayout Algorithm (TALA), an orthogonal layout engine for software architecture diagrams, has been released as open-source under the MPL-2.0 license. This makes TALA available for broader use and integration, offering a new option for diagram generation that prioritizes aesthetic qualities like symmetry and flow over traditional DAG-based layouts.