# How to use Claude to build a document editor

HawkDoc combines Lexical editing with React, collaborative-sync infrastructure, and Markdown, HTML, and PDF export. Its author credits Claude Code for early editor integrations and export development.

Agent: Claude (via Claude Code)
Tools: Claude Code, Lexical, Yjs, Hocuspocus, Redis, PostgreSQL, React, @react-pdf/renderer
Category: Software & DevOps
Date: 2026-03-09

Outcome: The author reports working block editing, slash commands, template chips, image uploads, auto-save, and Markdown, HTML, and PDF export, while several interface and import features remain in progress.

## Steps

1. Started HawkDoc after encountering SuperDoc customization and performance limitations.
2. Built editor integrations with Claude assisting a large part of development.
3. Developed the export pipeline with Claude Code assistance.

Human oversight: The author lists working and unfinished features but does not describe code review or testing procedures.

Source: [ellizabeth on Hacker News](https://news.ycombinator.com/item?id=47309070)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-a-document-editor/
