Technical Documentation

Excalidraw Reuse Assessment

Excalidraw Reuse Assessment

Decision matrix for every Excalidraw capability considered for Falcon Flowmira Whiteboard Mode. Decisions are Adopt (use as-is via the official package), Adapt (wrap and modify), Rebuild (build Falcon-native), or Reject (do not use).

FeaturePackage/FileDecisionReason
React canvas component@excalidraw/excalidraw <Excalidraw />AdoptPublic, stable API, MIT, tree-shakeable, lazy-loadable.
Scene serialization (JSON)@excalidraw/excalidraw/dataAdoptUsed through public helpers serializeAsJSON / restore.
PNG exportexportToBlobAdoptPublic helper, meets Pro export requirement.
SVG exportexportToSvgAdoptPublic helper, sanitized before persistence.
Undo/redoComponent internalAdoptShips with the component.
Freehand, shapes, arrows, textComponent internalAdoptMeets Whiteboard core.
Library items (.excalidrawlib)loadLibraryFromBlob, loadSceneOrLibraryFromBlobAdaptImport path is public; SVGs are sanitized before insertion; import is size-, MIME-, and magic-byte-validated.
FramesComponent internalAdoptSufficient for Pro Whiteboard organization.
Image handlingComponent internalAdaptImages are lifted out of scene JSON above 200 KB and stored in private Supabase storage with signed URLs.
Firebase collaborationExcalidraw appRejectNot part of the package; requires hosted-service coupling. Multiplayer is rebuilt on Supabase Realtime with owner-only RLS.
Excalidraw+ authenticationExcalidraw appRejectNot applicable; Falcon Flowmira uses Supabase Auth.
Excalidraw analyticsExcalidraw appRejectNot part of the package; never enabled.
Service worker & offlineExcalidraw appRejectFalcon Flowmira ships its own offline queue keyed to Supabase.
Localization stringsPackageAdopt (default en)English only for launch; Falcon UI chrome is localized separately.
Custom themesPackage theme propAdaptWired to Falcon Onyx (dark) and Apple × Tesla (light) via prop.
BPMN / UML / ERD shape packsRebuildNot provided upstream. Delivered via Falcon Industry Shape Packs.
Agentic AI / RAG nodesRebuildFalcon-native.
True layers / pages / tagsRebuildNot provided upstream. Layered on top of scene JSON in the Falcon document envelope.
Rafa AI toolsRebuildFalcon-native, BYOK only, restricted tool API.
Firebase room linksExcalidraw appRejectSecurity risk; superseded by Supabase Realtime room-authorization design.

Adopt / Adapt Summary

The package's public API is sufficient for Pro Whiteboard. No Excalidraw internal source is vendored or copied.

Reject Summary

Every hosted-service or Firebase-coupled capability is rejected. Collaboration is rebuilt on Supabase Realtime; storage on Supabase Storage; auth on Supabase Auth; analytics on Falcon engagement events.