facebook/lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on August 8th, 2026
Created on December 3rd, 2020
Open Issues & Pull Requests: 299 (-2)
GitHub issues: Enabled
Number of forks: 2,227
Total Stargazers: 23,889 (+0)
Total Subscribers: 129 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.3 hours
Mean response time: 78.5 days
90th percentile: 287.1 days
Tracked items: 1,191

How this project is maintained

About 4% of issues opened in the past year have never received a reply. 95% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "playground" is answered fastest, typically in about 12 hours, while "core" waits about 6 days. 89% of issues opened in the past year have been closed, leaving a working backlog. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 152
New in 7 days: 5
Closed in 7 days: 2
Avg open age: 647 days
Stale 30+ days: 135
Stale 90+ days: 111

Recent activity

Opened in 7 days: 4
Closed in 7 days: 2
Comments in 7 days: 4
Events in 7 days: 9

Top labels

  • enhancement (239)
  • all-platforms-bug (90)
  • tables (85)
  • markdown (78)
  • good first issue (74)
  • playground (71)
  • core (68)
  • selection (68)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Lexical is an extensible text editor framework developed by Facebook and written in TypeScript that prioritizes reliability, accessibility, and performance. The framework is designed to work as a framework-agnostic core that can integrate with any UI framework, though it provides official React bindings for developers who want to use it within React applications. The project is distributed via npm and maintains active development with regular releases tracked on GitHub.

The architecture of Lexical centers on an immutable state model that enables time-travel capabilities through built-in undo and redo functionality. This design choice makes the editor suitable for collaborative editing scenarios, with real-time collaboration supported through integration with Yjs. The framework includes comprehensive serialization support, allowing users to import and export content in multiple formats including JSON, Markdown, and HTML. Rich content editing is fully supported with built-in capabilities for tables, lists, code blocks, images, and custom node types that developers can extend.

Accessibility is a core design principle rather than an afterthought, with built-in support for WCAG compliance standards. The framework maintains broad cross-browser compatibility, supporting Chrome 86 and later, Firefox 115 and later, Safari 15 and later, and Edge 86 and later. Being written entirely in TypeScript provides comprehensive type definitions and type safety throughout the codebase, which benefits developers building applications on top of Lexical.

The extensibility of Lexical is achieved through a plugin-based architecture with powerful extension points that allow developers to customize and enhance the editor's functionality. The project provides multiple entry points for learning and experimentation, including comprehensive documentation at lexical.dev, a playground environment for testing, a gallery showcasing implementations, and quick-start examples for both plain text and rich text use cases. Stack Blitz examples are available for immediate hands-on experimentation without local setup.

Community engagement is facilitated through multiple channels including a Discord server for announcements, questions, and discussions, GitHub Issues for bug reports and feature requests, and detailed release notes published with each version. The project maintains development guidelines documented in CONTRIBUTING.md and includes an AGENTS.md file that outlines architecture and development workflows for contributors. The examples directory contains sample implementations demonstrating various use cases and patterns.

The codebase is licensed under the MIT License with copyright held by Meta Platforms, Inc. The project actively welcomes contributions from the community and provides clear guidance on the development process for proposing bugfixes and improvements. The combination of framework-agnostic design, strong accessibility support, collaborative editing capabilities, and extensive customization options positions Lexical as a comprehensive solution for applications requiring sophisticated text editing functionality.