Getting started
Overview
Lextrix 3.0 — editor first, document engine when you need history, sync, or AI proposals.
Lextrix 3.0 is still a rich-text editor you can mount in the browser. Under that, it now ships a document engine — Versions, OT collaboration, persistence, and AI that submits proposals instead of writing into the DOM.
Most people only need the editor:
npm install lextriximport Lextrix from 'lextrix';
import 'lextrix/snow.css';
const editor = new Lextrix('#editor', { theme: 'snow' });
editor.importContent('# Hello', 'markdown');React: React Integration. Try it here: /lextrix.
If you are upgrading from 2.x, see Migrating to 3.0.
When you need more than the editor
| Package | Use it for |
|---|---|
lextrix / @lextrix/react | Editing in the browser |
lextrix-change | Documents, Versions, ChangeSets |
lextrix-collab | Authoritative multi-client sync |
lextrix-server | Reference Postgres + WebSocket host |
lextrix-intelligence | AI that emits proposals |
How those pieces fit: Architecture. The Document / Version / Proposal model: Document Model.