You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D2 only uses a narrow slice of Playwright to drive Chromium for PNG/GIF/PDF/PPTX. We should probably replace it with chromedp and use an installed Chrome-family browser (proposed minimum: Chromium 132), while keeping SVG browser-free.
Why:
Remove the Node/Playwright driver and browser-download lifecycle, including CDN/module failures.
Keep D2 a pure-Go, no-cgo binary and reuse an installed browser.
A spike found static and animated output parity when both paths used the same Chrome.
Important tradeoffs:
Browserless systems must install Chromium; official Docker/CI must provision and pin it on amd64 and arm64.
Raster bytes and performance may vary by browser version, so reproducible CI must use an exact browser version.
chromedp is lower-level, so D2 must own and test focus, animation, readiness, screenshots, and lifecycle behavior.
Activity
alixander commentedon Sep 3, 2026
Closing as resolved by #2868: D2 no longer uses Playwright or Chromium for PNG, GIF, PDF, or PPTX rendering.