feat: llms.txt should include full page content, not just TOC
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- Avg merge
- 12h 29m
- Merged PRs (30d)
- 12
Description
Problem
`src/server/routes/llms.txt.ts` and `src/lib/llms.ts` currently generate a table-of-contents-style output with just titles and URLs. The actual page content is not included, making the `llms.txt` output insufficient for LLM consumption.
`get-llm-text.ts` does fetch processed page content for individual pages, but the index route only lists titles.
Expected Behavior
The `llms.txt` endpoint should follow the emerging `llms.txt` convention:
- `/llms.txt` — index with titles, descriptions, and URLs
- `/llms-full.txt` — full content dump of all pages (for smaller sites)
- Individual page `.md` routes already work via `[...slug].md.ts`
The index should at minimum include page descriptions alongside titles.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/server/routes/llms.txt.ts and src/lib/llms.ts, then compare get-llm-text.ts and [...slug].md.ts to understand how processed page content is obtained. Verify that /llms.txt includes titles, descriptions, and URLs, while /llms-full.txt includes all page content and individual .md routes remain working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100