Skip to main content

Install

The SDK ships as a self-contained npm tarball. React and ReactDOM stay your peer dependencies — the package never bundles its own copy.
Requires React 18 or newer and Node 18 or newer to build. The component is browser-only: render it client-side (in Next.js, a "use client" component, usually behind next/dynamic with ssr: false).
Import the stylesheet once, anywhere in your application:

Render a document

ReviseEditor is a multi-document workspace. Give each document a stable ID that you own — the SDK uses it for routing, callbacks, and agent tools. The source can be a DOCX, Markdown, plain text, or HTML file; see supported formats.
DocumentPane.tsx
That is a complete integration. The component owns parsing, layout, pagination, input, undo, find, comments, and review; you own the file and the surrounding product.

Get the file back

exportDocx() returns a Blob you can download, upload, or diff. Comments and tracked changes survive the round trip.

Start from a blank document

Architecture

What the component owns, and what stays yours.

Multi-document sessions

Opening, activating, and closing documents.

Bring your own UI

Turn off the ribbon and drive the editor from your own toolbar.

Tools for your agent

Hand the document to the model you already run.