mrkeyoor.comAsk

facebook/lexicaltested 01 Sept 2026commit aca1216

lexical review

Choose Lexical when your team wants to build and maintain a custom editor around explicit state, nodes and plugins.

  • Build 36 s
55 sto install
  • 2,572 packages
Webevaluationupdated 26 Oct 2026
+12stars / 7d

Lexical is a framework for building text editors in web applications, with a framework agnostic core and official React bindings. It maintains editor state separately from the DOM and supports plugins, custom nodes, undo/redo, serialization and Yjs collaboration. Its React quick start supplies editing primitives; your team assembles the product interface.

Verdict

Choose Lexical when your team wants to build and maintain a custom editor around explicit state, nodes and plugins. In our September 1, 2026 run at commit aca1216, dependency installation succeeded in 55 seconds and the build succeeded in 36 seconds; tests were skipped. The recorded 2,572 packages and 1,707 MB describe contributor setup, not the cost of the two-package React quick start. Before adopting it, prototype your custom content, persistence and browser behavior, then check the release notes for your pinned version.

We ran it

Lab card: what happened when we ran lexical
Lab card from our sandbox run
Screenshot of lexical (lexical.dev)
lexical.dev
Install✓ · 55s2572 packages · 1707 MB
Build✓ · 36s
Testsn/ano test script
Repo2279 files~405,299 lines of source · 20 MB · 13 CI workflows

Answers from our run

Does lexical build from source?

Dependencies installed in 55 seconds (2572 packages), and the build succeeded in 36 seconds. We cloned commit aca1216 into a clean Debian container with 3 CPUs and no project-specific setup.

Does lexical have tests you can run?

Not through a standard command: the project exposes no test script or target that our harness could run.

Who should not use lexical?

Teams expecting the README's React quick start to deliver a finished toolbar and document editor.

What are the alternatives to lexical?

Tiptap, Slate. Choose Lexical when your team wants to build and maintain a custom editor around explicit state, nodes and plugins.

Setup3/5The README provides a two-package React entry path. Our September 1, 2026 workspace run at aca1216 recorded a successful 55-second install, 1,707 MB of dependencies and a successful 36-second build. Tests were skipped; application installation cost was not measured.
Docs4/5The supplied README and concept pages explain setup, state, nodes and collaboration with examples and specific warnings. Current nodes documentation includes v0.51.0 features, so readers targeting v0.49.0 must distinguish version scopes.
Community2/5The README identifies Discord and GitHub support channels, and the supplied issue extract shows dated participation. These sources do not establish response times, resolution rates or adoption. This score reflects limited evidence for community support.
Maturity3/5The supplied sources document state, serialization, custom nodes and collaboration, while v0.49.0 includes explicit breaking changes. Our build succeeded, but no tests or production workloads were executed.

Discussed on

  1. hnFacebook open sources Lexical, an extensible text editor library379 points
  2. hnLexical – a web text editor framework that powers Facebook283 points
  3. hnLexical is now open-source (web text-editor)88 points
  4. hnFacebook/lexical: extensible text editor framework3 points

Who it’s for

React teams building a custom editing experience and willing to compose its interface and plugins.
Developers who want a document model with explicit nodes, selection and committed state snapshots.
Products that need custom content types or Yjs collaboration and can maintain serialization and browser regression cases.
Contributors who can accommodate the full workspace installation measured below.

Who it’s NOT for

Teams expecting the README's React quick start to deliver a finished toolbar and document editor.
Teams requiring official bindings for a framework other than React: the README identifies React bindings and a framework agnostic core.
Products whose browser requirements fall below the README's documented floor of Chrome 86, Edge 86, Firefox 115 or Safari 15.
Applications unable to accommodate the breaking changes documented for v0.49.0.
Contributors with disk budgets that cannot accommodate the recorded 1,707 MB dependency installation. This figure does not measure an application consuming published Lexical packages.

Setup reality

