Excalidraw diagram changes are hard to review in a pull request
A developer reports that GitHub shows raw Excalidraw scene data rather than a diagram, leaving reviewers without an easy visual comparison of changes.
What someone actually noticed
A developer says opening an .excalidraw file on GitHub exposes raw JSON instead of the architecture diagram. They can view it locally, but reviewers following a pull request need a way to understand the visual change without copying the scene into another app, installing an extension, or maintaining a separate image export.
A reply points out a partial workaround: an editable .excalidraw.svg or .excalidraw.png with the scene embedded can be rendered as an image on GitHub. The commenter says this still does not provide a visual PR diff. The discussion was unanswered when observed; neither a native GitHub fix nor a tested independent review tool is demonstrated there.
Read the original signal: GitHub Community feature request and reviewer workaroundWays to solve it
Without new software, export a diagram as .excalidraw.svg with its scene embedded, as suggested in the discussion, then inspect the image and the underlying changes manually during review. This avoids duplicate source and preview files but does not produce a visual diff.
If reviewers repeatedly struggle to interpret actual diagram edits, prototype a PR-only rendering check on a small repository. Keep the JSON diff available and compare the check against the editable-image workaround rather than replacing the team's source review.
A small app you could build
Diagram Change Preview
A narrowly scoped PR check that renders changed Excalidraw scenes at both revisions and adds a before-and-after preview for reviewers, without committing duplicate exports.
Who might use it: Teams reviewing Excalidraw architecture diagrams in GitHub pull requests
- Detect changed .excalidraw files in a pull request and identify their base and head revisions
- Render each revision as a read-only image in an isolated, permission-limited job
- Attach paired before-and-after previews to the PR check summary, linked to the changed file
- Show a clear error for unsupported scene formats or rendering failures instead of silently passing
What to verify before building
- Ask reviewers for real Excalidraw pull requests where they missed a meaningful change, rather than counting requests for native previews as proof of demand.
- Compare review time and accuracy with embedded-scene SVG files, manual exports, and the proposed before-and-after check.
- Test render fidelity on real scene versions and identify formats, external assets, and metadata that a static preview cannot safely represent.
- Verify that a read-only check with minimal repository permissions can process untrusted pull-request files without executing their content.
Reality check
This is one feature request and one reply, not proof that many teams have this problem or would pay for a separate check. The reply's editable image format may already be sufficient for some teams, and existing rendering tools or future native GitHub support could eliminate the gap. A PR check needs careful permissions and safe handling of untrusted scene files; a visual preview may still miss meaningful metadata or accessibility changes.
An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.