Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-11-24 10:56 UTC

d2lang / d2

D2 is a modern diagram scripting language that turns text to diagrams.

GoMPL-2.0★ 25,909 stars⑂ 787 forkssince Sep 2022View on GitHub ↗
KindLibraryApplicationhow this is determined

d2lang/d2 holds a health index of 91 out of 100, placing it in the Excellent band. It scores highest on Community & Adoption (94/100) and lowest on Sustainability & Governance (68/100). It was last updated today. 2 contributors account for most of its recent work.

91
overall / 100
Excellent

Software health index

Metrics are grouped into weighted categories on one standardized 1–100 scale. Overall starts as their weighted mean, calibrated against the distribution of the public record so bands carry percentile meaning; when public evidence triggers the High-Risk Jurisdiction Policy, the rating is adjusted and receives an At Risk ceiling of 34.

91
Exceptional93-100The record's top tier (≈ top 5%); essentially all checked criteria met
Excellent80-92Strong across the board; minor gaps
Good65-79Healthy; gaps are limited and manageable
Moderate50-64Acceptable with notable gaps; review recommended
Weak35-49Material weaknesses across several areas
At Risk20-34Significant weaknesses; adoption warrants caution
Critical1-19Severe problems (abandoned, single-maintainer, no hygiene)
VitalityCommunity &AdoptionSustainability &GovernanceEngineeringQualitySecurityAI Readiness

Score profile

Each axis is a category. The shape matters more than the average — a healthy subject fills the whole shape, while a spike-and-crater profile means strength in one dimension is masking risk in another.

The weighted overall 77 is calibrated to 91 on the published index scale (record calibration 2026-08-02).

Ownership

D2Organization
23 followers18 public repossince Nov 2025

This repository is backed by an organization — shared, accountable stewardship that can outlive any single maintainer.

Package ecosystems

RegistryPackageVersionDownloads / moVersionsLast publish
Gogithub.com/d2lang/d2v0.9.0-3977 days ago

Metrics by category

Vitality

Is the project alive — is code being written and are releases shipping?

78Good · 21% of overall
How it's scored
36/36Push recency — last push 0 days ago
10.4/36Commit cadence — 15/52 weeks with commits
18/18Commit volume — 533 commits in the last year
10/10OpenSSF Scorecard: Maintained — 30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
Inputs used
Commits in the last year533
Share of human-authored commits1
Days since last push0
Weeks with commits in the last year15
How it's scored
27/27Ships releases — 36 releases published
36/36Release recency — latest release 77 days ago
19.8/27Release cadence — a release every ~97.7 days
0/10OpenSSF Scorecard: Signed-Releases — Project has not signed or included provenance with any releases.
Inputs used
Number of releases36
Latest release tagv0.9.0
Releases derived from version tagsno
Days since latest release77
Mean days between releases97.7

Community & Adoption

Does the project have users, downloads, attention, and a welcoming setup for contributors?

94Exceptional · 17% of overall
How it's scored
60/60Stars — 25,909 stars
24.1/25Forks — 787 forks
10.5/15Watchers — 78 watchers
Inputs used
Forks787
Stars25,909
Watchers78
Growth authenticity stateunverified
Multiplier applied to stars and forks (%)100
Reason growth could not be assessedno_history

Community health

92Excellent
How it's scored
22.5/22.5README
22.5/22.5License — recognized license (MPL-2.0)
18/18CONTRIBUTING guide
13.5/13.5Code of conduct
0/7.2Issue template
6.3/6.3PR template
Inputs used
README presentyes
License file presentyes
Badges in the README7
CONTRIBUTING guide presentyes
Issue template presentno
Code of conduct presentyes
Badge services used in the READMEgithub.com, shields.io
Pull request template presentyes

Sustainability & Governance

Will the project survive its people — bus factor, responsiveness, who backs it, and package upkeep?

