Skip to main content
Edit, render and redline Word documents in Node and the browser, without Word, LibreOffice or a server.

What you can do

  • Edit a document with an Office.js API. WordDocument follows the Word JavaScript API (Word.Document, Paragraph, Range, Table …). Edits apply at once: there is no Word.run, load or sync.
  • Convert .docx to PDF or PNG. The layout engine is measured against Microsoft Word, page by page.
  • Redline. Make tracked changes and comments, accept or reject them, and compare two documents like Word’s Compare.
  • Show and edit documents in a page. Use one call for a full editor UI, or build your own UI on the canvas renderer.

The packages

Entry points

@reductoai/docx has one entry point for each runtime. Use the correct one: the Node entry point reads files and loads native modules, so a browser bundle must not import it.

Where to go next