Key differences

  • D2 has 2× as many GitHub stars as Markmap (25.9K vs 13.3K).
  • D2 had more development activity over the last 12 months: 328 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.9K 13.3K
Commits, last 12 months
328 4
Contributors
66 14
Forks
779 1K
Show data as a table
D2 vs Markmap by the numbers
MetricD2Markmap
GitHub stars25,85913,260
Commits, last 12 months3284
Contributors6614
Forks7791,024

Development activity

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

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

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 ()v1.1.0 ()
Last commit
Repository created
Open issues48634
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.9K starsGoMPL-2.0

  • Markmap

    Builds interactive mind maps from Markdown.

    13.3K starsTypeScriptMIT

More comparisons