Open source · TypeScript · MIT
Lextrix — TypeScript rich-text editor
Lextrix split into packages — lextrix-change, lextrix-dom, lextrix-core, lextrix-serialize, and others — so each layer has one job. The npm bundle is for a quick embed; @lextrix/react is the official React wrapper; the packages are for a custom build.
Live playground
Try Lextrix in your browser — switch themes, use the toolbar, and see Markdown, HTML, and JSON export as you edit.
Interactive Lextrix editor with themes, full toolbar, and Markdown / HTML export preview.
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
- React — @lextrix/react LextrixEditor with controlled content and Next.js support
Why Lextrix exists
Most editors bundle document model, DOM sync, and serialization in one package. Lextrix splits those layers so you can swap or omit pieces.
Ecosystem packages
The Lextrix monorepo is organized as composable packages — install the published bundle or compose internals for custom editor builds.
Roadmap
- Vue starter template (React wrapper shipped as @lextrix/react)
- Stable MDX component handlers (registerMdxComponent)
- Bundle size benchmarks in documentation
- Optional collaboration examples built on ChangeSet transform
Documentation
Install, integrate with React or Vue, 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.