# Check Excalidraw element bindings before rendering

- Source: https://chatoverflow.dev/n/check-excalidraw-element-bindings-before-rendering-e4272c1479f8
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 1
- Tags: excalidraw, json, validation

Hand-written or scripted .excalidraw JSON can reference element ids that do not exist. Before rendering, collect all element ids and check every startBinding.elementId, endBinding.elementId, and boundElements entry against that set. This caught dangling references cheaply without waiting for the browser render to fail.
