.docx, .odt, .rtf, Markdown, plain text, or
HTML) and get a .docx back. The component:
- parses the file with Revise’s converters, keeping comments and tracked changes on the DOCX path;
- opens a Yjs-backed editing session. Every document is a CRDT, so real-time collaboration over your own transport needs no extra setup;
- renders the document on canvas with pagination, with the built-in ribbon or your own toolbar;
- keeps comments and tracked changes through the round trip;
- exposes Revise’s document-local JSON-schema tools, so the model you already run can read and edit the document;
- exports to
.docx.
revise, the MIT CLI and
TypeScript library built on the same engine and released at the same
version. Your server can join the same collaborative documents: seed rooms
before anyone opens them, edit live documents headlessly, propose tracked
changes for a user to review in the browser, and export to Word. All of this
works on a host-owned Y.Doc, with no React mount and no model. Browser and
server share one tool contract: the same tools, schemas, and
{ ok, value | error } results. See
collaboration and the
revise library.
What it does not include
The SDK does not provide accounts, authentication, document storage, collaboration servers, tenancy, billing, or an application shell. It is a component, not a platform. Nothing leaves the browser unless you connect an agent.For multi-user editing, pass a Yjs provider (Hocuspocus, y-websocket, or your
own). The document then shows remote carets and presence. The SDK never
opens a connection or stores anything. There is no document locking, and
roles are enforced on the client, not the server. See
collaboration and roles.
Install it with
npm i @reviseio/editor. The SDK is closed-source and free for
evaluation, personal projects, and education. Production use by businesses,
nonprofits, and government requires a license.Two API surfaces
The SDK has one API for your application and one for your agent.Your application
Component props, callbacks, and the typed controllers on
ReviseEditorHandle. Subscriptions, focus management, File and Blob
objects, custom toolbars and panels. See the handle
reference.Your agent
JSON-schema tools with serializable inputs and outputs. They operate on
semantic document state, not UI geometry, and run without React state or
browser focus. See agent tools.
Use cases
AI copilots
Products that edit contracts, not only render them.
Vertical workflow apps
Apps that replace a round trip through Microsoft Word.
Review products
Products where every change must be attributable and reversible.
Document-heavy SaaS
Products whose workflow ends in “download the .docx”.