Build a powerful JavaScript document viewer and editor
Learn how to set up a JavaScript-based document viewer and editor using Nutrient Document Authoring SDK.
Nutrient Document Authoring is an easy-to-use WYSIWYG editor, similar to Google Docs, that lets you open, edit, and export complex documents, ensuring perfect fidelity across browsers and in PDFs. Optional AI editing tools let any LLM propose edits — apply them directly, or route them through Review mode as tracked changes.
INSTANT DEMO
Document Authoring shares one editor core across the browser and a headless Node.js runtime. AI editing is an optional layer on top — any LLM proposes edits, and a human approves them in Review mode. Try the in-browser editor below.
Build a trusted user experience with a page-based layout for rich text editing, reminiscent of the interfaces of Google Docs and Microsoft Word.
Streamline document workflows by seamlessly opening DOCX files and exporting edited documents to DOCX or PDF with industry-leading fidelity.
Ship one-shot AI workflows like proofreading and translation, or let users ask for edits in plain language. Both run in the same editor.
Bring any LLM through Vercel AI SDK, LangChain, or a simple JSON export. The editor stays in control of every edit, so AI suggestions never break the document.
Run Document Authoring on a server, not just in the browser. Convert documents or fill in templates automatically, with nobody watching a screen.
INDUSTRY EXAMPLES
Here are a few ways legal, healthcare, and finance teams put AI document editing to work.
Redline contracts with AI: Tighten clauses, soften language, or pull in standard terms. Every change is tracked, so a lawyer still gets the final read.
Draft discharge summaries, referral letters, or visit notes from structured data. Tracked changes let a physician sign off before anything hits the chart.
Fill RFPs from a knowledge base, pull in approved boilerplate, or polish proposal language with AI. Compliance reviews tracked changes and locks the rest before export.
COMPARE
DOCX authoring or PDF collaboration? Compare Nutrient Document Authoring SDK and Web Viewer SDK side by side, and pick the fastest path to production.
| Document Authoring SDK | Web Viewer SDK |
|---|---|
| Create and edit documents from scratch, and modify existing DOCX
files, akin to Google Docs. | View, annotate, sign, and edit PDF and image files; create and
fill out forms in web apps. |
| Move paragraphs between pages, and format text, styling, and
layouts. | Edit and reposition text on individual pages. |
| Features browser-based document editing that maintains fidelity
when exported to PDF. | Ensures 100 percent preservation of the original layout and
design of PDFs. |
| Open, view, and edit DOCX files. | Open, view, and annotate Office files, including DOCX, XLSX, and
PPTX (Office Files component needed). |
| AI editing tools to draft, edit, and proofread documents — every
change reviewable as a tracked change. | Nutrient AI Assistant to chat with PDFs — Q&A, summarization, and
search. |
| Used in:
| Used in:
|
Nutrient SDKs and Cloud APIs add full document lifecycle support to any platform, tech stack, or infrastructure in minutes. The same technology meets Fortune 500 requirements while helping startups ship fast.
Clean documentation, drop-in code, and MCP hooks for both hands-on developers and AI agents.
Web, mobile, desktop, server, or Nutrient Cloud — with no lock-in.
SOC 2 Type 2 and WCAG 2.2-compliant workflows with PDF/UA-accessible documents.
Bring any LLM and keep approval in your hands. AI proposes edits; your team reviews and applies them through the same tracked-change flow used for human edits.
PROVEN AT SCALE
Delivers its 120‑page monthly magazine “51” on iOS, Android, and Web with Nutrient viewers and DRM, giving millions of fans offline access and seamless reading.
Governance portal trusted by 2,000+ boards in 30 countries embeds Nutrient Web SDK to enable in‑portal annotations and cross‑device continuity, achieving 80 percent user engagement.
Rolled out nationwide PAdES-compliant signatures with the Nutrient PDF SDK, letting every Austrian citizen sign official documents securely in seconds.
FREE TRIAL
Start building with Document Authoring in minutes — no payment information required.
Nutrient Document Authoring SDK is a TypeScript-based, WYSIWYG (what-you-see-is-what-you-get) editor designed to integrate seamlessly into web applications. It enables users to create, edit, and export documents directly within the browser, offering a familiar interface akin to traditional word processors like Google Docs and Microsoft Word. It can also run on a server with no browser involved for automated editing and export. The SDK ensures high-fidelity rendering, meaning documents appear consistent across different browsers and in exported formats such as PDF and DOCX.
When selecting a document authoring solution, consider the following factors:
Several solutions cater to document authoring requirements:
Integrating Nutrient Document Authoring SDK into your application offers several advantages:
While other document authoring tools may offer basic functionalities, Nutrient’s SDK stands out with its comprehensive feature set, high-fidelity rendering, and ease of integration. Its focus on providing a familiar user experience, combined with advanced capabilities like DOCX support and offline-first operation, makes it a robust choice for organizations aiming to enhance their document workflows.
AI editing is part of the same Document Authoring SDK. Any LLM you connect can read the document, propose edits, and surface them for review. The editor controls every change — the model suggests, your code decides what applies.
Any LLM you can call from your server. The SDK ships adapters for Vercel AI SDK and LangChain, plus a JSON tool export for non-TypeScript backends. You choose the model and hold the API keys.
Yes. In Review mode, every AI edit lands as a tracked change a reviewer accepts or rejects. The model can also attach a short comment explaining each edit.
Incorporating Nutrient Document Authoring SDK into your application is a strategic move to boost functionality and efficiency. By carefully evaluating your needs and exploring available options, you can select a solution that not only meets your current requirements but also supports your organization’s future growth and evolution.
Nutrient Document Authoring SDK is a WYSIWYG DOCX editor that developers can integrate into their web application to create, edit, and generate documents from Word templates. It offers rich text editing features, as an SDK comparable to other word processors like Google Docs and Microsoft Word.
A DOCX editor SDK is a software development kit that software developers can embed into their web applications to enable their users to be able to create, view, and edit Word documents. It’s often used to enable functionality similar to other word processors, like Google Docs and Microsoft Word, but inside web applications.
Nutrient’s DOCX editor SDK offers a next-generation WYSIWYG Word document editor that doesn’t have finicky reloading, page layout inconsistencies, or formatting changes. It delivers a buttery smooth user experience with a consistent page-based layout for rich text editing — just like Google Docs — and is fully customizable to seamlessly integrate into low-code platforms or any web application.
The SDK delivers a robust set of features, including:
Yes. It’s tailor-made for developers who want to embed powerful Word template document generation, rich text editing, and editing of DOCX files within their applications. The SDK is customizable, simple to integrate, and built to provide a smooth user experience that feels familiar to end users. It’s written in TypeScript and was built by developers for developers.
Click on the free trial and follow the steps in our Document Authoring getting started guide. If you’d rather play around with capabilities before integrating it into a project, check out the demo.
Yes. Alongside the in-browser editor, Document Authoring can also run on a server, with no browser involved — useful for converting or filling in documents automatically, with nobody watching a screen. It works the same way as the in-browser editor, just without the visual interface.
Yes. AI editing ships with the Document Authoring SDK and gives any LLM structured read/write access to documents in your editor — with every change reviewable as a tracked change in Review mode.
Any LLM you can call from your server. The SDK ships adapters for Vercel AI SDK and LangChain, plus a JSON tool export for non-TypeScript backends. You choose the model and hold the API keys.
Yes. In Review mode, every AI edit lands as a tracked change a reviewer accepts or rejects. The model can also attach a short comment explaining each edit.
Nutrient AI Assistant is a turnkey chat assistant for PDFs — Q&A, summarization, and search. Document Authoring SDK’s AI editing is for building your own AI editor experience: your UI, your model, and your prompts, with the editor controlling every change.
Yes. The DOCX editor SDK buyer’s guide walks through architecture choices, evaluation criteria, red flags, and POC benchmarks to help you choose the right solution for your use case.
Yes. The editor attaches to a DOM node via a ref and
works with standard React patterns. See the React DOCX editor page for a live demo and integration details.