Examples

Runnable DOCX editor starters for Vite, Next.js, Remix, and Astro, plus a fully themed editor and a headless editing script. Clone one and run it.

Two kinds of examples. The starters are complete apps in the repo, one per framework or feature; clone and run them. The live demo runs right here on this page.

Runnable starters

Every starter lives under examples/ in the repo and runs with bun install followed by the bun run dev:* script in its README. All of them resolve @docx-editor.dev/* from the monorepo workspace rather than from npm. Most need the packages built once first (bun run build:packages from the repo root); the Vite starter aliases package source directly and needs no build step. To run a starter against the published npm packages instead, replace the workspace:* versions in its package.json.

Each starter's README has the exact commands.

Live demo

<DocxEditor> running in this page. Open one of your own files in it.

Next steps

  • Quickstart: build the load → edit → save loop yourself
  • Installation: per-framework setup behind each starter
  • Composition: the primitives the Igloo starter is built on
  • Editing API: the object model behind the headless starter

On this page