In our recorded run on September 1, 2026 at 05:17:33.116 UTC, commit aca121666bf788fa9dcd592973cd089214a10365 completed dependency installation in 55,051 ms and the build in 35,546 ms, rounded to 55 and 36 seconds in the stored summary. Both steps exited with code 0. The dependency summary recorded 2,572 packages and 1,707 MB. This was a repository workspace run, not an installation-size measurement for a consuming application.

The test step was skipped with reason "no script". That describes the harness's command selection, not the absence of tests: the same raw record lists test-unit, test-browser and multiple test-e2e scripts. No tests were executed in this run. The build tail records node scripts/build.mjs; it does not establish browser correctness, an installed-binary check or a measured editing workload.

The checkout summary recorded 2,279 files, approximately 405,299 source lines, a 20 MB source tree, 13 CI workflow files and workspaces. Its Dockerfile, Compose and tests-directory detection flags were false. Those directory flags do not establish that the repository lacks test files. The recorded sandbox configuration was 3 CPUs, 8 GB of memory and image lab-node:22. The raw detector separately reported nodeMajor 24, so the image label should not be presented as the verified runtime version.

The README's React quick start installs lexical and @lexical/react and composes plain-text editing, history and an error boundary. It separately documents pnpm install, pnpm run start, pnpm run test-unit, pnpm run test-e2e-chromium and pnpm run ci-check for repository development. These documented commands are not additional results from our run. The collaboration guide adds Yjs bindings and a connection provider; it identifies y-websocket as the only officially supported provider at the time of that documentation.

Lexical gives you an editor model and leaves product decisions to you

Lexical suits teams for whom editing behavior is part of the product. Its README describes a framework agnostic core, official React bindings, a plugin architecture and support for rich content. The React quick start composes a contenteditable surface, plain-text behavior, history and an error boundary. You still choose the interface and the behavior around those pieces.

That distinction also explains the setup numbers. Installing published packages into an application and preparing the repository for contribution are different tasks. Our recorded workspace run measures the latter. It cannot establish the dependency footprint or bundle size of your editor.

What our September 1 run established

Our recorded run began on September 1, 2026 at 05:17:33.116 UTC against commit aca121666bf788fa9dcd592973cd089214a10365, whose recorded commit date was August 31, 2026 at 21:39:33 UTC. Dependency installation completed successfully in 55,051 ms, and the build completed successfully in 35,546 ms. The stored summary rounds those durations to 55 and 36 seconds.

The parser summary recorded 2,572 dependency packages occupying 1,707 MB. It also recorded 2,279 repository files, approximately 405,299 source lines and a 20 MB source tree. These are stored run summaries, not a reconciled inventory of unique packages or test coverage. The available logs do not separate download time from the rest of installation or allocate dependency storage among workspace components.

The test step was skipped with reason "no script". The raw record nevertheless lists test-unit, test-browser, Chromium, Firefox and WebKit end-to-end scripts, and other test commands. The README also documents unit and Chromium end-to-end commands. The harness did not select a test command; it produced no passing or failing test result.

The build tail contains node scripts/build.mjs. A successful exit establishes completion of that recorded build step. We did not run an editor workload, browser checks, accessibility checks or an installed-binary check, and we did not measure bundle size. The audit field is null, so this run supplies no dependency advisory assessment.

The sandbox summary records 3 CPUs, 8 GB of memory and image lab-node:22; the raw detector reports nodeMajor: 24. Those entries do not justify calling this a verified Node 22 run. The scan recorded 13 CI workflows and workspaces, with Dockerfile, Compose and tests-directory flags set to false. A directory detector's result is not evidence that test files are absent.

State snapshots are not complete session backups

The editor-state documentation says Lexical's underlying state model is the source of truth. An editor state contains the node tree and selection and becomes immutable after an update. However, toJSON() serializes the document tree only: it excludes the selection and runtime node keys. Saving document JSON therefore does not preserve the entire editing session.

Restoring saved content requires parsing it and applying the resulting state to an editor with the same node types registered. For a product with custom nodes, a useful adoption check is to save representative documents and restore them with the intended node registration. Keep those fixtures for upgrades.

