Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
d2 Modern text-to-diagram language
0.9.0_2 graphics Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.9.0_2Version of this port present on the latest quarterly branch.
Maintainer: adamw@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-12-19 13:45:07
Last Update: 2026-10-20 11:05:23
Commit Hash: d81b7ba
License: MPL20
WWW:
https://www.d2lang.com
Description: #
D2 is a scripting language that turns text into diagrams, similar to Mermaid and PlantUML. However, D2 puts more focus on simply doing the right thing, and it can produce highly visually-appealing diagrams with very little input.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (4 items)
Collapse this list.
  1. bin/d2
  2. /usr/local/share/licenses/d2-0.9.0_2/catalog.mk
  3. /usr/local/share/licenses/d2-0.9.0_2/LICENSE
  4. /usr/local/share/licenses/d2-0.9.0_2/MPL20
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • d2>0:graphics/d2
To install the port: #
cd /usr/ports/graphics/d2/ && make install clean
To add the package, run one of these commands:
  • pkg install graphics/d2
  • pkg install d2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: d2
Flavors: there is no flavor information for this port. #
distinfo: #
TIMESTAMP = 1788820093 SHA256 (go/graphics_d2/d2-v0.9.0/v0.9.0.mod) = 71307c0924ecbf4c51c825b44871aa6cf568921b7eb90bebc5f46623629bed86 SIZE (go/graphics_d2/d2-v0.9.0/v0.9.0.mod) = 1635

Expand this list (2 items)

Collapse this list.

SHA256 (go/graphics_d2/d2-v0.9.0/v0.9.0.zip) = 39f3aa81c4c6801a290542cfb77f315d0c404d2b5c47bf1227d1e1ff37c59785 SIZE (go/graphics_d2/d2-v0.9.0/v0.9.0.zip) = 34235729

Collapse this list.


Packages (timestamps in pop-ups are UTC): #
d2
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest0.9.0_10.9.0_2-0.7.10.9.0_2
FreeBSD:14:quarterly0.9.0_10.9.0_2-0.7.0_20.9.0_2
FreeBSD:15:latest0.9.0_10.9.0_2n/a-n/a
FreeBSD:15:quarterly0.9.0_10.9.0_2n/a-n/a
FreeBSD:16:latest0.9.0_10.9.0_2n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. go127 : lang/go127
Test dependencies: #
  1. git : devel/git@tiny
Fetch dependencies: #
  1. go127 : lang/go127
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
graphics_d2
USES: #
go:1.27+,modules zip
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://proxy.golang.org/github.com/d2lang/d2/@v/
Collapse this list.

Number of commits found: 31 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.9.0_2
20 Oct 2026 11:05:23
commit hash: d81b7ba3c3ab6c49f4a8ed0ef8aa4d70a78c9f0ccommit hash: d81b7ba3c3ab6c49f4a8ed0ef8aa4d70a78c9f0ccommit hash: d81b7ba3c3ab6c49f4a8ed0ef8aa4d70a78c9f0ccommit hash: d81b7ba3c3ab6c49f4a8ed0ef8aa4d70a78c9f0c files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump Go ports for Go 1.26.10 / 1.27.3
0.9.0_1
08 Oct 2026 20:44:12
commit hash: 031fc6bfbf58dd0aadc59bc428be611930856ffccommit hash: 031fc6bfbf58dd0aadc59bc428be611930856ffccommit hash: 031fc6bfbf58dd0aadc59bc428be611930856ffccommit hash: 031fc6bfbf58dd0aadc59bc428be611930856ffc files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump Go ports
0.9.0
07 Sep 2026 22:33:56
commit hash: ffa7bd0d77347a2f10da31c0487d0e4a53a9396fcommit hash: ffa7bd0d77347a2f10da31c0487d0e4a53a9396fcommit hash: ffa7bd0d77347a2f10da31c0487d0e4a53a9396fcommit hash: ffa7bd0d77347a2f10da31c0487d0e4a53a9396f files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.9.0

