Skip to the content

Get started

Introduction

Dorvyn is a Word-compatible document editor you put in your own web app. Documents are laid out on real pages, edited in the browser, and saved as .docx files that open in Word exactly as they looked.

What you get#

  • The editor. The document on pages, with headers and footers, page numbers, pictures and tables you can resize and move by hand, comments, footnotes, a table of contents, captions and cross-references, equations, find and replace, spelling, and undo.
  • Our interface, if you want it. The full editor (title bar, sidebar, ribbon, panes, status bar, dialogs, File screen, command search and context menu) in one element, or any of its pieces on their own, themed to fit your app.
  • Every action as a command. About 110 commands, the same ones our ribbon uses. Build your own toolbar from them, add your own, or mix ours with yours.
  • Its state. The formatting at the cursor, the paragraph's settings, counts, comments, headings and the license, updated as the person edits.
  • Your documents, your storage. Take the document out as data or as a file, keep it wherever you like, and open it again later.

How it fits together#

PieceWhere it runsWhat it does
The SDK (@dorvyn/elements, @dorvyn/react, @dorvyn/next, @dorvyn/angular)Your pagesThe editor and its interface
@dorvyn/serverYour serverLicenses the editor for your signed-in users, and saves as Word for them (strict mode)
The dashboard (app.dorvyn.dev)DorvynYour organization, applications, keys, team, plan, usage and security
Dorvyn's servicesDorvynLicenses, saving as .docx, and the editor's engine on a CDN

The document itself never goes to Dorvyn while it's being edited. Drafts stay in the person's browser. Only saving as .docx sends the document to Dorvyn's export service, which builds the file and keeps nothing.

What you can't change#

The page always lays out like Word, and your page's CSS can't restyle it, so a document looks the same in your app, in Word and in the saved file. Editing needs a license for your domain. Nothing becomes editable without one, and the editor checks that itself.

Where to start#

  1. Quickstart: the editor on your page in five minutes, with a test key.
  2. How licensing works: keys, grants, and why live sites use strict mode.
  3. Your framework: HTML, React, Next.js or Angular.
  4. Strict mode: no key in your pages, before you go live.
  5. Going live: the checklist.

Stuck? Troubleshooting walks through the usual problems, and Messages and errors explains every message you or your users can see.