Dollar-prefixed helpers such as $getRoot() and $getSelection() require a synchronous read or update context. Node access and mutation follow that state lifecycle. These rules give application code a consistent document model, but developers need to learn them before adding custom behavior.

Keep v0.49.0 guidance separate from newer documentation

The v0.49.0 release completed the $config() migration for built-in node classes. Its release notes say static importJSON(), importDOM(), clone() and transform() methods are no longer present on ported nodes. They explicitly say getType() is unchanged and safe to keep using. Custom nodes may retain their static methods, although adopting $config() is recommended.

The same release made command payload types invariant. The notes say previously correct code, including explicit generics, needs no changes; unsafe LexicalCommand<unknown> usage must use AnyLexicalCommand. Review the affected APIs rather than assuming every command requires rewriting.

The supplied current nodes documentation also describes experimental JSON serialization schemas introduced in v0.51.0. That is later guidance, not a capability to attribute to v0.49.0. For the reviewed version, check its custom-node serialization requirements rather than copying a newer example without checking compatibility.

Collaboration adds decisions beyond the editor

The React collaboration guide builds on @lexical/yjs and a connection provider. It identifies y-websocket as the only officially supported provider at the time of the guide, while allowing that other providers may work. Its example also requires a running WebSocket server.

The guide recommends bootstrapping production initial content on the server because two clients initializing it simultaneously can corrupt the document. This is a documented implementation warning, not a finding from our sandbox. Custom node properties also need predictable initialization for synchronization; the guide explains that NodeState avoids the constructor-property concern it describes.

For a narrower package decision, see the existing @lexical/yjs guide. The @lexical/react guide covers the React binding, and the @lexical/markdown guide addresses the Markdown adapter.

Browser and accessibility claims need product checks

The README lists Chrome 86+, Edge 86+, Firefox 115+ and Safari 15+. It also claims built-in accessibility support and WCAG compliance. These are project statements, not results of our run. They do not establish that your toolbar, dialogs, labels or custom nodes meet your application's requirements.

Before committing to Lexical, try your actual paste samples, keyboard flows, custom nodes and saved documents in your supported browsers. Include collaboration if you plan to ship it. This prototype answers questions that a repository build cannot.

Alternatives and ratings

Tiptap is a relevant alternative when you want a headless editor based on ProseMirror, extended through extensions and intended for multiple frontend frameworks. Its README says it comes without a set user interface. Slate is relevant when you want React, first-class plugins and a schema-less nested document model. Its README labels the project beta and warns about API changes. Neither description establishes a performance or reliability advantage over Lexical.

The structured ratings use a five-point editorial rubric: 1 means substantial documented obstacles, 2 means limited evidence or notable constraints, 3 means a workable option with clear responsibilities, 4 means strong supporting evidence with bounded gaps, and 5 requires unusually complete evidence for that category. They are judgments about the supplied evidence, not benchmark results. Setup considers the documented entry path and recorded contributor run; docs considers the supplied explanations and examples; community considers visible participation without assuming response times; maturity considers supported capabilities and migration obligations.

The supplied issue extract contains reports dated October 2026, but reports alone do not establish confirmed defects, resolution speed or production adoption. The previous star and activity figures are not needed to decide whether the framework fits your product. The useful next step is a small editor prototype with persistence and browser cases, followed by the documented test commands if you intend to contribute to the repository.

Alternatives

ProjectWhat it isPick it when
Tiptap gh↗A headless, framework agnostic rich-text editor based on ProseMirror and extended through extensions.Choose it when you want a ProseMirror foundation and an extension-based editor across frontend frameworks. Its README says the editor comes without a set user interface, so it also requires interface work.
Slate gh↗A customizable editor framework built on React, with first-class plugins and a nested document model.Choose it when React, a schema-less core and a nested document model fit your editor design. Its README labels it beta and warns that APIs can change.

What people are saying

  1. [velocity-scout] facebook/lexical

Sources

  1. Lexical repository and README
  2. Lexical editor state documentation
  3. Lexical nodes documentation
  4. Lexical collaboration documentation
  5. Lexical 0.49.0 release
  6. Lexical issue activity

More web reviews