talira

An extensible text editor framework that provides excellent reliability, accessibility and performance

open sourceMITself-hostablefree

Lexical is a text editor framework for the web that began at Meta. A small, dependency-free core (lexical) holds an immutable editor state and is framework-agnostic; @lexical/react provides React bindings, and features come as extensions: rich text, history, lists, tables, code blocks and more. Content converts to and from JSON, HTML and Markdown, the editor can run headless on a server or in tests, and real-time collaboration with shared content and remote cursors comes through its Yjs integration. The application supplies its own layout, toolbars, menus, styling and storage. It's still before 1.0 (0.53 in October 2026).

Problems it solves

  • add a rich text editor to my React app that I fully control the toolbar and styling of
  • contenteditable is buggy across browsers and our home-grown editor keeps corrupting text
  • store editor content as JSON and render it to HTML or Markdown on the server
  • real-time collaborative editing with remote cursors in our own editor
  • an accessible text editor component for a web app
  • build custom inline nodes like mentions, hashtags or embeds in a text editor
  • convert pasted HTML into a clean document model
  • run the editor's document model headless in Node for tests or server-side rendering

Features

  • small, dependency-free, framework-agnostic core
  • React bindings (@lexical/react)
  • extensions for rich text, history, lists, tables and code blocks
  • JSON, HTML and Markdown conversion
  • headless editor for servers and tests
  • Yjs collaboration with shared content and remote cursors
  • custom nodes, commands and listeners
  • Lexical iOS (a separate Swift project)

Limitations

  • No ready-made editor UI: the application supplies the layout, toolbars, menus, styling and storage1

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what Lexical does.

  1. ProseMirror A toolkit for building rich-text editors on the web
  2. Tiptap The headless rich text editor framework for web artisans
  3. Quill Quill is a modern WYSIWYG editor built for compatibility and extensibility
  4. CKEditor 5 Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing
  5. Trix A rich text editor for everyday writing
  6. TinyMCE The world's #1 JavaScript library for rich text editing

Compare Lexical with the top 3