Linora

0025. React for app UI; engine and canvas outside React

Status: Accepted (2026-11-27, user decision). Supersedes 0016.

Context

The app UI is growing: login, projects, files, members, tokens, pages, layers tree, properties, and soon comments, components and prototyping. Hand-written DOM (ADR 0016) costs a lot of boilerplate for forms and lists. The canvas must keep its frame budget: 4,000 pages / 5M shapes at ~120 fps, and drags never wait on UI.

Decision

Alternatives

Consequences

One UI runtime (~60 KB gzip) on the canvas page, loaded alongside the editor chunk. The editor exposes a framework-free state API (subscribe/getSnapshot, index-based layer access, selection, selected-node props, tool, zoom, perf). The shell’s sync and presence code stays framework-free in packages/sync-client; React components subscribe to sessions the same way.

Amendment (2026-11-27, WP-D): implementation notes

The decision is unchanged; details are in 0402.