Examples

Runnable apps in the docx-editor repository. Clone it, then follow the README in the example you want. Descriptions come from release v2.21.0.

An LLM reading a DOCX and leaving comments on it, live, in the editor the reader is looking at. Every roast lands as a real Word comment anchored to the exact words it is about, so saving the file carries them into Word.

@docx-editor.dev/editor-api drives a document through a batching object model. Nothing here needs a framework, and the server half needs no browser: it opens DOCX bytes, edits them and writes them back.

This example stores a custom legal citation as a Word content control. You can insert, edit, and save the citation.

This example uses the packaged <DocxEditor> component without custom composition.

This Vite and React app shows the editor composition API with custom chrome.

This app interviews a user, creates a fresh DOCX, and proposes later edits as tracked changes. It keeps examples/agent unchanged.

Convert Word documents to Markdown with individual pages, headers, footers, comments, and tracked changes. The converter runs the DOCX Editor layout engine in your Node.js process, so page boundaries come from the DOCX itself without Word, LibreOffice, a browser, or a Python service.

.docx in. .docx out.

Open a real document in the editor, then wire it into your app. It all runs client-side.