This is a significant release. Until now, D2 shipped with the ELK
and Dagre layout engines, but TALA was closed-source and required
a paid subscription.

Just a day or two ago, D2 announced that they are shutting down
their subscription service (and the online editor for D2 diagrams.)

This release now includes the TALA engine, and no license key is
required to use it. At some point, the Terrastruct D2 editor is
expected to be open-sourced.

Changes: https://github.com/d2lang/d2/releases/tag/v0.9.0
0.8.2_1
03 Sep 2026 04:50:55
commit hash: dd0905142a9a35cdf8267e2706db9488b516ad01commit hash: dd0905142a9a35cdf8267e2706db9488b516ad01commit hash: dd0905142a9a35cdf8267e2706db9488b516ad01commit hash: dd0905142a9a35cdf8267e2706db9488b516ad01 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump go ports for 1.26.8 and 1.27.1
0.8.2
25 Aug 2026 17:49:27
commit hash: b4918aafb6ea56d3467c53f3ac85e877303d09ebcommit hash: b4918aafb6ea56d3467c53f3ac85e877303d09ebcommit hash: b4918aafb6ea56d3467c53f3ac85e877303d09ebcommit hash: b4918aafb6ea56d3467c53f3ac85e877303d09eb files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.8.2
0.8.1_2
19 Aug 2026 17:39:04
commit hash: 4867821cd65241b6e8c0faa3ed76d67514594442commit hash: 4867821cd65241b6e8c0faa3ed76d67514594442commit hash: 4867821cd65241b6e8c0faa3ed76d67514594442commit hash: 4867821cd65241b6e8c0faa3ed76d67514594442 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.14 / 1.26.7
0.8.1_1
14 Aug 2026 00:38:09
commit hash: 6d39dcf04e96d7cdbad58d1b7f27d25d8e3b75b8commit hash: 6d39dcf04e96d7cdbad58d1b7f27d25d8e3b75b8commit hash: 6d39dcf04e96d7cdbad58d1b7f27d25d8e3b75b8commit hash: 6d39dcf04e96d7cdbad58d1b7f27d25d8e3b75b8 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.13 / 1.26.6
0.8.1
12 Aug 2026 05:32:29
commit hash: 797af8acaf2624aa3d6c221998aa6d7519ffa054commit hash: 797af8acaf2624aa3d6c221998aa6d7519ffa054commit hash: 797af8acaf2624aa3d6c221998aa6d7519ffa054commit hash: 797af8acaf2624aa3d6c221998aa6d7519ffa054 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update distinfo for v0.8.1
0.7.1_13
10 Jul 2026 07:54:15
commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.12 / 1.26.5
0.7.1_12
03 Jun 2026 17:54:22
commit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bd files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.11 / go-1.26.4
0.7.1_11
09 May 2026 17:25:51
commit hash: 4e243a83f8d8d5cd511bba2b689931886b3a57cecommit hash: 4e243a83f8d8d5cd511bba2b689931886b3a57cecommit hash: 4e243a83f8d8d5cd511bba2b689931886b3a57cecommit hash: 4e243a83f8d8d5cd511bba2b689931886b3a57ce files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump ports for Go 1.25.10
0.7.1_10
10 Apr 2026 15:57:27
commit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86a files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.9 / 1.26.2
0.7.1_9
06 Mar 2026 03:33:23
commit hash: a8d318da7c159b84ddff6a525e2e39800ab3f795commit hash: a8d318da7c159b84ddff6a525e2e39800ab3f795commit hash: a8d318da7c159b84ddff6a525e2e39800ab3f795commit hash: a8d318da7c159b84ddff6a525e2e39800ab3f795 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump ports for Go 1.25.8
0.7.1_8
11 Feb 2026 19:21:45
commit hash: 97685c188649d678a8a0e5fde3e8ecb842bf9422commit hash: 97685c188649d678a8a0e5fde3e8ecb842bf9422commit hash: 97685c188649d678a8a0e5fde3e8ecb842bf9422commit hash: 97685c188649d678a8a0e5fde3e8ecb842bf9422 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump ports for Go default 1.24->1.25
0.7.1_7
05 Feb 2026 16:48:00
commit hash: 529df949a5b00103a138f1defddc73ef64750f2fcommit hash: 529df949a5b00103a138f1defddc73ef64750f2fcommit hash: 529df949a5b00103a138f1defddc73ef64750f2fcommit hash: 529df949a5b00103a138f1defddc73ef64750f2f files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.13
0.7.1_6
16 Jan 2026 17:49:03
commit hash: 013f2d30b04bfe9e8d278b7bfad96a64b72c36dacommit hash: 013f2d30b04bfe9e8d278b7bfad96a64b72c36dacommit hash: 013f2d30b04bfe9e8d278b7bfad96a64b72c36dacommit hash: 013f2d30b04bfe9e8d278b7bfad96a64b72c36da files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.12
0.7.1_5
03 Dec 2025 18:24:45
commit hash: b24429e3ede02a855f8e7ecb3564af0287306483commit hash: b24429e3ede02a855f8e7ecb3564af0287306483commit hash: b24429e3ede02a855f8e7ecb3564af0287306483commit hash: b24429e3ede02a855f8e7ecb3564af0287306483 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.11
0.7.1_4
06 Nov 2025 17:03:19
commit hash: 0dfced16fb0f78e71c42a767df8b6f394a185d6ccommit hash: 0dfced16fb0f78e71c42a767df8b6f394a185d6ccommit hash: 0dfced16fb0f78e71c42a767df8b6f394a185d6ccommit hash: 0dfced16fb0f78e71c42a767df8b6f394a185d6c files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.10
0.7.1_3
14 Oct 2025 15:13:55
commit hash: 90f976619bf883b36d921c6ab89ffc5ff156b391commit hash: 90f976619bf883b36d921c6ab89ffc5ff156b391commit hash: 90f976619bf883b36d921c6ab89ffc5ff156b391commit hash: 90f976619bf883b36d921c6ab89ffc5ff156b391 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump go ports for go-1.24.9
0.7.1_2
08 Oct 2025 00:41:39
commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump dependent ports after go124 update
0.7.1_1
04 Sep 2025 17:53:24
commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump go ports for go-1.24.7
0.7.1
19 Aug 2025 15:19:20
commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.7.1
0.7.0_4
07 Aug 2025 00:02:46
commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go ports: Bump for 1.24.6
0.7.0_3
09 Jul 2025 16:11:00
commit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847e files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump PORTREVISION for go-1.24.5 update
0.7.0_2
06 Jun 2025 20:00:53
commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump PORTREVISION after go124-1.24.4 update
0.7.0_1
21 May 2025 19:58:15
commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go: Bump go124-dependent ports

Earlier I bumped the default Go to 1.24. Ports that specify a lower
version will still build with those lower version (for now), so they
don't need a bumping. Instead I'm bumping anything that (now) has go124
as a dependency.
0.7.0
02 May 2025 03:24:36
commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.7.0
0.6.9_2
02 Apr 2025 02:07:58
commit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95a files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go: Bump ports for go124 update
0.6.9_1
05 Mar 2025 16:02:56
commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
Bump all go ports for yesterday's releases
0.6.9
06 Feb 2025 04:24:42
commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.6.9
0.6.8
19 Dec 2024 13:39:07
commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Add port

D2 is a text-to-diagram tool, similarly to Mermaid and PlantUML. I find
it far easier to use than PlantUML, and it produces diagrams that--to
my eye--are more visually-appealing than Mermaid. Plus, it's written in
Go, so it can compile diagrams to disk (unlike Mermaid) and doesn't
require a goofy JVM (unlike PlantUML).

https://d2lang.com

Number of commits found: 31