Key differences

  • D2 has 1.9× as many GitHub stars as Markmap (25.6K vs 13.1K).
  • D2 had more development activity over the last 12 months: 324 commits vs 4.
  • D2 is licensed under MPL-2.0; Markmap under MIT.
  • D2 is written primarily in Go, Markmap in TypeScript.
  • Markmap is the older project: its repository was created in 2020, D2's in 2022.

By the numbers

  • D2
  • Markmap
GitHub stars
25.6K 13.1K
Commits, last 12 months
324 4
Contributors
65 12
Forks
757 1K
Show data as a table
D2 vs Markmap by the numbers
MetricD2Markmap
GitHub stars25,56413,147
Commits, last 12 months3244
Contributors6512
Forks7571,012

Development activity

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

  • D2
  • Markmap
0100200 Oct 2025 Nov Dec Jan 2026 Feb Mar Apr May Jun Jul Aug SepD2Markmap
0100200 Oct 2025 Jan 2026 Apr Jul D2Markmap
Show data as a table
D2 vs Markmap: commits per month
MonthD2Markmap
Oct 202570
Nov 202500
Dec 202500
Jan 202600
Feb 202600
Mar 202600
Apr 202620
May 202600
Jun 202602
Jul 202600
Aug 20261600
Sep 20261552

Side by side

AttributeD2Markmap
DescriptionDeclarative diagram scripting language that turns text into diagrams.Builds interactive mind maps from Markdown.
CategoryDiagrams as codeDiagrams as code
LicenseMPL-2.0MIT
LanguageGoTypeScript
StatusActiveActive
Latest releasev0.9.0 ()v0.18.0 ()
Last commit
Repository created
Open issues47757
Install
go get github.com/d2lang/d2
npm install markmap-lib

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

  • Markmap

    Builds interactive mind maps from Markdown.

    13.1K starsTypeScriptMIT

More comparisons