Handbook
markloom is a Markdown-honest rich text stack:
a schema-constrained tree, reversible Steps, MD as an isomorphic projection,
and optional AI write into real blocks — not a floating overlay.
Install, mount an Editor, round-trip Markdown in under a minute.
provider / endpoint / stream — drafts on the real history stack.
OT client + Cloudflare Worker Durable Object rooms.
Agents and SSG: apply, appendText, diffById with zero DOM.
Entrypoints: kernel, view, ai, collab, react.
Concept budget, MD fidelity, AI axis — not another PM wrapper.
Structure mirrors language docs: concepts first, then tutorials, then reference tables.
| Section | Purpose |
|---|---|
| Handbook | Mental model: Steps, architecture, MD isomorphism |
| Get Started | Editor, headless kernel, React wrapper |
| Guides | AI write, collab, extensions, MD round-trip |
| Reference | Packages, APIs, options, capability matrix |
| Surface | Import | Notes |
|---|---|---|
| Kernel | markloom | Zero DOM · tree, Steps, MD, history |
| Editor | markloom/view | Preact controlled contentEditable |
| AI | markloom/ai or EditorOptions.ai | Stream into draft blocks |
| Collab | markloom/collab + worker/ | Centralized OT room |
| React | markloom/react | Optional peer dependency |
npm i markloom