RepoPilot

jgraph / drawio-desktop

Search jgraph/drawio-desktop

GitHub

Code

How jgraph/drawio-desktop is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Declared package entry
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new CLI argument

  • Define argument schema and parser logic
  • Add unit tests covering the new argument and edge cases
  • Convert argument to URL parameter if needed for the web editor
  • Pass the parsed value to electron.js for window creation or IPC

Add support for a new export format

  • Implement format handler in export-files.js with mime type and extension
  • Call renderer process via IPC to render the diagram in the new format
  • Add unit test validating the format is recognized and file is written

Add a new build platform or installer type

  • Create new electron-builder JSON config (e.g., electron-builder-linux-arm.json)
  • Add corresponding release script in package.json scripts
  • Create GitHub Actions workflow to build and publish the new variant
  • Update DEVELOPMENT.md and RELEASE_PROCESS.md with build instructions

Add a new file system operation with backup and watching

  • Implement the operation as an IPC handler in electron.js
  • Call backup-file.js to create a backup before writing
  • Register the file path with file-watcher.js to detect external changes
  • Write tests covering backup, watch, and conflict scenarios

Change the public API

  • Declared by package.json (main). Follow its exports or calls to find the implementation.

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

Code quality and hotspots

Largest source files

  • Branch points71 per file on average
  • Code issues22 errors, 314 warnings
  • Largest file4,573 lines
  • Hotspot load2 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions8 workflows
  • Tests12 test filesJest/Vitest · 0.55 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: src/test

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.