What problem does it solve?
Enable reliable, programmatic creation, editing, and validation of Microsoft Word .docx files so users can produce polished documents, manage tracked changes and comments, and fix XML-level issues without manual Office UI work.
Core Features & Use Cases
- Create formatted DOCX: Guidance and templates for generating Word documents with tables of contents, headers/footers, page size, numbering, lists, tables, and images using docx-js (npm docx) patterns.
- Unpack → Edit → Pack workflow: Tools and scripts to unpack DOCX to XML, merge runs, simplify or apply tracked changes, add comments, validate against OOXML XSDs, and repack with auto-repair.
- Tracked changes & comments: Consistent patterns for insertions, deletions, comment markers, and author handling (defaults to "Claude" unless specified).
- Conversions & tooling: Helpers for converting legacy .doc to .docx and DOCX → PDF/images via LibreOffice; includes a LibreOffice shim for sandboxed environments.
- Validation & safety: XSD-based validators and relationship/content-type checks to detect broken references, duplicate IDs, and other corruption that would make documents appear corrupt.
Quick Start
Unpack report.docx, accept or apply tracked changes and comments as requested, perform the XML edits or image replacements, and repack to produce report-final.docx.