jgraph/drawio-desktop
53.8
Adequate · 13 November 2026
5.9k
lines of production code
JavaScript
primary language
7
measurements over time
What this system is
Features
Initial repository structure and build configuration
The repository is initialized with the core Electron build configuration files (electron-builder-win.json, electron-builder-linux-mac.json, electron-builder-snap.json, electron-builder-appx.json, electron-builder-win-arm64.json) that define how the draw.io Desktop application is packaged for Windows, macOS, Linux, and Snap. It includes a .gitmodules file to pull the draw.io editor core as a git submodule, a sync.cjs script to manage versioning, and standard project documentation (README, LICENSE, SECURITY, CODE\_OF\_CONDUCT).
(repo-wide) · high confidence
Behavioural changes
Enhanced macOS build quality and new Quick Look preview support
The macOS installer experience is improved with a new icon generation script that applies Apple's macOS 11 design guidelines (rounded corners and shadows) and a build hook that hides system support files in the DMG to prevent UI clutter. A new Quick Look extension allows users to preview .drawio files directly in Finder using the embedded diagram viewer. Security and stability are also addressed: Electron fuses are enabled to restrict Node.js access and enforce ASAR integrity, a specific entitlement is added to allow the Quick Look extension network access, and a fix prevents crashes on macOS ARM64 by disabling a problematic V8 snapshot option.
build · high confidence
Major desktop application rewrite and security hardening
The desktop application's main process has been rewritten to address multiple security vulnerabilities and improve stability. Key changes include restricting renderer file reads and writes to user-authorised paths, preventing symbolic link following in CLI exports, and starting Windows system tools by absolute path to mitigate path traversal risks. The update mechanism now defaults to silent background updates with a 24-hour cache, and the application supports multiple input files, HTML export, and Mermaid file handling via the CLI. Additionally, the codebase has been migrated to ES Modules, upgraded to Electron 44, and includes improved error handling for CLI exports and print operations.
src/main · high confidence
Test coverage
Added tests for security, CLI, and desktop behavior fixes
Added unit tests in src/test to verify the correctness of several desktop application fixes and features: preventing GUI backup symlink writes ([GHSA redacted]), stopping CLI export from following unauthorized symbolic links ([GHSA redacted]), using absolute paths for Windows system tools ([GHSA redacted]), resetting off-screen or oversized windows to the primary display on start (\#2282), enabling auto-update for Windows arm64 builds (\#2197), watching files for the requesting window (\#2541), using the embedded exe icon for MSI shortcuts (\#2487), and validating CLI argument parsing and configuration path collection. Also in this area: 3 commits adding/updating tests in src/test; 1 commit adding/updating tests in src/test; Added tests for animated GIF and MP4 export handling; Added tests for CLI argument parsing, URL parameters, and configuration path security; Added tests for print options and update mode logic.
src/test · high confidence · unverified
Dependencies
Upgrade to Electron 44 and Node 22 with new build tooling
The desktop application has been upgraded to Electron 44.2.0 and requires Node.js 22.12.0 or later, reflecting a significant platform shift. This update introduces ES Modules support (via the "type": "module" field) and updates the build toolchain to electron-builder 26.15.7 and @electron/fuses 2.1.3. Runtime dependencies have also been refreshed, including electron-updater 6.8.9 for auto-updates, electron-log 5.4.4 for logging, and @cantoo/pdf-lib 2.7.3 for PDF handling.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 53 → 54 (+0.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 46 → 47 (+1.6)
- Architecture 100 → 100 (+0.0)
- Maturity 57 → 60 (+2.5)
- Readiness 48 → 48 (+0.3)
- Security 72 → 61 (-11.1)
- Performance 100 → 100 (+0.0)
Resolved (9)
- (anonymous) (cyclomatic 54) (src/main/electron.js)
- No ADRs found
- Off-boarding risk: anonymized user #1
- Outdated (npm): electron-updater
- buildHtmlExport (cognitive 22) (src/main/electron.js)
- electron.buildHtmlExport (cyclomatic 20) (src/main/electron.js)
- electron.readPdfXml (cognitive 92) (src/main/electron.js)
- electron.readPdfXml (cyclomatic 34) (src/main/electron.js)
- electron.readPngXml (cognitive 21) (src/main/electron.js)
New (10)
- (anonymous) (cyclomatic 55) (src/main/electron.js)
- Medium CVE: [GHSA redacted] (package-lock.json)
- Medium CVE: [GHSA redacted] (package-lock.json)
- No ADRs found (package.json)
- Off-boarding risk: anonymized user #1
- buildHtmlExport (cognitive 26) (src/main/html-export.js)
- html-export.buildHtmlExport (cyclomatic 23) (src/main/html-export.js)
- pdf-xml.readPdfXml (cognitive 112) (src/main/pdf-xml.js)
- pdf-xml.readPdfXml (cyclomatic 40) (src/main/pdf-xml.js)
- png-xml.readPngXml (cognitive 29) (src/main/png-xml.js)
Changes since last survey
- 15 commits — 14 feature/other, 1 fixes
By area
- (repo) — 7 commits
- (root) — 6 commits
- src/main — 2 commits
Notable commits
- fix: Fixes CLI HTML export dying and hanging on large diagrams
- change: Exports all pages as one SVG with --all-pages -f svg [jgraph/drawio#5821]
- change: Merge commit '62d85576c5fc03308a8e6f2aa55a11c9a0e645d6' into dev
- change: Merge pull request #2592 from jgraph/claude/svg-all-pages-2026-10-26
- change: Merge pull request #2594 from jgraph/releases/v32.6.10
- change: Merge pull request #2596 from jgraph/claude/png-inflate-limit-2026-11-04
- change: Merge pull request #2597 from jgraph/claude/html-export-large-diagrams
- change: Merge pull request #2598 from jgraph/claude/pdf-inflate-limit-2026-11-04
- change: Merge remote-tracking branch 'origin/dev' into claude/html-export-large-diagrams
- change: Moves the PDF diagram reader to its own module
- change: Prepare release v32.6.10
- change: Stops inflating PDF diagram streams past the longest readable string
- change: Stops inflating PNG diagram text past the longest readable string
- change: Stops reading PNG chunks past the end of the file
- change: Updates to draw.io 32.6.10
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jgraph/drawio-desktop was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 0623fb3c1523639b06600d5c33e3a127bf82aa1c — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.