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 18 minutes ago
Added to GitGenius on August 8th, 2026
Created on December 3rd, 2020
Open Issues & Pull Requests: 370 (+0)
Number of forks: 2,218
Total Stargazers: 23,746 (+1)
Total Subscribers: 130 (+0)

Issue Activity (beta)

Open issues: 162
New in 7 days: 15
Closed in 7 days: 32
Avg open age: 671 days
Stale 30+ days: 132
Stale 90+ days: 111

Recent activity

Opened in 7 days: 13
Closed in 7 days: 28
Comments in 7 days: 19
Events in 7 days: 73

Top labels

  • enhancement (233)
  • all-platforms-bug (89)
  • tables (84)
  • markdown (78)
  • good first issue (74)
  • playground (69)
  • selection (68)
  • core (67)

Repository Insights (GitGenius)

Median issue/PR response: 1.1 hours
Mean response time: 24.7 days
90th percentile: 14.3 days
Tracked items: 1,180

Most active contributors

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.

lexical
by
facebookfacebook/lexical

Repository Details

Fetching additional details & charts...