Writing a compliant llms.txt with the editor: a form and Markdown workflow

Write from scratch or import from a site: maintain llms.txt with the llmstxtdb editor, with two editing modes, blocking of lossy mode switches, live validation and export.

About 2 min read

This is an llms.txt editor whose drafts are kept locally: drafts are stored only in the browser’s localStorage and the server keeps nothing; live validation sends the text to the server for a transient check and discards it afterwards; exporting is a local download or copy. Open the editor. To have an AI tool draft the file for you, see Generate llms.txt with your AI tool.

Task one: write from scratch

Form mode is filled in following the structure “project name (H1) → summary (blockquote) → sections (H2) → entries”. If you would rather write Markdown directly, switch to Markdown mode: both modes share the same data, so switching back and forth loses nothing.

Task two: import from an existing site

Enter a site root and the tool discovers /llms.txt candidates (with notes on partial failures). Once you pick one, it runs a complete check and extracts the structure (headings and links) into the form. Notes are not part of the structure, so you add them yourself.

What to do when a switch is blocked

When the text contains constructs the form cannot represent (code blocks, deeper headings, frontmatter, loose lists and so on), switching to the form is blocked and the reasons are listed. The content stays exactly as it is in Markdown mode and nothing is lost silently. Handle it in Markdown mode as prompted, or export directly.

Live validation and export

While you edit, the checker’s frozen rules are called automatically (with a 600 ms debounce); the server processes transiently and stores nothing. The proposal conclusion and the advice are visible immediately. Export a UTF-8 file or copy the full text. The full text comes only from what you provided.

Test environment and results

Environment: Node v24.18.0 / Chromium (jsdom component tests), tested on 2026-10-05. Switching a document containing ### Deep heading and a code block to the form was blocked with the reasons listed; a compliant document round-tripped between the two modes with byte-for-byte semantic fidelity; parsing a 1 MB input took about 0.7–1.1 seconds (the limit is 3 seconds); an old validation response arriving after the editor was cleared did not overwrite the current state (covered by a regression test).

When you are done, run a complete check with the online check, then consider submitting the site.