Key differences

  • D2 has 1.9× as many GitHub stars as PlantUML (25.6K vs 13.4K).
  • PlantUML had more development activity over the last 12 months: 846 commits vs 324.
  • D2 is licensed under MPL-2.0; PlantUML under LGPL-3.0.
  • D2 is written primarily in Go, PlantUML in Java.
  • PlantUML is the older project: its repository was created in 2010, D2's in 2022.

By the numbers

  • D2
  • PlantUML
GitHub stars
25.6K 13.4K
Commits, last 12 months
324 846
Contributors
65 131
Forks
757 1.2K
Show data as a table
D2 vs PlantUML by the numbers
MetricD2PlantUML
GitHub stars25,56413,352
Commits, last 12 months324846
Contributors65131
Forks7571,235

Development activity

Commits per month to each default branch, last 12 complete months.

  • D2
  • PlantUML
0100200 Oct 2025 Nov Dec Jan 2026 Feb Mar Apr May Jun Jul Aug SepD2PlantUML
0100200 Oct 2025 Jan 2026 Apr Jul D2PlantUML
Show data as a table
D2 vs PlantUML: commits per month
MonthD2PlantUML
Oct 2025742
Nov 2025048
Dec 2025027
Jan 2026048
Feb 20260101
Mar 20260140
Apr 2026250
May 20260111
Jun 2026067
Jul 2026043
Aug 202616076
Sep 202615593

Side by side

AttributeD2PlantUML
DescriptionDeclarative diagram scripting language that turns text into diagrams.Generates UML, Gantt, mind map and other diagrams from plain text.
CategoryDiagrams as codeDiagrams as code
LicenseMPL-2.0LGPL-3.0
LanguageGoJava
StatusActiveActive
Latest releasev0.9.0 ()v1.2026.8 ()
Last commit
Repository created
Open issues477575
Install
go get github.com/d2lang/d2
implementation("net.sourceforge.plantuml:plantuml:1.2025.4")

Which should you choose?

Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.

  • D2

    Declarative diagram scripting language that turns text into diagrams.

    25.6K starsGoMPL-2.0

  • PlantUML

    Generates UML, Gantt, mind map and other diagrams from plain text.

    13.4K starsJavaLGPL-3.0

More comparisons