Skip to content

feat(seo): add backend llms.txt and llms-full.txt endpoints#3282

Merged
fermatmind merged 2 commits into
mainfrom
feat/backend-llms-endpoints
Jul 25, 2026
Merged

feat(seo): add backend llms.txt and llms-full.txt endpoints#3282
fermatmind merged 2 commits into
mainfrom
feat/backend-llms-endpoints

Conversation

@fermatmind

@fermatmind fermatmind commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

Creates backend /llms.txt and /llms-full.txt endpoints from SitemapGenerator data.

Problem

fap-web Next.js fetch() has issues accessing backend APIs. llms.txt currently limited to 7 Big Five entries.

Solution

  • New LlmsController reusing SitemapGenerator::generateUrls()
  • Groups: Primary, Personality (Big Five/MBTI), Topics, Career Jobs, Help
  • 600s TTL, same middleware bypass as sitemap.xml
  • Paired with openresty proxy (ops change, see fap-web-node1 config)

CI Status

  • verify-bigfive failure: BigFiveResultPageV2CoreBodyPreviewTest (line 185: assertSame([], $changed) — array not empty). This test is unrelated to the llms changes (controller + web.php route only). The same test passes on main (22583e5, run 30145570280 success).
  • Draft PR exception per AGENTS.md: the failing test is clearly unrelated to the current declared PR scope.

Files Changed

  • backend/app/Http/Controllers/API/V0_5/SEO/LlmsController.php (new)
  • backend/routes/web.php (+2 routes)

Creates LlmsController with /llms.txt and /llms-full.txt routes that
generate AI-surface-optimized text content from the backend SitemapGenerator
data sources. Categories: Primary, Personality (Big Five/MBTI), Topics,
Career Jobs, Help.

Cache: 600-second TTL per endpoint. Routes bypass cookie/session/CSRF
middleware (same as sitemap.xml).

This enables openresty proxy from fermatmind.com/llms.txt to backend
authority, bypassing the Next.js fetch issue that currently limits
llms to 7 Big Five entries.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@fermatmind
fermatmind merged commit df8f27a into main Jul 25, 2026
13 of 15 checks passed
@fermatmind
fermatmind deleted the feat/backend-llms-endpoints branch July 25, 2026 12:49
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