68Good · 23% of overall
How it's scored
25.2/54Bus factor — 2 contributor(s) cover half of all commits
14.3/22.5Commit distribution — top contributor authored 37% of commits
13.5/13.5Contributor breadth — 72 contributors
10/10OpenSSF Scorecard: Contributors — project has 28 contributing companies or organizations
Inputs used
Bus factor2
Contributors sampled72
Share of commits by the top contributor0.366
How it's scored
28.2/42Issue resolution — 67% of issues closed
27.8/30PR acceptance — 1,226/1,322 decided PRs merged
7.6/13Newcomer PR acceptance — 7/12 first-time contributors' PRs merged in 30d
1.5/15OpenSSF Scorecard: Code-Review — Found 1/10 approved changesets -- score normalized to 1
Inputs used
Merged pull requests1,226
Open issues464
Closed issues952
Pull requests merged in the last 7 days51
Pull requests decided in the last 7 days57
Pull requests merged in the last 30 days51
Pull requests decided in the last 30 days58
Share of issues closed0.672
Pull requests closed without merging96
First-time contributors with a pull request decided in the last 30 days9
Pull requests from first-time contributors merged in the last 30 days7
Pull requests from first-time contributors decided in the last 30 days12
How it's scored
30/30Ownership backing — organization-owned
0/20Verified domain
9.9/25Owner reach — 23 followers of d2lang
11.4/25Track record — 18 public repos, account ~1 yr old
Inputs used
Followers23
Owner account typeOrganization
Verified domainno
Owner accountd2lang
Public repositories18
Owner account age in days384

Package maintenance

100Exceptional
How it's scored
25/25Published & resolvable — 1 package(s) on go
35/35Publish recency — latest publish 77 days ago
20/20Version history — 39 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
Packagesgithub.com/d2lang/d2
Package ecosystemsgo
Any package deprecated or yankedno
Days since latest package publish77

Engineering Quality

Are baseline engineering and documentation practices in place?

77Good · 19% of overall
How it's scored
24/24CI workflows — 8 workflow(s)
24/24Tests present
0/16Linter config
0/9.6Pre-commit hooks
0/6.4.editorconfig
20/20OpenSSF Scorecard: CI-Tests — 10 out of 10 merged PRs checked by a CI test -- score normalized to 10
Inputs used
CI workflows presentyes
Tests presentyes
.editorconfig presentno
Linter config presentno
Pre-commit config presentno

Documentation

90Excellent
How it's scored
30/30README
25/25Documentation directory
15/15Documentation / homepage site — https://d2lang.com
10/10Repository description
10/10Topics — 7 topics
0/10Wiki
Inputs used
Repository topicsdiagramming, diagrams, text-to-diagram, software-architecture, go, golang, developer-tools
Wiki enabledno
Repository homepagehttps://d2lang.com
Documentation sitehttps://d2lang.com
README presentyes
Documentation directory presentyes
Repository description presentyes

Security

Are visible security and supply-chain practices strong, without unresolved high-risk jurisdiction exposure?

71Good · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
0/7.5Branch-Protection — no data
2.5/2.5CI-Tests — 10 out of 10 merged PRs checked by a CI test -- score normalized to 10
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
0.8/7.5Code-Review — Found 1/10 approved changesets -- score normalized to 1
2.5/2.5Contributors — project has 28 contributing companies or organizations
10/10Dangerous-Workflow — no dangerous workflow patterns detected
0/7.5Dependency-Update-Tool — no update tool detected
5/5Fuzzing — project is fuzzed
2.5/2.5License — license file detected
7.5/7.5Maintained — 30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
5/5Packaging — packaging workflow detected
4.5/5Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 9
0/5SAST — SAST tool is not run on all commits -- score normalized to 0
0/5Security-Policy — security policy file not detected
0/7.5Signed-Releases — Project has not signed or included provenance with any releases.
7.5/7.5Token-Permissions — GitHub workflow tokens follow principle of least privilege
7.5/7.5Vulnerabilities — 0 existing vulnerabilities detected
Inputs used
Data sourceopenssf_scorecard
Scorecard checks evaluated17
OpenSSF Scorecard versionv5.5.0
Scorecard checks inconclusive1
OpenSSF Scorecard aggregate score6.4
Excluded from scoring (no data or not applicable): Branch-Protection. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
0/25Indirect dependencies free of known advisories — transitive set not separable from development and test dependencies in this scope
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
Data sourceosv
Advisories across affected packages0
Packages affected by advisories0
Packages assessed67
Packages not assessed0
Affected packages by severitynone
Direct dependencies affected by advisories0
Excluded from scoring (no data or not applicable): Indirect dependencies free of known advisories, No advisories left outstanding. Remaining weights renormalized. Matched 67 resolved dependencies against OSV. This repository publishes no package the index resolves, so the repository dependency graph was assessed instead. That graph mixes development and test pins with shipped dependencies, so only the declared runtime dependencies are scored; transitive findings are reported as context and excluded from the score. Reachability is not analyzed.

