ALL INTELLIGENCE
Hacker News AIT2·Tools

WordCraft: Open-Source Pure Rust Reimplementation of Microsoft Word with WebAssembly and MCP Support

Original title: An open-source, clean-room reimplementation of Microsoft Word in pure Rust
48AI Score

The ArtCraft team has released WordCraft, an open-source clean-room reimplementation of Microsoft Word built entirely in pure Rust. The tool replicates core workflows including the Ribbon interface, styles, track changes, and mail merge, supporting native .docx read/write operations and browser execution via WebAssembly. Notably, it includes a JSON control channel and an MCP server to provide standardized document manipulation interfaces for AI agents.

Related Entities

Full Report

Contents2 sections

WordCraft

Writing and document design; an open-source, clean-room reimplementation of Microsoft Word, rebuilt in pure Rust.

A fast, open-source word processor with the Word workflow you already know: the ribbon, styles, tables, track changes, references and mail merge. It reads and writes .docx, runs natively on macOS, Windows, Linux and BSD, and in the browser via WebAssembly. By the ArtCraft team.

WordCraft on getartcraft.com · ArtCraft · All Crafting Apps

<br>

The Open Studio Handbook , WordCraft's built-in sample: the ribbon, live Styles gallery, rulers and the Navigation pane.

[!NOTE] ArtCraft is a community of artists from all walks of life. Painters, photographers, filmmakers, illustrators, designers, animators, hobbyists, and people who picked up a pencil last week. If you make things, you're one of us. Come say hi on Discord.

A tour · Why WordCraft · What works today · Quick start · For agents · Architecture · Roadmap · Downloads · The Crafting Apps · License and credits

A tour

Every screenshot below is WordCraft itself, rendered offscreen by its own UI test harness (cargo run -p wordcraft-ui-egui --example ui_shot).

<table> <tr> <td width="50%" valign="top"><img src="docs/images/review.png" alt="The Review tab with Track Changes on: the word forty is inserted in magenta and thirty struck through; three commented phrases are shaded and joined by dashed leader lines to comment balloons in a grey markup area to the right of the page" width="100%">

Review. Track changes, comment balloons in the margin, accept and reject, spelling and grammar as you type.

</td> <td width="50%" valign="top"><img src="docs/images/references.png" alt="The References tab with two pages side by side: a table of contents with dotted leaders and page numbers on page one, and a styled table, numbered list and hyperlink on page two" width="100%">

References. Tables of contents, footnotes, citations in APA, MLA, Chicago or IEEE, index and captions.

</td> </tr> <tr> <td width="50%" valign="top"><img src="docs/images/design.png" alt="The Design tab showing style-set previews; the document is set in a serif theme with plum headings underlined by thin rules and a pale diagonal DRAFT watermark behind the text" width="100%">

Design. Themes, style sets, paragraph spacing, watermarks, page colour and borders.

</td> <td width="50%" valign="top"><img src="docs/images/dark.png" alt="WordCraft in dark mode with the Insert tab open and formatting marks shown: pilcrows at paragraph ends and dots for spaces" width="100%">

Dark mode with formatting marks, and the Insert tab: tables, pictures, shapes, links, headers, footers, fields and symbols.

</td> </tr> <tr> <td colspan="2"><img src="docs/images/layout.png" alt="The Layout tab at 80% zoom: the first paragraph opens with a three-line drop cap E, a dark blue circle sits beside the second section with its paragraph wrapping around it and hyphenating art-ist at the line end, every line is numbered in the left margin and a thin blue border surrounds the page" width="100%">

Layout. Drop caps, text wrapping around pictures and shapes, automatic hyphenation, line numbers and page borders.

</td> </tr> <tr> <td colspan="2"><img src="docs/images/backstage.png" alt="The File tab start page with a Good morning greeting, thumbnails of the Blank document, Studio handbook, Letter, Résumé and Report templates, and a list of recent documents" width="100%">

File. Start from a template, open recent documents, edit properties, export to PDF and other formats.

</td> </tr> </table>

Why WordCraft

  • Familiar. Word's ribbon tabs, groups, shortcuts and behaviour: Enter continues a list, Tab demotes it, Ctrl/⌘+B bolds the word under the caret, the Styles gallery previews styles live, F4 repeats, F7 checks spelling, F8 extends the selection.
  • Your files. Opens and saves .docx (OOXML), and also .odt, .rtf, .html, .md, .tex (LaTeX), .txt; opens Word 97-2003 .doc; exports PDF with real, selectable text, links and bookmarks.
  • Fast. Paragraph layout is cached, so typing in a 188-page document re-lays it out in about 1.4 ms; pages render on demand.
  • Everywhere. One Rust codebase for macOS, Windows, Linux, BSD and the web. No Electron, no Tauri: native egui on the GPU.
  • Built for agents. Every action is a command with an id. The same 422 commands drive the ribbon, keyboard shortcuts, the command search, a command-line tool, a JSON control channel and an MCP server.
  • Private. Spelling, grammar and everything else work offline.
  • Open. MIT OR Apache-2.0. Clean-room: built from public specifications and observation, with every asset original or openly licensed.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)