A Word/.docx viewer and editor for the web, embeddable as a single React component.
import { DocxView } from "wordinweb";
<DocxView source="/report.docx" />; // render-only viewerSet the editable flag to enable editing; the default configuration is a pure viewer.
If you discover an edge case or perf issue create an issue and include the offending Word file.
Long-document performance work focuses on incremental parsing/layout and page virtualization; the current renderer remains DOM-based.
npm install wordinweb react react-domThe package includes the <DocxView /> component, optional <DocxToolbar />, parser, layout engine, and DOM renderer.
To match Word's glyph advances exactly, load the metric-compatible substitute fonts (Carlito ≈ Calibri, Caladea ≈ Cambria) in your app — see Fonts.
@wordinweb/agent gives AI agents progressive, schema-enforced tools to create,
inspect, and edit DOCX files. Agents can control long-form text, review flows,
equations, tables, charts, shapes, and spatial layouts. The same tools work in
headless, shared browser, live collaboration, and offline sessions. See
packages/agent/README.md and the
wordinweb-documents agent skill.
Install the skill from this repository with
gh skill install theRealestAEP/wordinweb wordinweb-documents --agent codex --scope user.
@wordinweb/mcp gives the same tools to Claude Code,
Codex, Cursor, and any MCP client. It runs locally, with no account:
claude mcp add wordinweb -- npx -y @wordinweb/mcp
codex mcp add wordinweb -- npx -y @wordinweb/mcpimport { DocxView } from "wordinweb";
export function Preview() {
return <DocxView source="/report.docx" zoom={1} style={{ height: "100vh" }} />;
}source accepts a URL string, ArrayBuffer, Uint8Array, Blob, or File — so a drag-and-drop or <input type="file"> handler can pass its bytes straight through.
The editor exposes its commands through an imperative api handed to onReady. Pair it with the bundled <DocxToolbar /> for a word-processor UI, or drive the api yourself.
import { useState } from "react";
import { DocxView, DocxToolbar, type DocxViewApi } from "wordinweb";
export function Editor() {
const [api, setApi] = useState<DocxViewApi | null>(null);
const download = (bytes: Uint8Array) => {
const blob = new Blob([bytes], {
type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "edited.docx";
a.click();
URL.revokeObjectURL(url);
};
return (
<div>
{api && <DocxToolbar api={api} mode="advanced" onSave={download} />}
<DocxView
source="/report.docx"
editable
commentAuthor="Ada Lovelace"
onReady={setApi}
style={{ height: "80vh" }}
/>
</div>
);
}| Prop | Type | Default | What it does |
|---|---|---|---|
source |
ArrayBuffer | Uint8Array | Blob | string |
— | The document: raw bytes, a File/Blob, or a URL to fetch. |
zoom |
number |
1 |
Maximum zoom factor (1 = 100%). |
fitWidth |
boolean |
true |
Scale wide pages down to fit the viewer without horizontal scrolling. Never enlarges beyond zoom. |
narrowWidth |
number |
820 |
Container width in pixels where comments switch to the compact treatment. |
editable |
boolean |
false |
Enable editing (selection formatting, typing, save-back). Off = pure viewer. |
showComments |
boolean |
true |
Render review comments (range highlights + margin balloons). |
revisions |
"final" | "markup" |
"final" |
Tracked-changes display: clean final text, or insertions underlined / deletions struck. |
commentAuthor |
string |
"You" |
Name stamped on comments, replies, and suggestions. |
onLoad |
(info: { pageCount; document }) => void |
— | Fires once the document is parsed and laid out. |
onPageCountChange |
(pageCount: number) => void |
— | Fires when editing changes the rendered page count. |
onReady |
(api: DocxViewApi) => void |
— | Fires when editing is wired up; the api is valid only while mounted. Only called when editable. |
onMissingFonts |
(missing: MissingFont[]) => void |
— | Fires after render with any requested faces the browser can't render (silently substituted; layout may differ from Word). Empty array = all good. |
onError |
(error: Error) => void |
— | Fires if parsing or rendering throws. |
className |
string |
— | Class on the scroll container. |
style |
React.CSSProperties |
— | Inline styles on the scroll container (set height here). |
The object passed to onReady. Every command operates on the current selection or caret and re-lays out in place. Grouped by area:
Character & paragraph formatting
applyFormat(patch)— bold, italic, underline, strike,fontSizePt,fontFamily,color,highlight,verticalAlign(super/subscript), orclear, over any selection (including partial runs).getSelectionFormat()— effective formatting of the selection (drives toolbar state).clearFormatting(),changeCase("upper" | "lower" | "title").setAlignment("left" | "center" | "right" | "justify").setParagraphStyle(styleId | null),listParagraphStyles(),getParagraphStyleId().toggleList("bullet" | "number"),getListType().adjustIndent(1 | -1),setParagraphSpacing({ lineMultiple?, exactLinePt?, beforePt?, afterPt? }).setLink(url | null),getLinkAt().
Page layout
setPageLayout(patch, scope?)— margins, page size, orientation, columns, page borders.scope="document"(all sections) or"section"(the caret's).insertBreak("page" | "column" | "sectionNextPage" | "sectionContinuous").insertBlankPage()— inserts a complete blank page at the caret.insertCoverPage({ title, subtitle?, author? })— prepends an editable, styled cover page.setLineNumbering(patch, scope?),getLineNumbering().openHeaderFooter("header" | "footer"),closeHeaderFooter()— create or directly enter the repeating page layer; shapes and lines inserted there repeat on the pages using that header/footer. Escape closes it.
Tables
insertTable(rows, cols).tableOp(op)— insert/delete row/column, merge/split cells, cell vertical align, cell shading, delete table.
Images
insertImage(file)— inserts a raster image or editable SVG icon inline at the caret, clamped to the column width (TIFF/WMF/EMF are decoded to something the browser can paint). Returns why it didn't happen (unsupported-format,no-relay,upload-failed,no-caret,error) rather than failing silently; in a collaborative document the formats narrow to what the wire carries, whichimageAccept()reports for your file picker.insertScreenshot()— opens the browser screen/window/tab picker and inserts the captured frame as an editable PNG picture.insertModel3D(file, poster?)— packages a GLB as a native Office 3D model; editable documents show a drag-to-rotate viewport and save the orientation back to Word.insertOnlineVideo(url)— inserts Word online-video metadata with a safe browser poster; double-click opens the validated HTTP(S) URL.insertEmbeddedObject(file, filename?)— embeds any file as a native OLE Package; double-click safely downloads the original file in the browser.
Comments, footnotes & Insert content
addComment(text)— comment on the selection (falseif nothing is selected).addFootnote(text)— footnote at the caret.insertPageNumber("page" | "pageOfTotal")— dynamicPAGE/Page X of Yfield.insertField(instruction, cachedResult?),insertDateTime("date" | "time", picture?)— live Word fields.addBookmark(name),listBookmarks(),insertCrossReference(name, "text" | "page")— named bookmark targets and liveREF/PAGEREFfields.insertEquation(linear),insertSymbol(symbol)— native editable OMML equations and arbitrary Unicode symbols.insertShape(preset, text?)— floating editable DrawingML lines, rectangles, rounded rectangles, ellipses, diamonds, and text boxes. Selected objects expose exact page position, size, outline, wrapping, and layer controls.insertWordArt(text, preset?)— editable DrawingML WordArt with plain, arch, wave, and chevron presets.insertChart(data),updateSelectedChart(data)— native editable ChartML with its embedded workbook.insertSmartArt(data),updateSelectedSmartArt(data)— native editable SmartArt data, layout, style, colors, and cached drawing parts.setDrawingTool({ kind: "pen", color, width } | { kind: "eraser", size } | { kind: "lasso" } | null),getDrawingTool()— draw, erase, or lasso-select movable DrawingML ink.arrangeObject(action)— align the selected image, shape, or ink group to the page; rotate it 90°; or bring it to the front/send it to the back. Arrow keys nudge selected floating objects by 1px (Shift= 10px).setDropCap("drop" | "margin" | null, lines?)— apply, change, or remove a native Word drop cap on the caret paragraph.
Suggesting mode (tracked changes)
setSuggesting(on, author?)— when on, edits record as OOXMLw:ins/w:delinstead of mutating text directly, and the view switches to markup.isSuggesting(),acceptRevisionAtCaret(),rejectRevisionAtCaret().revisionCount(),acceptAllRevisions(),rejectAllRevisions().
Find & replace
find(query, { matchCase? })→ match count (selects the first).findStep(1 | -1)→ 1-based index of the newly selected match.replaceCurrent(replacement)→ remaining matches.replaceAll(query, replacement)→ count replaced.
History, save & print
undo(),redo(),canUndo(),canRedo().save()→ edited.docxbytes (Uint8Array). Everything the model doesn't touch round-trips byte-for-byte.print()— browser print dialog / save-as-PDF of the rendered pages.pageCount()anddocument(the parsedDocxDocument).
A ready-made formatting toolbar for an editable DocxView. Use mode="simple" for the basic Home editing strip or mode="advanced" for the full Home / Insert / Draw / Layout ribbon supported by the installed version.
The searchable Help guide opens from the toolbar, F1, or Cmd/Ctrl+/. It documents the current tools, platform-specific shortcuts, object controls, and recipes for pleading-paper rules, column dividers, resume lines, and repeating page art; set features={{ help: false }} to hide it.
Layout includes Word-style paper presets plus a custom width/height dialog; both document and current-section scope emit native page-size properties.
Editable text also has a right-click menu for clipboard, formatting, links,
comments, lists, and alignment. Word-style shortcuts include heading levels,
page and column breaks, links, comments, lists, and paragraph alignment in addition to the
standard formatting and history commands.
| Prop | Type | What it does |
|---|---|---|
api |
DocxViewApi | null |
The api from onReady. |
onSave |
(bytes: Uint8Array) => void |
Adds a Download button; receives api.save() bytes. |
mode |
"simple" | "advanced" |
Editing surface. Defaults to "advanced"; simple omits the Insert, Draw, and Layout ribbons. |
features |
Partial<Record<ToolbarFeature, boolean>> |
Per-group toggles; every group defaults on. Set one false to hide it (e.g. { table: false, image: false }). |
className |
string |
Class on the toolbar root — handy as a scope for CSS-variable overrides. |
style |
React.CSSProperties |
Inline overrides merged onto the toolbar root. |
Every color the chrome paints — the toolbar, comment cards, selection, caret, page shadow — routes through a CSS custom property with the stock value as its fallback. The default look is unchanged; set any variable on an ancestor element (custom properties inherit) to retheme. Wrap the toolbar and viewer in one element and set the variables there, or set them on :root to theme globally.
| Variable | Default | Controls |
|---|---|---|
--dxw-toolbar-bg |
#f9fbfd |
Toolbar bar background |
--dxw-toolbar-fg |
#3c4043 |
Toolbar text & icons (icons use currentColor) |
--dxw-toolbar-border |
#dadce0 |
Toolbar borders & separators |
--dxw-toolbar-muted |
#5f6368 |
Secondary/label text |
--dxw-toolbar-z-index |
100 |
Toolbar and open-menu stacking level |
--dxw-accent |
#1a73e8 |
Primary accent (active tab, pills, focus rings) |
--dxw-accent-fg |
#fff |
Text/icon on an accent fill |
--dxw-btn-active-bg |
#dfe7f5 |
Toggled button background |
--dxw-btn-hover-bg |
#f1f3f4 |
Button hover background |
--dxw-tab-active-bg |
#e8f0fe |
Active ribbon-tab background |
--dxw-popover-bg |
#fff |
Dropdown / popover surface |
--dxw-popover-shadow |
0 4px 16px rgba(0,0,0,.15) |
Popover shadow |
--dxw-layout-menu-width |
304px |
Layout option-menu width |
--dxw-layout-menu-max-height |
480px |
Layout option-menu scroll limit |
--dxw-layout-preview-bg |
#fff |
Paper fill in Layout option previews |
--dxw-select-height |
26px |
Custom select trigger height |
--dxw-select-border |
transparent |
Custom select trigger border color |
--dxw-select-radius |
4px |
Custom select trigger corner radius |
--dxw-select-bg |
transparent |
Custom select trigger fill |
--dxw-select-fg |
toolbar foreground | Custom select trigger text |
--dxw-select-font |
13px system-ui |
Custom select trigger font |
--dxw-select-padding |
0 6px |
Custom select trigger padding |
--dxw-select-menu-bg |
popover background | Custom select menu fill |
--dxw-select-menu-border |
toolbar border | Custom select menu border color |
--dxw-select-menu-radius |
8px |
Custom select menu corner radius |
--dxw-select-menu-shadow |
popover shadow | Custom select menu shadow |
--dxw-select-menu-max-height |
320px |
Custom select menu scroll limit |
--dxw-color-menu-width |
236px |
Text and drawing color palette width |
--dxw-dialog-backdrop |
rgba(32,33,36,.38) |
Editor dialog scrim |
--dxw-dialog-z-index |
1000 |
Editor dialog stacking level |
--dxw-dialog-width |
420px |
Editor dialog width |
--dxw-dialog-radius |
10px |
Editor dialog corner radius |
--dxw-dialog-field-bg |
popover background | Editor dialog field fill |
--dxw-canvas-bg |
#e8eaed |
Scroll area behind the pages |
--dxw-page-bg |
#ffffff |
Page paper |
--dxw-page-shadow |
0 1px 3px …, 0 4px 14px … |
Page drop shadow |
--dxw-caret |
#1a1a1a |
Text caret |
--dxw-selection |
rgba(26,115,232,.28) |
Text-selection highlight |
--dxw-comment-hl |
rgba(255,200,90,.38) |
Commented-range highlight |
--dxw-comment-hl-active |
rgba(255,170,0,.55) |
Active commented-range highlight |
--dxw-comment-bg |
#fff |
Comment card surface |
--dxw-comment-fg |
#3c4043 |
Comment card text |
--dxw-comment-border |
#e0e0e0 |
Comment card border |
<div
className="dxw-dark"
style={{
["--dxw-toolbar-bg" as string]: "#1f2937",
["--dxw-toolbar-fg" as string]: "#e5e7eb",
["--dxw-toolbar-border" as string]: "#374151",
["--dxw-toolbar-muted" as string]: "#9ca3af",
["--dxw-accent" as string]: "#60a5fa",
["--dxw-btn-active-bg" as string]: "#374151",
["--dxw-btn-hover-bg" as string]: "#2b3644",
["--dxw-tab-active-bg" as string]: "#334155",
["--dxw-popover-bg" as string]: "#1f2937",
["--dxw-canvas-bg" as string]: "#111827",
}}
>
{api && <DocxToolbar api={api} onSave={download} />}
<DocxView source="/report.docx" editable onReady={setApi} style={{ height: "80vh" }} />
</div>Or in a stylesheet:
.dxw-dark { --dxw-toolbar-bg: #1f2937; --dxw-toolbar-fg: #e5e7eb; /* … */ }All visible toolbar choices use WordInWeb-rendered controls rather than the
browser's native select, prompt, or color-picker UI. ToolbarMenuSelect is
exported for host-app controls that should match the toolbar:
<ToolbarMenuSelect
value={zoom}
ariaLabel="Document zoom"
options={[
{ value: "0.75", label: "75%" },
{ value: "1", label: "100%" },
{ value: "1.25", label: "125%" },
]}
onChange={setZoom}
/>For selector-level styling, the stable hooks are
.dxw-menu-select-trigger, .dxw-menu-select-menu,
.dxw-menu-select-option, .dxw-color-menu, .dxw-color-swatch,
.dxw-input-dialog, .dxw-input-dialog-field, and the dialog action button
classes. Prefer the variables above for theme changes.
Layout controls also expose stable .dxw-layout-ribbon, .dxw-layout-menu-trigger,
.dxw-layout-menu, .dxw-layout-menu-item, and .dxw-layout-preview classes.
Their data-dxw-layout-menu, data-dxw-layout-option, and
data-dxw-layout-preview attributes identify each menu, action, and diagram
when a host needs a narrowly scoped style override.
WordInWeb never converts the document to flowing HTML. It parses the OOXML into a typed model, runs a layout engine that breaks lines with real canvas metrics and paginates like Word, and renders each primitive as one absolutely-positioned element, so the browser does zero reflow. Editing mutates the retained XML tree and re-serializes only the parts it models, leaving everything else byte-for-byte intact.
A Strict Open XML Document (ISO/IEC 29500 Strict, Word's "Strict Open XML Document") is read as Transitional: its namespaces, relationship types, unit-carrying measures ("72pt", "2.54cm", "63%") and renamed values are rewritten once, as the package is read (packages/core/src/strict.ts), so the viewer, the PDF renderer and the compare see the same document as its Transitional twin. A saved or compared Strict document is written as Transitional.
A Word 97-2003 document (.doc, the binary format) is read too: DocxDocument.load, renderDocxToPdf and the docx-pdf CLI convert it to a .docx in memory, and docx-compare (compareFiles) converts it to a working .docx in its temp directory, so a .doc can be compared with a .docx. The file's bytes decide, not its name. The converter (packages/core/src/doc/, exported as docToDocx) reads the text, formatting, styles, lists, sections, headers and footers, notes, tables, fields and form fields, bookmarks, comments and tracked changes, pictures, shapes and text boxes from the binary structures ([MS-DOC], [MS-ODRAW]). A Word 6.0 or Word 95 .doc is read the same way: its 8-bit text in its fonts' character sets, autonumbered lists, comments, tracked changes, pictures, OLE objects' pictures and drawing objects.
The oldest Word formats, which are not OLE compound files, are read the same way (packages/core/src/oldword/):
| Format | What is read |
|---|---|
| Word for the Macintosh 4.0 and 5.x | Text in the Mac OS Roman code page (fast-saved files too), character and paragraph formatting, styles, sections and page setup, tables, headers and footers, footnotes, fields, PICT pictures |
| Word for the Macintosh 1.x and 3.0 | Text, character and paragraph formatting, styles, sections, headers and footers, footnotes |
| Word for Windows 1.x and 2.0 | Text in the Windows ANSI code page (fast-saved files too), character and paragraph formatting, styles, sections and page setup, tables, headers and footers, footnotes, fields, metafile and bitmap pictures |
| Word for MS-DOS 1 to 6 | Text in its OEM code page (437 or 850), character and paragraph formatting, sections and page setup, running heads, footnotes (styles live in a separate .STY file the document only names) |
| Windows Write 1.0 to 3.1 | Text in the Windows ANSI code page, character and paragraph formatting, page setup, running heads, metafile and bitmap pictures |
Other formats are refused with unsupported_format and the format's name: the pre-release builds of Word for Windows 1.0, WordPerfect, RTF, PDF, HTML, OpenDocument, Excel and PowerPoint files, and password-protected documents.
renderDocxToPdf throws a PdfRenderError and compareFiles throws a CompareError. Each error has a code for the caller to act on, and a message that names the cause:
| Code | Meaning | docx-pdf exit code |
|---|---|---|
not_docx |
The input is not a .docx: not a zip, or a zip with no Word document. | 4 |
unsupported_format |
The input is another format, such as RTF, PDF, OpenDocument, or a password-protected document. | 6 |
damaged |
The input is a .docx or .doc that cannot be read: a corrupt zip entry, XML that is not well formed. | 5 |
unsupported_content |
The document holds content that Word prints and that is not read here, such as a w:altChunk (an HTML or RTF part that Word imports when it opens the file) or a w:subDoc (a subdocument that Word reads from another file). The document is refused rather than printed without that content. |
7 |
unsupported_script |
The text is in a script the PDF renderer cannot shape, such as Mongolian. | 3 |
too_large |
The document is over the size limits, which the message names. For renderDocxToPdf and DocxDocument.load (DOCUMENT_LIMITS in packages/core/src/zip.ts): an XML part over 64 MB, or more than 512 MB of parts in all; the XML parts other than the document over 8 MB, 150,000 elements, or 10,000 paragraphs and table cells together; the document over 1,000,000 elements, or 250,000 paragraphs and table cells. For renderDocxToPdf also one body block (a paragraph or table) over 8 MB, 1 MB of text, 250,000 elements, or 20,000 table rows. Sizes come from the zip's directory, and counts from the XML's bytes before it is parsed or as the body streams, so each check comes before the memory it guards is allocated. For compareFiles: the parts outside the body are more than the compare holds in memory (3 MB), or a body block is over 64 MB. |
8 |
failed |
Anything else. | 1 |
compareFiles also has codes for its files: missing, disk_full, result_folder_missing, result_is_input and output_collision. The docx-compare CLI exits with 1 for every failure, and its message starts with the code. DocxDocument.load throws an Error whose message starts with unsupported content: for the content that unsupported_content refuses, and too large: for a document over the size limits.
A printed PDF names the authors of its comments and tracked changes by default. To print it with no author's name, set authors: false:
| Where | Option |
|---|---|
renderDocxToPdf |
{ comments: true, markup: true, authors: false } |
compareFiles |
pdf: { path, comments: true, authors: false } |
docx-pdf CLI |
--hide-authors |
docx-compare CLI |
--hide-authors (with --pdf FILE) |
With authors hidden, each comment's and change's balloon keeps what changed and the comment text, and has no name line. Every author's tracked changes are red (moves stay green), and the margin change bars stay black.
markup: true (docx-pdf --markup) prints the tracked changes as Word's "All Markup" with "Show Revisions in Balloons": insertions stay on the line, underlined in the author's color; deleted text leaves the line and prints in a balloon beside the page ("Deleted: ..."); format changes, moves, deleted paragraph marks and deleted table rows get balloons too. Each balloon names its author, in bold, with no date. The docx-compare PDF is a blackline instead: inserted text blue and double underlined, deleted text red and struck through, a change bar beside each changed paragraph, and the comments in balloons with --pdf-comments.
Real-time collaboration ships as a separate entry (wordinweb/collab). It
supports encrypted and plaintext sessions, so the host application chooses
the security and persistence model. The
anon-share example documents the
zero-custody encrypted deployment, architecture, and operations.
The Node host ships as the separate @wordinweb/server package. A viewer or
browser-only collaboration application has no dependency path to the server
package, so its Node runtime and ws dependency stay out of browser bundles.
A document is encrypted or not, decided when it is created, and it cannot be joined in the wrong mode.
| Encrypted | Plaintext | |
|---|---|---|
| Where edits are applied | Every client, over an ordered log of sealed envelopes | On the server |
| What the server holds | Ciphertext it has no key for | The document |
| Key management | The doc key rides the link fragment; a share code can be mixed in | None |
| Good for | Anything crossing a network you do not own | An internal tool on a trusted network |
Both are supported and neither is deprecated. Plaintext is simpler — no keys, no fragments, no share codes — and is the right choice when the server is yours and the network is trusted.
A client cannot enforce the mode. The two are created through the same /docs route, so a deployment whose whole claim is that it never holds a readable document must say so on the server: set WW_ENCRYPTED_ONLY=1, or pass encryptedOnly: true to handleSeedRequest. Without it, posting plain bytes to that route creates a plaintext room no matter what the app UI offers. It is off by default — turning it on is a deployment's choice.
import { CollabEditor, IndexedDbBundleStore } from "wordinweb/collab";
export function Room({ docId, clientId, docKey, shareCode }) {
return (
<CollabEditor
url="wss://collab.example.com"
docId={docId}
clientId={clientId}
docKey={docKey} // from the link's #k= fragment; presence selects E2EE
shareCode={shareCode} // optional passphrase, mixed into key derivation
httpBase="https://collab.example.com" // enables images
store={new IndexedDbBundleStore()} // resume across reloads
/>
);
}useCollab(opts) returns the same CollabSession if you want to build the UI
yourself. Render the editor read-only whenever session.writesBlocked is true:
the server refuses writes from a locked, demoted, or viewer-role client, and an
editable surface over those refusals applies each keystroke locally and then
discards it.
Text is measured on a canvas before layout, so line breaks depend on the real font metrics. For Word parity, register the bundled OFL substitutes in your app entry:
import "@fontsource/carlito/400.css"; // Calibri metrics
import "@fontsource/carlito/400-italic.css";
import "@fontsource/carlito/700.css";
import "@fontsource/carlito/700-italic.css";
import "@fontsource/caladea/400.css"; // Cambria metrics
import "@fontsource/caladea/700.css";For your own application, source your own fonts.
@font-face {
font-family: "Calibri";
src: local("Calibri"), url("/fonts/Calibri.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}Add a separate @font-face rule for every weight and style you use.
When the browser can't render a requested face, onMissingFonts reports it so you can warn the user that the on-screen layout may drift from Word.
CollabEditor accepts the same onMissingFonts callback and forwards it to the live view.
npm install
npm run build # build all published packages
npm run typecheck # type-check packages and the example
npm test # build and run all package and example unit tests
npm run demo # build and open the collaboration demoCreate an issue for now. For a large change, fork the repository, make the edits in your fork, and reach out to me.
Fidelity is measured against desktop Microsoft Word. Word exports each fixture to PDF, WordInWeb renders the same file in the browser, and both are rasterized and compared page-by-page. The test corpus and instructions are in wordinweb-parity.
MIT. See LICENSE.