Luthor
HomeFeaturesDemoDocumentationGitHub
Luthor

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

Documentation

IntroductionInstallation@lyfie/luthor-headless@lyfie/luthor

Resources

DemoFeaturesPlaygroundGitHub Repositorynpm Package

Support the Project

Buy me a coffeeStar on GitHub

Built with love by developers for developers.

HomeDocsFeaturesDemoGitHub Repollms.txtllms-full.txt
  1. Home
  2. Docs
  3. Getting Started
  4. Capabilities

Luthor Documentation

Getting Started

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

@lyfie/luthor-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

Capabilities

For Lexical engine-level behavior and APIs, read the official Lexical docs: lexical.dev/docs.

Typography Controls

Typography controls preview

Custom fonts, font size controls, and line-height that behaves. Typography should fit your product voice, not force browser defaults.

  • Use any custom font you want.
  • Dial in font sizes for readability.
  • Granular line-height control for cleaner rhythm.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Essentials Done Right

Text formatting essentials preview

Bold, italic, underline, strike, sub/superscript, code, and quotes. Core formatting is implemented cleanly and type-safe.

  • Bold, italic, underline, and strikethrough.
  • Subscript and superscript support.
  • Inline code and block quotes.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Color And Highlight

Color and highlight preview

Apply font color and highlights without inline style chaos. Color tools integrate with themes and keep output clean.

  • Font color support.
  • Highlight support.
  • Theme-friendly output styles.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Links And Structure

Links and structure preview

Predictable links plus semantic headings and paragraph flow. Link insertion is clean, and document hierarchy stays sane.

  • Predictable link insertion behavior.
  • Paragraphs and headings from H1 to H6.
  • Left, center, right, and justify alignment.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Lists That Know What They're Doing

Lists preview

Unordered, ordered, and checklist/task lists in one workflow. Use the right list type without fighting editor state.

  • Unordered lists for free-form notes.
  • Ordered lists for sequences and steps.
  • Checklist/task lists for actionable content.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Indentation Control

Indentation preview

Indent in and out with consistent, structure-safe behavior. Tab behavior is predictable and respects document structure.

  • Tab in and tab out quickly.
  • Supports structured indentation behavior.
  • Works cleanly with nested content.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Rich Embeds

Rich embed preview

Embed images, iframes, and YouTube content with minimal friction. Paste and render rich media without bolt-on hacks.

  • Image embedding support.
  • Iframe embedding support.
  • YouTube embed flow.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Code Blocks

Code block preview

Syntax-ready code blocks for docs, tutorials, and snippets. Code content stays structured and extendable for real product usage.

  • Dedicated code block support.
  • Built for developer-focused content.
  • Extensible for richer syntax experiences.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Dark/Light Ready

Theme switching preview

Editor-layer theme support, not fragile visual hacks. Dark and light mode behavior is built in from the editor layer.

  • Theme switching support.
  • Consistent readability across themes.
  • Works with your app-level styling model.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

History + Shortcuts

Undo, redo, and shortcuts preview

Undo/redo and keyboard-first interactions across core features. Move fast without relying on toolbar clicks.

  • Full undo and redo history.
  • Keyboard-friendly command flow.
  • Built for power-user editing speed.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Slash Command Center

Slash command preview

Type / to discover and trigger editor actions quickly. Slash commands are fast, predictable, and easy to extend.

  • Type / to reveal actions.
  • Predictable command discovery.
  • Extensible command architecture.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes

Custom Blocks

Custom block preview

Create custom nodes and schema extensions for product-specific UX. If defaults are not enough, the editor can be shaped around your needs.

  • Create custom nodes.
  • Inject product-specific blocks.
  • Extend schema behavior safely.
PackageAvailability
@lyfie/luthorYes
@lyfie/luthor-headlessYes
Previous: Installation
Next: @lyfie/luthor-headless