DemoDocsPlaygroundGitHub

An extensible rich text editor framework built on Lexical. Ship faster with production-ready defaults and TypeScript-first APIs.

Documentation

IntroductionInstallation@lyfie/luthor-headless@lyfie/luthor

Resources

DemoFeaturesPlaygroundGitHubluthor @ npmluthor-headless @ npm

Support the Project

Buy me a coffeeStar on GitHub

Built with ❤️ by Lyfie.org

HomeDocsFeaturesDemoGitHubllms.txtllms-full.txt
  1. Home
  2. Docs
  3. Getting Started
  4. Contributor Guide

Luthor Documentation

Getting Started

  • Introduction
  • Installation
  • Contributor Guide
  • AI Agents and Vibe Coding
  • Capabilities
  • @lyfie/luthor-headless
  • @lyfie/luthor

@lyfie/luthor-headless

  • Architecture
  • Extensions and API
  • Metadata Comment System
  • Features
  • Typography and Text
  • Structure and Lists
  • Media and Embeds
  • Code and Devtools
  • Interaction and Productivity
  • Customization and Theming

@lyfie/luthor

  • Architecture
  • Props Reference
  • Feature Flags
  • Presets
  • Extensive Editor
  • Compose Editor
  • Simple Editor
  • Legacy Rich Editor
  • MD Editor
  • HTML Editor
  • Slash Editor
  • Headless Editor

Contributor Guide

This is the fastest path for contributors working on @lyfie/luthor and @lyfie/luthor-headless.

Prerequisites

  • Node >=20
  • pnpm@10.4.1

Monorepo map

  • packages/headless: headless runtime, extension system, conversion bridges, theme utilities.
  • packages/luthor: preset package built on top of headless.
  • apps/demo: Vite playground for preset behavior QA.
  • apps/web: docs + marketing site. All docs pages live here.
  • tools: release hardening, contracts, size checks, and CI support scripts.

Local development commands

npm install
npm run dev

Useful checks:

npm run build
npm run lint
npm run check:rule-contracts
npm run size:check
npm run check:release-hardening

Package-level tests:

pnpm -C packages/headless test
pnpm -C packages/luthor test

Docs workflow (apps/web)

  1. Add or edit markdown files in apps/web/src/content/docs/**.
  2. Keep title and description frontmatter current and accurate.
  3. Regenerate the static docs index:
pnpm -C apps/web run sync:docs
  1. Regenerate LLM artifacts:
pnpm -C apps/web run sync:llms
  1. Validate docs locally:
pnpm -C apps/web run dev

Docs quality bar

  • Explain features in plain English first, then show APIs.
  • Include every relevant prop/method/feature flag in reference pages.
  • Keep examples practical and copy-paste friendly.
  • Keep docs and runtime behavior aligned. If behavior changes, docs must change in the same PR.

Where to start by topic

  • Preset behavior and UI composition: /docs/luthor/architecture/
  • Preset props and feature gates: /docs/luthor/props-reference/
  • Headless runtime and extension API: /docs/luthor-headless/architecture/
  • Metadata comment bridge internals: /docs/luthor-headless/metadata-comment-system/

Pull request checklist

  • Reproduce in apps/demo or apps/web/demo if UI-related.
  • Add or update tests in touched package when behavior changes.
  • Run pnpm lint and impacted package tests.
  • Run pnpm -C apps/web run sync:docs if docs changed.
  • Run pnpm -C apps/web run sync:llms when docs content changes.
  • Include before/after screenshots or GIFs for UX changes.
Previous: Installation
Next: AI Agents and Vibe Coding