Introduction
A word processor component for React applications.
The Revise Editor SDK (revise) is a React word processor component with DOCX fidelity, tracked changes, comments, Yjs collaboration, and JSON-schema agent tools. Your application owns authentication, storage, sync transport, and model calls.
npm i revisepnpm add reviseyarn add revise yjs y-protocolsFor coding agents (Claude Code, Codex, Cursor), pass the SDK skill:
Read https://revise.io/skills/sdk.md and follow it.Capabilities#
- Document formats: Import
.docx,.odt,.rtf, Markdown, plain text, and HTML. Export.docx(with tracked changes and comments), PDF, HTML, Markdown, and plain text. - Paginated canvas: Custom
<canvas>layout engine matching Word page geometry. Use the built-in ribbon or render your own toolbar through the imperative handle. - Collaboration: Each document is backed by a Yjs CRDT. Attach any Yjs provider for live sync, carets, and presence.
- Agent tools: JSON-schema tools for reading, searching, commenting, and editing documents (producing tracked changes by default).
- Node runtime:
revise/serverruns the same converters, Yjs document model, and agent tools headlessly in Node.
Boundary and licensing#
Your application provides accounts, persistence, any collaboration server, and any AI model. Document content stays in the browser unless you connect a collaboration provider or delegated agent backend. PDF export WebAssembly and PDF import codecs are bundled in revise; optional static assets (fallback PDF fonts, KaTeX math, Tree-sitter) load from https://revise.io by default (self-host via @reviseio/assets + setAssetBaseUrl(), or disable with setAssetBaseUrl(false)), and the editor sends one anonymous version ping per page load (disable with telemetry={false}).
Free for evaluation, personal noncommercial projects, and accredited education. Production use by organizations requires a commercial license.
Examples#
Live demos (source in reviseio/examples, including a multiplayer server and Node redline script):
- DOCX round trip: Open, edit, and export
.docxor PDF. - Custom toolbar: Headless chrome (
toolbarMode="none") with custom controls, colors, and fonts. - AI redline: Agent-generated tracked changes using an Anthropic API key.
- Review portal:
editor,suggester, andviewerroles with comments.
Next steps#
Install the package, render a document, and export DOCX.
Component boundary, document sessions, fragments, and modes.
Connect an LLM to the document tool catalog.
Real-time editing over your own Yjs transport.
Deterministic template filling, table edits, redlines, and conversion.
Zero-egress setup, printing, accessibility, scaling, and non-React hosts.