Skip to content

Serve LLM-readable site content (llms.txt)#4

Open
rawritude wants to merge 1 commit into
reflector-network:masterfrom
rawritude:pr-llms
Open

Serve LLM-readable site content (llms.txt)#4
rawritude wants to merge 1 commit into
reflector-network:masterfrom
rawritude:pr-llms

Conversation

@rawritude

Copy link
Copy Markdown

Adds machine-readable content for LLMs and crawlers, since the site is a client-rendered SPA that returns only a title to non-JS clients.

  • /llms.txt — generated from the site navigation by scripts/build-llms.mjs (wired as a prebuild step). A drift guard fails the build if a page has no description.
  • /llms-full.txt — hand-authored full page text.

Both are static files served at the site root; no runtime change.

Tests: node --test tests/llms.test.cjs

Add /llms.txt, generated from the site navigation with a drift guard that fails the
build if a page has no description, and a hand-authored /llms-full.txt with the full
page text. Both are static files served at the site root; no runtime change.

Run the drift-guard test with: node --test tests/llms.test.cjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant