Open source · TypeScript · MIT
Lextrix — Modern rich-text editing for the web
An open-source modular TypeScript rich-text editor with ChangeSet OT and HTML, Markdown, and MDX serialization. Compose packages for document models, formatting, change processing, serialization, and UI — or ship the full bundle. Built for engineers who want predictable editor behavior, native Markdown/MDX import-export, and open-source ownership.
Created by Reetesh Kumar · Creator of Lextrix · iamreetesh.com
Live playground
Try Lextrix 2.x in your browser — switch themes, use the toolbar, and watch Markdown, HTML, and JSON export update live in the panel below.
Interactive Lextrix editor with themes, full toolbar, and live Markdown / HTML export.
What you get in 2.x
- Themes — Snow, Bubble, Slate, Dawn (CSS included)
- Modules — clipboard, keyboard, history, toolbar, table, syntax, image resize
- Formats — bold, lists, headers, links, code blocks, tables, images, video, formulas
- Serialization — HTML, Markdown, MDX, JSON via importContent / exportContent
- ChangeSet — compose, diff, transform, invert
Why Lextrix exists
Rich-text editors are infrastructure. Lextrix is built as a long-term ecosystem — explicit module boundaries, predictable change processing, and extension points that do not require forking core internals.
Ecosystem packages
The Lextrix monorepo is organized as composable packages — install the published bundle or compose internals for custom editor builds.
Design principles
- Explicit ownership — every subsystem has a clear owner
- Separation of concerns — document, formatting, and browser integration stay isolated
- Extensibility — register formats and modules without forking core
- Predictability — changes flow through a consistent pipeline
Roadmap
- Public live playground and hosted demo
- Framework starter templates (React, Vue)
- Stable MDX component handlers (registerMdxComponent)
- Bundle size benchmarks in documentation
- Optional collaboration examples built on ChangeSet transform
Documentation
Install, integrate with React, and extend Lextrix with the official guides on iamreetesh.com. Advanced monorepo docs remain on GitHub.
Related reading
Articles that connect to how Lextrix was designed and built.