Local-firstLocal-first PDF preview with backend authority
Local-first means the browser can show safe, immediate edit previews while the backend remains responsible for authoritative save and export.
Technology previewPDFium WASM activeReplay enabled
Runtime pipeline
From PDF bytes to final composite, all inside the browser preview path.
Local-firstDeterministicReal-time previewBackend-authoritative export
Problem
What this changes
Traditional PDF preview loops send every small edit to the backend, wait for document mutation, render a new preview and then update the browser. That is reliable, but it makes style changes, text moves and interaction feel slower than they need to.
Browser Core approach
Runtime-first preview
Browser Core uses a hybrid authority model: the browser owns live preview, local operations, interaction state, render graph composition and replay before commit; the backend owns imported document state, persistence, final save, export and authoritative revisions.
What this solves
Updates the live preview immediately without waiting for a backend preview image
Rebuilds uncommitted preview state after refresh through operation replay
Removes committed operations after save so backend-updated content is not drawn twice
Prefers a safe previous frame over an unsafe fast frame when cleanup is not ready
Current status
Hybrid browser/backend authority
Immediate local preview
Refresh-safe operation replay
Safe text cleanup before replacement
Backend-authoritative save and export