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).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
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
What to read next
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.