AI Readiness

How well is the repo equipped to be developed and maintained with AI coding agents? Carries a deliberately small weight (4%): agent tooling is a real maintenance signal, but a repository with none can still reach 100/100.

78Good · 4% of overall
How it's scored
0/45Agent instructions — no CLAUDE.md / AGENTS.md / editor rules
15/15Machine-readable docs (llms.txt) — llms.txt served by the project website (https://docs.localstack.cloud/llms.txt)
40/40Legible commit history — 83 of 100 human commits state their intent (structured subject or explanatory body)
Inputs used
llms.txt presentyes
llms.txt address on the project websitehttps://docs.localstack.cloud/llms.txt
Share of human commits that state their intent0.83
Agent instruction files—
Size of the largest agent instruction file (bytes)—
How it's scored
18/18One-command bootstrap — Makefile, ci/release/template/Makefile, d2js/js/Makefile
22/22Automated tests
0/11Lint / format config
11/11Static type checking — d2js/js/test/types/tsconfig.json
10/10Reproducible environment — Dockerfile, lockfile
10/10Demonstrated agent practice — 40 of the last 100 commits agent-authored or agent-credited
0/8Automated maintenance — no automated dependency updates observed
9/10OpenSSF Scorecard: Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 9
Inputs used
Nix config presentno
Tests presentyes
Dependency lockfilesgo.sum, package-lock.json
Dockerfile presentyes
Primary language statically typedyes
One-command bootstrap filesMakefile, ci/release/template/Makefile, d2js/js/Makefile
Dev container config presentno
Linter config presentno
Static type-check config filesd2js/js/test/types/tsconfig.json
Share of commits authored by or credited to coding agents0.4
Toolchain manifestsgo.mod
Share of commits that are automated dependency updates0
How it's scored
45/45Type-checkable code — Go (statically typed)
54.6/55Manageable file sizes — 11/1,423 source files over 60KB
Inputs used
Primary languageGo
Size of the largest source file (bytes)148,585
Source files sampled1,423
Oversized source files11
How it's scored
0/40API schema (OpenAPI/GraphQL/proto) — not applicable to this kind of software
0/20MCP server — not applicable to this kind of software
40/40Runnable examples — examples
Inputs used
Runnable example directoriesexamples
MCP server signal presentno
API schema files—
Software kinds for which an interface is expected—
Excluded from scoring (no data or not applicable): API schema (OpenAPI/GraphQL/proto), MCP server. Remaining weights renormalized.

Key facts

25,909GitHub stars
72contributors
533commits, last 12 months
0days since last push
36releases
2bus factor
464open issues
Gopackage ecosystems

Data collection warnings

  • Star history unavailable

More detail

Star and fork history 0 ★ / 787 ⇿
0Stars
787Forks
35Releases

When each star and fork was added, collected from GitHub and bucketed by day. Cumulative growth sits directly above the daily additions it is made of, so the two read against each other: steady organic accretion looks nothing like an abrupt, short-lived burst. Where that difference is measurable, it is reported as growth authenticity.

0200400600800782352022-112024-112026-11
Major 0Minor 8Patch 27

Each point covers 4 days.

OpenSSF Scorecard 6.4 / 10
6.4aggregate

Independent, tool-agnostic security assessment from the open-source OpenSSF Scorecard. Each check rewards a security practice, not a specific vendor's tool. Checks Scorecard could not determine are marked n/a and excluded from the security score (never counted as zero).Scorecard v5.5.0 · 2026-11-24 10:55 UTC

10Binary-Artifactsno binaries found in the repo
n/aBranch-Protectioninternal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
10CI-Tests10 out of 10 merged PRs checked by a CI test -- score normalized to 10
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
1Code-ReviewFound 1/10 approved changesets -- score normalized to 1
10Contributorsproject has 28 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
0Dependency-Update-Toolno update tool detected
10Fuzzingproject is fuzzed
10Licenselicense file detected
10Maintained30 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
10Packagingpackaging workflow detected
9Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 9
0SASTSAST tool is not run on all commits -- score normalized to 0
0Security-Policysecurity policy file not detected
0Signed-ReleasesProject has not signed or included provenance with any releases.
10Token-PermissionsGitHub workflow tokens follow principle of least privilege
10Vulnerabilities0 existing vulnerabilities detected
Direct dependencies 24
RegistryPackageVersion constraintManifest
Gocodeberg.org/go-pdf/fpdfv0.12.0go.mod
Gogithub.com/PuerkitoBio/goqueryv1.14.0go.mod
Gogithub.com/alecthomas/chroma/v2v2.27.0go.mod
Gogithub.com/andybalholm/brotliv1.3.0go.mod
Gogithub.com/coder/websocketv1.8.15go.mod
Gogithub.com/d2lang/dagrov0.3.1go.mod
Gogithub.com/d2lang/elk-gov0.3.2-0.20261123233526-e6e39338a948go.mod
Gogithub.com/d2lang/mathjax-gov0.1.1-0.20261002175158-94d80186bfd7go.mod
Gogithub.com/d2lang/rough-gov0.2.0go.mod
Gogithub.com/d2lang/util-gov0.2.0go.mod
Gogithub.com/ericpauley/go-quantizev0.0.0-20200331213906-ae555eb2afa4go.mod
Gogithub.com/fsnotify/fsnotifyv1.10.1go.mod
Gogithub.com/go-text/typesettingv0.3.4go.mod
Gogithub.com/lucasb-eyer/go-colorfulv1.4.1go.mod
Gogithub.com/mazznoer/csscolorparserv0.2.0go.mod
Gogithub.com/rivo/unisegv0.4.7go.mod
Gogithub.com/spf13/pflagv1.1.0go.mod
Gogithub.com/stretchr/testifyv1.12.1go.mod
Gogithub.com/yuin/goldmark/v2v2.1.16go.mod
Gogolang.org/x/imagev0.48.0go.mod
Gogolang.org/x/netv0.63.0go.mod
Gogolang.org/x/syncv0.25.0go.mod
Gogolang.org/x/textv0.44.0go.mod
Gogolang.org/x/toolsv0.53.0go.mod
All dependencies 67

Full resolved dependency set from the GitHub dependency graph: 24 direct and 43 indirect (transitive) packages. The transitive closure is complete when the repository commits a lockfile.

RegistryPackageVersionRelation
Gocodeberg.org/go-pdf/fpdfv0.12.0direct
Gogithub.com/alecthomas/chroma/v2v2.27.0direct
Gogithub.com/andybalholm/brotliv1.3.0direct
Gogithub.com/coder/websocketv1.8.15direct
Gogithub.com/d2lang/dagrov0.3.1direct
Gogithub.com/d2lang/elk-gov0.3.2-0.20261123233526-e6e39338a948direct
Gogithub.com/d2lang/mathjax-gov0.1.1-0.20261002175158-94d80186bfd7direct
Gogithub.com/d2lang/rough-gov0.2.0direct
Gogithub.com/d2lang/util-gov0.2.0direct
Gogithub.com/ericpauley/go-quantizev0.0.0-20200331213906-ae555eb2afa4direct
Gogithub.com/fsnotify/fsnotifyv1.10.1direct
Gogithub.com/go-text/typesettingv0.3.4direct
Gogithub.com/lucasb-eyer/go-colorfulv1.4.1direct
Gogithub.com/mazznoer/csscolorparserv0.2.0direct
Gogithub.com/puerkitobio/goqueryv1.14.0direct
Gogithub.com/rivo/unisegv0.4.7direct
Gogithub.com/spf13/pflagv1.1.0direct
Gogithub.com/stretchr/testifyv1.12.1direct
Gogithub.com/yuin/goldmark/v2v2.1.16direct
Gogolang.org/x/imagev0.48.0direct
Gogolang.org/x/netv0.63.0direct
Gogolang.org/x/syncv0.25.0direct
Gogolang.org/x/textv0.44.0direct
Gogolang.org/x/toolsv0.53.0direct
Gogithub.com/andybalholm/cascadiav1.3.5indirect
Gogithub.com/dlclark/regexp2/v2v2.13.2indirect
Gogithub.com/pkg/browserv0.0.0-20240102092130-5ac0b6a4141cindirect
Gogo.uber.org/multierrv1.11.0indirect
Gogo.yaml.in/yaml/v3v3.0.6indirect
Gogolang.org/x/expv0.0.0-20261120182113-8801fbdfac81indirect
Gogolang.org/x/sysv0.50.0indirect
Gogolang.org/x/termv0.48.0indirect
Gogolang.org/x/xerrorsv0.0.0-20240903120638-7835f813f4daindirect
npm@oven/bun-darwin-aarch641.4.5indirect
npm@oven/bun-darwin-x641.4.5indirect
npm@oven/bun-freebsd-aarch641.4.5indirect
npm@oven/bun-freebsd-x641.4.5indirect
npm@oven/bun-linux-aarch641.4.5indirect
npm@oven/bun-linux-aarch64-android1.4.5indirect
npm@oven/bun-linux-aarch64-musl1.4.5indirect
npm@oven/bun-linux-x641.4.5indirect
npm@oven/bun-linux-x64-android1.4.5indirect
npm@oven/bun-linux-x64-musl1.4.5indirect
npm@oven/bun-windows-aarch641.4.5indirect
npm@oven/bun-windows-x641.4.5indirect
npm@typescript/typescript-aix-ppc647.0.2indirect
npm@typescript/typescript-darwin-arm647.0.2indirect
npm@typescript/typescript-darwin-x647.0.2indirect
npm@typescript/typescript-freebsd-arm647.0.2indirect
npm@typescript/typescript-freebsd-x647.0.2indirect
npm@typescript/typescript-linux-arm7.0.2indirect
npm@typescript/typescript-linux-arm647.0.2indirect
npm@typescript/typescript-linux-loong647.0.2indirect
npm@typescript/typescript-linux-mips64el7.0.2indirect
npm@typescript/typescript-linux-ppc647.0.2indirect
npm@typescript/typescript-linux-riscv647.0.2indirect
npm@typescript/typescript-linux-s390x7.0.2indirect
npm@typescript/typescript-linux-x647.0.2indirect
npm@typescript/typescript-netbsd-arm647.0.2indirect
npm@typescript/typescript-netbsd-x647.0.2indirect
npm@typescript/typescript-openbsd-arm647.0.2indirect
npm@typescript/typescript-openbsd-x647.0.2indirect
npm@typescript/typescript-sunos-x647.0.2indirect
npm@typescript/typescript-win32-arm647.0.2indirect
npm@typescript/typescript-win32-x647.0.2indirect
npmbun1.4.5indirect
npmtypescript7.0.2indirect
Dependency advisories 0

This repository publishes no package the index resolves, so its own dependency graph was assessed — 67 packages, which also include development and test pins that never ship: 0 carry known advisories, of which 0 are direct.

No known advisories affect the assessed dependencies.

An advisory means the version recorded in the dependency graph falls inside an advisory’s affected range. Reachability is not analysed, and the graph includes development and test pins — a finding may concern tooling rather than shipped software.

Raw JSON report machine-readable

Feedback

Spotted something off in this report, or have thoughts to share? Wrong measurements, missed tooling, ideas, questions — anything is welcome. Every message is read and gets a response.

The message is kept through sign-in.

Scores are signals, not warranties. They reflect publicly visible practices on GitHub — not a code audit, and not a security guarantee.

Missing data is excluded and weights renormalized, never scored as zero. Methodology is versioned and open: metrics v2.10.0, schema v0.34.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statistics — Go.