Docxtor
Docxtor is a DOCX editing library inspired by Roslyn's syntax trees. It separates a semantic layer (text, tables, lists) from the presentation layer (raw OOXML); AI agents edit the document via patches that are validated and mapped onto the underlying OOXML objects, usually yielding a byte-identical document apart from the change made. A self-contained skill for AI agents is also packaged.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Docxtor
Docxtor is a DOCX editing library inspired by Roslyn's syntax trees. It separates a semantic layer (text, tables, lists) from the presentation layer (raw OOXML); AI agents edit the document via patches that are validated and mapped onto the underlying OOXML objects, usually yielding a byte-identical document apart from the change made. A self-contained skill for AI agents is also packaged.
Posted by @bigguycodes · Original source ↗
Story title · @bigguycodes · · Source ↗
Show HN: A DOCX editing library inspired by Rosyln's syntax trees
Submitted URL · @bigguycodes · · Source ↗
https://github.com/Eazydraft/docxtor
Source text · @bigguycodes · · Source ↗
A bit on the design: Docxtor uses a representation of the document where the semantic layer (text, tables, lists, etc) is different from the presentation layer (the raw OOXML)
Source text · @bigguycodes · · Source ↗
The semantic layer is what the agent sees and edits via "patches". These are then validated against the document and mapped to the underlying presentation layer objects.
Source text · @bigguycodes · · Source ↗
Since the OOXML objects are a 1:1 replica of the original document you (usually) get a byte-identical document back (except the change that was made).
Source text · @bigguycodes · · Source ↗
I've also packaged a self-contained skill for AI agents.