Luthor
DocumentationDemoPlaygroundGitHub
Luthor

A headless, extensible rich text editor built on Lexical. Ship faster with production-ready defaults and TypeScript-first APIs.

Documentation

IntroductionInstallation@lyfie/headless@lyfie/luthor

Resources

DemoPlaygroundGitHubnpm Package

Support the Project

Buy me a coffeeStar on GitHub

Built with love by developers for developers.

DocsGitHubllms.txtllms-full.txt
  1. Home
  2. Docs
  3. Getting Started
  4. Installation

Luthor Documentation

Getting Started

  • Introduction
  • Installation
  • @lyfie/headless
  • @lyfie/luthor

@lyfie/headless

  • Features
  • Typography and Text
  • Structure and Lists
  • Media and Embeds
  • Code and Devtools
  • Interaction and Productivity
  • Customization and Theming

@lyfie/luthor

  • Presets
  • Extensive
  • Simple Text
  • Rich Text
  • Chat Window
  • Email Compose
  • Markdown
  • Notion Like
  • Headless Preset
  • Notes

Installation

This page covers install, update, and uninstall for both packages.

Install @lyfie/luthor

npm install @lyfie/luthor react react-dom

Install @lyfie/luthor-headless

npm install @lyfie/luthor-headless lexical @lexical/code @lexical/link @lexical/list @lexical/markdown @lexical/react @lexical/rich-text @lexical/selection @lexical/table @lexical/utils react react-dom

Optional for headless:

npm install highlight.js @emoji-mart/data

Update packages

npm update @lyfie/luthor @lyfie/luthor-headless

Uninstall packages

npm uninstall @lyfie/luthor @lyfie/luthor-headless

If you installed headless peers directly and want to remove them too:

npm uninstall lexical @lexical/code @lexical/link @lexical/list @lexical/markdown @lexical/react @lexical/rich-text @lexical/selection @lexical/table @lexical/utils highlight.js @emoji-mart/data

Common mistakes

  1. Missing Lexical peer dependencies for headless setup
  2. Missing @lyfie/luthor/styles.css import for presets
  3. React/Lexical version mismatch
  4. Following preset docs when implementing headless UI (or vice versa)
Previous: Introduction
Next: @lyfie/headless