Skip to content

Deditor

Doc editor. TypeScript SDK for a pageless document editor built on ProseMirror. The surface is Docs-width (not paged), with operational-transform collaboration, comments (no suggestion mode), and four packages:

PackageRole
@deditor/coreEditor, Extension, CommentStore, schema merge, sanitizers, shared wire types (CollabProvider, Snapshot, CommentOp, …). Does not import prosemirror-collab or React.
@deditor/preset-docsDocs schema, commands, keymap, tables, lists, search, comment marks. Does not import @deditor/collab.
@deditor/collabcollabExtension, applyAuthorityBatch, createWsProvider, in-memory authority helpers. OT via prosemirror-collab, not Yjs.
@deditor/react<DocEditor /> chrome (toolbar, bubbles, find, comment sidebar). Peer react >= 18.

JSON is the canonical document format. HTML is paste input, print, and getHTML() only.

Start at Install, then DocEditor for the React surface or Editor API for a headless mount.

A playground (single-user) is on GitHub Pages. Two-panel collab needs pnpm dev:collab locally.

Released under the MIT License.