Skip to main content

llms.txt Support

llms.txt is a community standard for publishing an index of a site's documentation pages — similar to sitemap.xml but targeted at language models.

What It Is

A plain-text file at {docs_root}/llms.txt that lists the documentation pages for a project, one per line, with a short title:

# FastAPI

## Docs

- [Tutorial - User Guide](https://fastapi.tiangolo.com/tutorial/): Main tutorial.
- [Advanced User Guide](https://fastapi.tiangolo.com/advanced/): Advanced usage.
- [Deployment](https://fastapi.tiangolo.com/deployment/): How to deploy.
...

How DocuLayer Uses It

When llms.txt is present, DocuLayer:

  1. Fetches and parses the index (one HTTP request)
  2. Keyword-scores each entry against your query using term overlap
  3. Fetches only the top 1–3 pages most likely to answer the query

This replaces naive crawling of the entire docs site.

Without llms.txt: fetch root page → parse links → fetch each → search
With llms.txt: parse index → score entries → fetch 1–3 pages → search

Packages with Built-in Support

These packages have hardcoded llms.txt URLs in DocuLayer's shortcut table — zero extra resolution steps:

PackageDocs URL
anthropicdocs.anthropic.com
astrodocs.astro.build
fastapifastapi.tiangolo.com
httpxwww.python-httpx.org
langchainpython.langchain.com
nextjsnextjs.org/docs
openaiplatform.openai.com/docs
pydanticdocs.pydantic.dev
reactreact.dev
shadcnui.shadcn.com
supabasesupabase.com/docs
sveltesvelte.dev/docs
tailwindcsstailwindcss.com/docs
vitevitejs.dev/guide
vuevuejs.org/guide

Any URL Works

Passing a direct URL — including to a site not in the table — triggers automatic llms.txt probing:

doculayer fetch https://my-internal-docs.company.com

DocuLayer will probe https://my-internal-docs.company.com/llms.txt and use it if found, or fall back to HTML parsing of the root page.

Publishing llms.txt for Your Project

If you maintain a documentation site, publish an llms.txt at the root. The format is simple:

# Project Name

## Section Name

- [Page Title](https://your-docs.com/page/): Short description.
- [Another Page](https://your-docs.com/other/): Another description.

DocuLayer will discover it automatically for any user who passes your docs URL.