Open source

D2 has open-sourced its paid TALA diagram layout engine under MPL-2.0

September 7, 2026 at 7:20 PM PT

D2 documentation site social card

Image: D2

Why it mattersTeams that use D2 for architecture diagrams now get its best layout algorithm at no cost, and agents that generate diagrams can lock in node positions while TALA handles the routing.

TALA, short for Terrastruct's AutoLayout Algorithm, is now open source under MPL-2.0, the same licence as the D2 diagramming language. D2 creator Alexander Wang announced this on the D2 blog on 7 September 2026, and the code was committed to the d2lang/d2 repository the same day, in a commit titled "open source TALA".

TALA had been the closed-source companion to D2. Wang wrote two days earlier that the development of open-source D2 had been funded by two paid products: the D2 Studio IDE and the TALA layout algorithm. The company behind them is shutting down, and D2 is continuing as a non-profit project fiscally sponsored by Hack Club. Releasing TALA is one step in that transition, and Wang says D2 Studio will follow.

What TALA does that the built-in layouts do not

D2 already shipped with two layout algorithms, Dagre and ELK, both directional graph engines that grow diagrams in one direction. TALA is different: Wang describes it as an orthogonal layout engine designed for software architecture diagrams, closer to what people draw on whiteboards than to a top-down tree. It borrows from several graph-drawing research papers cited in the source and adds original techniques, and it weighs multiple aesthetics including symmetry, median distance, flow, and clustering of similar nodes.

The post carries seven real-world comparisons against Dagre and ELK on public D2 files pulled from GitHub, and Wang notes plainly that for some diagrams a reader may still prefer the non-TALA output. There is a runtime cost: TALA scales non-linearly, so it takes longer than the other two on large diagrams, and Wang links a benchmark repository at d2lang/d2-benchmarks for the exact numbers.

The angle for agents that draw diagrams

TALA supports fixed and hybrid positioning: some nodes can lock in coordinates while others are left to the algorithm. Wang calls this out as useful for agentic use cases, where a model can place nodes in 2D space but still struggles with routing the connectors between them. An agent that generates architecture diagrams can now describe layout intent, hand it to TALA, and let the algorithm draw the edges without paying for a proprietary component.

For a team that has been rendering D2 diagrams in a build step or a docs site, the change is a licence swap rather than a migration: the algorithm is in the same repository as the language it was built for. The paid product is gone; the code and the layout stay, funded by donations to the non-profit rather than by a licence fee.

Source

Source: D2 Blog

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

More from AI News

Microlighter highlights code in 2 KiB by leaving the DOM alone

Microlighter is a 2 KiB syntax highlighter that colours code through the CSS Custom Highlight API instead of wrapping every token in a span, and it has reached 763 stars since 13 August.

Source: GitHubOpen source

terminal-code puts a real VS Code window inside the terminal by piping code-server's frames through the kitty graphics protocol

An open-source project called terminal-code, from zenbu-labs, embeds a real VS Code window inside a terminal by combining code-server with a browser that renders through the kitty graphics protocol, and has picked up 1,868 stars since it was created on 8 August.

Source: GitHubOpen source

Doop is an open-source design canvas where agents draw next to you over MCP

An AGPL-licensed multiplayer design canvas that positions itself as an open alternative to Paper.design, where AI agents join over the Model Context Protocol and build frames while people watch, at 571 stars in 30 days.

Source: GitHubOpen source