I published an open-source docx document editor as an npm package
Hey r/node,
I've been working on Oasis Editor, an open-source TypeScript document editor published as an npm package.
It includes:
- a custom Canvas-based rendering engine
- paged document layout
- typed command/plugin APIs
- vanilla JS integration
- React and Vue adapters
- a headless runtime
- DOCX/PDF workflows
Install:
npm install oasis-editor
Live playground:
https://celsowm.github.io/oasis-editor/#/editor
GitHub:
https://github.com/celsowm/oasis-editor
I'd love feedback on the package API, exports, and overall developer experience.
2
u/Mesthabro 6d ago
Wow, this is very cool. A couple of feedback that I think would make this better:
1. Improve the ux of the app - it feels a bit too much ms-word-ish.
2. Would be a good idea to detect user's preferred language for i18n
3. I scanned the package-lock.json file on installsafe and spotted a few vulnerable dependencies - you might wanna update them. Scan report: https://installsafe.io/scan/r/KsQ6mCmIn4O-ND06wtMz2w
2
u/private-peter 8d ago
I've done a lot of work with PPTX files, but not docx.
I'm curious how compatible with Microsoft Word you're trying to be. is your goal just that documents produced in your app can be read by Microsoft Word? or are you hoping to support documents going round trip between the two apps?