v1.0 - see migration guide

The headless PDF editor for the web.

Open source. Open code. Compound React primitives on top of a framework-agnostic core - drop in the default shell or assemble your own UI.

Compound primitives

A flat Editor.* namespace - Root, Canvas, Section, Toolbar, Properties - that snaps together with no prop drilling.

Framework-agnostic core

Document model, reducer, history timeline, and the jspdf pipeline live in @docmosaic/core. Bring your own UI.

Fully client-side

No backend, no uploads. The entire document model lives in React state - privacy is the default.

Install

bun add @docmosaic/react @docmosaic/core