Live data from Hacker News

Show HN: Open-source .docx editor library for building document apps

github.com

1–10 of 21 posts

Show HN: Open-source .docx editor library for building document apps

#1
We are working on an open-source .docx editor library for apps that need to edit Word documents in the browser. We just shipped 1.0.

A lot of existing approaches convert .docx into HTML and lose document semantics along the way. Our editor parses OOXML directly and uses its own rendering+layout engine to produce paged documents with html/css. Edits round-trip back to .docx, so you’re always editing the document, not its representation.

The core rendering engine is framework agnostic, with React and Vue ui adapters on top.

It’s Apache 2.0. Happy to answer questions.

Show HN: Open-source .docx editor library for building document apps
github.com

Re: Show HN: Open-source .docx editor library for building document apps

#3
Holy shit, this is exactly what I needed for a major client. The track changes specifically, and being able to do it from Typescript. You have no idea how happy you just made me.

Edit: Did you just make this repo public? Last week I was scouring the internet for something like this and couldn't find it.

Re: Show HN: Open-source .docx editor library for building document apps

#8
post #2

I’ve built something similar but for PDFs. Know the pain too well. Best wishes!

Interesting! Would love to check that out as well, have you released it?

It was an internal enterprise tool that will never be public.

Re: Show HN: Open-source .docx editor library for building document apps

#9
post #4

This looks really impressive. How hard was it to implement this in typescript?

Thanks! The hard here part is not typescript implementation but it's catching Word undocumented quirks.

The OOXML spec gets you far but doesn't cover 100% of how Word renders things. Community feedback has helped a lot here, users attach docs (in gh issues) that break rendering, we can reproduce against Word, fix the engine, and keep tightening fidelity.

Post reply on HN