revise

npm

1 min read Original article ↗

revise

A word processor for React apps: full DOCX support, tracked changes, comments, collaboration, and tools for AI agents.

Getting started

Get started with the quickstart guide.

import ReviseEditor from "revise";
import "revise/style.css";

export function DocumentPane({ file }: { file: File }) {
  return (
    <ReviseEditor
      initialDocuments={[{ id: "contract-1", title: "Contract", source: file }]}
      onChange={(documentId, document) => {
        console.log(documentId, "now has", document.children.length, "blocks");
      }}
    />
  );
}

The editor sends Revise one anonymous ping per page load, with its version and no user data or document content. Pass telemetry={false} to turn it off.

Refer to the SDK Docs for the full editor API, including agentic tool calling.

Use Revise Headless

For server-side work (conversion, seeding collaboration rooms, headless edits), import from revise/server in Node. It is the library of @reviseio/cli (MIT), which also has the revise command line tool. Install it at the same version:

import { ReviseDocument } from "revise/server";

const doc = await ReviseDocument.open("contract.docx");

License

The Revise editor is closed-source software, free for evaluation, personal projects, and education. Production use by businesses, nonprofits, and government requires a commercial license: see LICENSE and revise.io/developer/docs/editor-sdk/license, or email sdk@revise.io.