Reference
Single npm package markloom with multiple entrypoints.
| Import | Contents |
|---|---|
markloom | Tree, Steps, history, MD, search/versions/suggest pure functions, stats, TOC, comments model, OT rebase |
markloom/view | Editor, kit, extensions; O(1) options: search / versions / suggest / comments / toc |
markloom/ai | AI controller + stream helpers |
markloom/collab | WebSocket OT client, auth token, heartbeat, version side-channel |
markloom/io | DOCX import/export (docToDocx / docxToDoc) |
markloom/react | Optional React wrapper |
markloom/view/theme.css | Editor chrome + content styles |
markloom/ai/theme.css | AI draft / chrome styles |
Preact, @floating-ui/dom, unified/mdast GFM stack, PhotoSwipe. No ProseMirror / Tiptap.
| Optional peer | When |
|---|---|
react ≥ 18 | Only if you use markloom/react |
Collab Durable Object lives in the repo under worker/.
Deploy with wrangler; point the client collab.url at that host.
Current published line: 0.6.0 · MIT · npmjs.com/package/markloom