{"url": "https://llmstxt.org/", "titulek": "The /llms.txt file, v2 – llms-txt", "h1": "The /llms.txt file, v2", "popis": "A proposal to standardise on using an /llms.txt file to provide information to help agents use a website.", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "The /llms.txt file, v2 – llms-txt", "og:description": "A proposal to standardise on using an /llms.txt file to provide information to help agents use a website.", "og:image": "https://llmstxt.org//sample.png", "og:site_name": "llms-txt", "og:image:height": "718", "og:image:width": "1108"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Proposal"}, {"uroven": 2, "text": "Format"}, {"uroven": 2, "text": "Existing standards"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Directories"}, {"uroven": 2, "text": "Integrations"}, {"uroven": 2, "text": "Next steps"}], "markdown": "## Background\n\nAgents now use websites constantly: a coding agent fetches a library’s documentation to get an API call right, and a chat assistant with search reads pages to answer questions about a product. When this proposal was first written in 2024, this was largely a prediction. Today it is routine.\n\nBut web pages are built for people. An HTML page wraps its information in navigation, ads, and JavaScript, and converting it back into clean text is difficult and imprecise. Context windows, while larger than they were, are still too small for most websites in their entirety, and every wasted token costs time and money. Agents are best served by concise, expert-level information gathered in a single, accessible location.\n\nThis is v2 of the proposal, updated based on what I learned from two years of adoption: thousands of sites publish an llms.txt file, [documentation platforms generate one automatically](https://www.mintlify.com/docs/ai/llmstxt), and Chrome’s Lighthouse [audits sites for one](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt) as part of its agentic browsing checks. The AI labs themselves publish llms.txt files for their own developer docs: [OpenAI](https://developers.openai.com/llms.txt), [Anthropic](https://docs.anthropic.com/llms.txt), and [Gemini](https://ai.google.dev/gemini-api/docs/llms.txt). The [Changes](./changes.html) page describes what changed since v1, and why.\n\n## Proposal\n\nllms.txt logo\n\nWe propose adding a `/llms.txt` markdown file to websites to provide LLM-friendly content. The file can be placed at the site root, or at any path within it, covering the pages under that path. This file offers brief background information, guidance, and links to detailed markdown files.\n\nllms.txt markdown is human and LLM readable, but is also in a precise format allowing fixed processing methods (i.e. classical programming techniques such as parsers and regex).\n\nWe furthermore propose that pages with information that agents might need provide a clean markdown version of those pages at the same URL as the original page, either with `.md` appended (`page.html.md`) or with the extension replaced by `.md` (`page.md`). (URLs without file names should append `index.html.md` or `index.md` instead.)\n\nTo help clients find these files, we recommend using standard link relations: `rel=\"alternate\" type=\"text/markdown\"` points to the markdown version of a page, and `rel=\"describedby\"` points to the llms.txt file that covers it. (An llms.txt file describes all pages under its path, so `/docs/llms.txt` covers everything in `/docs/`.) These links can be provided as HTML `` elements, or as an HTTP `Link:` response header. The header form also works for non-HTML resources, such as the markdown files themselves, and can be added in web server or CDN configuration without modifying any pages. For example:\n\n```\nLink: ; rel=\"alternate\"; type=\"text/markdown\", ; rel=\"describedby\"\n```\n\nThe [FastHTML project](https://fastht.ml) follows these two proposals for its documentation. For instance, here is the [FastHTML docs llms.txt](https://www.fastht.ml/docs/llms.txt), placed at `/docs/` to cover just the documentation pages. And here is an example of a [regular HTML docs page](https://www.fastht.ml/docs/tutorials/by_example.html), along with exact same URL but with [a .md extension](https://www.fastht.ml/docs/tutorials/by_example.html.md).\n\nAgents are expected to view or search `llms.txt` to find the information they need, then follow the relevant links. The links in an llms.txt file should therefore point to LLM-friendly content, such as the markdown versions of pages described above. The file itself stays small enough to fit in context. The detail lives behind the links, and is fetched only when needed.\n\nllms.txt files are used most heavily for software documentation, where coding agents follow them to find API references and tutorials. The same structure works anywhere agents need a guided path into a site’s content: a business outlining its structure and policies, a personal site answering questions about someone’s CV, or a school providing access to course information.\n\nNote that all [nbdev](https://nbdev.fast.ai/) projects now create .md versions of all pages by default. All Answer.AI and fast.ai software projects using nbdev have had their docs regenerated with this feature. For an example, see the [markdown version](https://fastcore.fast.ai/docments.html.md) of [fastcore’s docments module](https://fastcore.fast.ai/docments.html).\n\n## Format\n\nAt the moment the most widely and easily understood format for language models is Markdown. Simply showing where key Markdown files can be found is a great first step. Providing some basic structure helps a language model to find where the information it needs can come from.\n\nThe `llms.txt` file is unusual in that it uses Markdown to structure the information rather than a classic structured format such as XML. The reason for this is that we expect many of these files to be read by language models and agents. Having said that, the information in llms.txt follows a specific format and can be read using standard programmatic-based tools.\n\nThe llms.txt file spec is for files named `llms.txt`, at the root path `/llms.txt` of a website or at any subpath (e.g. `/docs/llms.txt`). A file covers the URLs under its path, and where more than one file applies, agents should use the most specific one. A file following the spec contains the following sections as markdown, in the specific order:\n\n- An optional byte-order mark (BOM)\n- An H1 with the name of the project or site. This is the only required section\n- A blockquote with a short summary of the project, containing key information necessary for understanding the rest of the file\n- Zero or more markdown sections (e.g. paragraphs, lists, etc) of any type except headings, containing more detailed information about the project and how to interpret the provided files\n- Zero or more markdown sections delimited by H2 headers, containing “file lists” of URLs where further detail is available\n - Each “file list” is a markdown list, containing a required markdown hyperlink `[name](url)` , then optionally a `:` and notes about the file.\n\nHere is a mock example:\n\n```\n# Title > Optional description goes here Optional details go here ## Section name - [Link title](https://link_url): Optional link details ## Optional - [Link title](https://link_url)\n```\n\nThe “Optional” section is used, by convention, for secondary information: links an agent can skip when a shorter context is needed.\n\n## Existing standards\n\nllms.txt is designed to coexist with current web standards. While sitemaps list all pages for search engines, `llms.txt` offers a curated overview for LLMs. It can complement robots.txt by providing context for allowed content. The file can also reference structured data markup used on the site, helping LLMs understand how to interpret this information in context.\n\nThe approach of using a standard filename follows `/robots.txt` and `/sitemap.xml` at the site root. And just as `index.html` gives any path a conventional location for its human-readable entry point, `llms.txt` gives any path a conventional location for its LLM-readable overview. robots.txt and `llms.txt` have different purposes. robots.txt lets automated tools know what access to a site is considered acceptable, such as for search indexing bots. llms.txt information is instead used on demand, when an agent needs information about a topic while assisting a user. Our expectation was that llms.txt would mainly be useful for *inference* rather than *training*, and that is how it has been used, though training runs could take advantage of the information too.\n\nAn alternative would be the Well-Known URIs standard (RFC 8615), which reserves the `/.well-known/` prefix for metadata files like this one. But well-known URIs exist only at the origin root, and many authors control only a path on a shared host: a GitHub Pages project site, for example, can publish files in its own directory but can never add one to the host’s `/.well-known/`. Like `index.html`, an `llms.txt` describes the path where it sits, something a single root location cannot express. And anyone who can publish content at a path can provide one.\n\nsitemap.xml is a list of all the indexable human-readable information available on a site. This isn’t a substitute for `llms.txt` since it:\n\n- Often won’t have the LLM-readable versions of pages listed\n- Doesn’t include URLs to external sites, even though they might be helpful to understand the information\n- Will generally cover documents that in aggregate will be too large to fit in an LLM context window, and will include a lot of information that isn’t necessary to understand the site.\n\n## Example\n\nHere’s an example of `llms.txt`, in this case a cut down version of the file used for the FastHTML project (see also the [full version](https://www.fastht.ml/docs/llms.txt)):\n\n```\n# FastHTML > FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications. Important notes: - Although parts of its API are inspired by FastAPI, it is *not* compatible with FastAPI syntax and is not targeted at creating API services - FastHTML is compatible with JS-native web components and any vanilla JS library, but not with React, Vue, or Svelte. ## Docs - [FastHTML quick start](https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features - [HTMX reference](https://github.com/bigskysoftware/htmx/blob/master/www/content/reference.md): Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options ## Examples - [Todo list application](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py): Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns. ## Optional - [Starlette full documentation](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development. \n```\n\nTo create effective `llms.txt` files, consider these guidelines:\n\n- Use concise, clear language.\n- When linking to resources, include brief, informative descriptions.\n- Avoid ambiguous terms or unexplained jargon.\n- Test your file by asking an agent questions about your content, giving it only your llms.txt as a starting point.\n\n## Directories\n\nHere are a few directories that list the `llms.txt` files available on the web:\n\n- [llmstxt.site](https://llmstxt.site/)\n- [directory.llmstxt.cloud](https://directory.llmstxt.cloud/)\n- [llmstxthub.com](https://llmstxthub.com/)\n\n## Integrations\n\nMany documentation platforms and CMSs can generate an llms.txt file automatically:\n\n- [Mintlify](https://www.mintlify.com/docs/ai/llmstxt) - Docs platform that generates llms.txt and markdown page versions for every site it hosts\n- [GitBook](https://www.gitbook.com/blog/what-is-llms-txt) - Serves an llms.txt file for published docs sites\n- [Yoast SEO](https://yoast.com/features/llms-txt/) - WordPress plugin that generates and maintains an llms.txt file\n- [AIOSEO](https://aioseo.com/features/llms-txt/) - WordPress plugin with an llms.txt generator\n- [Wix](https://support.wix.com/en/article/understanding-your-sites-llmstxt-file) - Generates an llms.txt file for every Wix site\n\nAnd various libraries and plugins are available to integrate the llms.txt specification into your workflow:\n\n- [JavaScript Implementation](./llmstxt-js.html) - Sample JavaScript implementation\n- [`vitepress-plugin-llms`](https://github.com/okineadev/vitepress-plugin-llms) - VitePress plugin that automatically generates LLM-friendly documentation for the website following the llms.txt specification\n- [`docusaurus-plugin-llms`](https://github.com/rachfop/docusaurus-plugin-llms) - Docusaurus plugin for generating LLM-friendly documentation following the llmtxt.org standard\n- [Drupal LLM Support](https://www.drupal.org/project/llm_support) - A Drupal Recipe providing full support for the llms.txt proposal on any Drupal 10.3+ site\n- [`llms-txt-php`](https://github.com/raphaelstolt/llms-txt-php) - A library for writing and reading llms.txt Markdown files\n- [`VS Code PagePilot Extension`](https://dmux.github.io/pagepilot) - PagePilot is a VS Code Chat participant that automatically loads external context (documentation, APIs, README files) to provide enhanced responses.\n- [`server-llm-txt`](https://github.com/mcp-get/community-servers/tree/main/src/server-llm-txt) - MCP server that lets agents fetch and search llms.txt files\n\n## Next steps\n\nThe `llms.txt` specification is open for community input. A [GitHub repository](https://github.com/AnswerDotAI/llms-txt) hosts [this informal overview](https://github.com/AnswerDotAI/llms-txt/blob/main/nbs/index.qmd), allowing for version control and public discussion. A [community discord channel](https://discord.gg/aJPygMvPEN) is available for sharing implementation experiences and discussing best practices.", "znaku_textu": 13055, "slov": 1804, "odkazu": 83, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:08", "sha256": "069acdf1e65ca37d09c96d66c7d67d401b72ddc679c8aeefdcb2e828004f0954", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://www.mintlify.com/docs/ai/llmstxt", "https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt", "https://developers.openai.com/llms.txt", "https://docs.anthropic.com/llms.txt", "https://ai.google.dev/gemini-api/docs/llms.txt", "https://fastht.ml/", "https://www.fastht.ml/docs/llms.txt", "https://www.fastht.ml/docs/tutorials/by_example.html", "https://www.fastht.ml/docs/tutorials/by_example.html.md", "https://nbdev.fast.ai/", "https://fastcore.fast.ai/docments.html.md", "https://fastcore.fast.ai/docments.html", "https://llmstxt.site/", "https://directory.llmstxt.cloud/", "https://llmstxthub.com/", "https://www.gitbook.com/blog/what-is-llms-txt", "https://yoast.com/features/llms-txt/", "https://aioseo.com/features/llms-txt/", "https://support.wix.com/en/article/understanding-your-sites-llmstxt-file", "https://github.com/okineadev/vitepress-plugin-llms", "https://github.com/rachfop/docusaurus-plugin-llms", "https://www.drupal.org/project/llm_support", "https://github.com/raphaelstolt/llms-txt-php", "https://dmux.github.io/pagepilot", "https://github.com/mcp-get/community-servers/tree/main/src/server-llm-txt", "https://github.com/AnswerDotAI/llms-txt", "https://github.com/AnswerDotAI/llms-txt/blob/main/nbs/index.qmd", "https://discord.gg/aJPygMvPEN"]}
{"url": "https://llmstxt.org/changes.html", "titulek": "Changes – llms-txt", "h1": "Changes", "popis": "The /llms.txt file, helping language models use your website", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "Changes – llms-txt", "og:description": "The /llms.txt file, helping language models use your website", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "v2 (August 2026)"}], "markdown": "## v2 (August 2026)\n\nThe original llms.txt proposal was published in September 2024, when the idea that language models would routinely read websites was still speculative. Since then the community has taken to the proposal far more than I expected. Thousands of sites now publish an llms.txt file, [documentation platforms generate one automatically](https://www.mintlify.com/docs/ai/llmstxt), and coding agents use them reliably. That shift is what this revision reflects.\n\nAdoption brought requests, and the commonest was discoverability. Given a page, how does an agent find its markdown version, or the llms.txt file that covers it, without guessing? v2 answers with standard link relations: `rel=\"alternate\" type=\"text/markdown\"` points to a page’s markdown version, and `rel=\"describedby\"` points to the llms.txt file that covers it, provided as HTML `` elements or an HTTP `Link:` header.\n\nPractice also diverged from v1 in ways worth blessing. v1 specified one URL form for markdown versions, `.md` appended to the full page URL (`page.html.md`). Some publishing tools instead replace the extension (`page.md`), so v2 allows both. v1 permitted llms.txt files in subpaths without saying what that meant. v2 defines it: a file covers the pages under its path, and the most specific file applies. This is also what lets a site that only controls a path, such as a GitHub Pages project site, participate fully.\n\nv1 said nothing about how llms.txt should be consumed, and described the `llms_txt2ctx` tool for expanding a file into an LLM context. v2 instead states the expectation directly: agents view or search the llms.txt to find what they need, then follow the relevant links, which should point to LLM-friendly content. The context-expansion tooling is no longer part of the proposal, and with it goes the special meaning of the `Optional` section, which told those tools what to omit. Optional sections are still allowed, and remain a useful convention for secondary links, but they no longer carry mechanical semantics. Finally, the background and examples now describe how agents actually use websites, rather than predicting that they might.", "znaku_textu": 2140, "slov": 335, "odkazu": 14, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:15", "sha256": "6314bd28a3c56bf52529873b72ff70ff2a5215b02e30a6a05fd4a6102ca0ff06", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://www.mintlify.com/docs/ai/llmstxt"]}
{"url": "https://llmstxt.org/core.html", "titulek": "Python source – llms-txt", "h1": "Python source", "popis": "Source code for llms_txt Python module, containing helpers to create and use llms.txt files", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "Python source – llms-txt", "og:description": "Source code for llms_txt Python module, containing helpers to create and use llms.txt files", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": ["Code", "Python source"], "osnova": [{"uroven": 2, "text": "Introduction"}, {"uroven": 2, "text": "Reading"}, {"uroven": 3, "text": "search"}, {"uroven": 3, "text": "named_re"}, {"uroven": 3, "text": "opt_re"}, {"uroven": 3, "text": "Parse links"}, {"uroven": 3, "text": "parse_link"}, {"uroven": 3, "text": "Parse sections"}, {"uroven": 3, "text": "parse_llms_file"}, {"uroven": 2, "text": "XML conversion"}, {"uroven": 3, "text": "get_doc_content"}, {"uroven": 3, "text": "mk_ctx"}, {"uroven": 3, "text": "get_sizes"}, {"uroven": 3, "text": "create_ctx"}, {"uroven": 3, "text": "llms_txt2ctx"}], "markdown": "## Introduction\n\nThe llms.txt file spec is for files located in the path `llms.txt` of a website (or, optionally, in a subpath). `llms-sample.txt` is a simple example. A file following the spec contains the following sections as markdown, in the specific order:\n\n- An H1 with the name of the project or site. This is the only required section\n- A blockquote with a short summary of the project, containing key information necessary for understanding the rest of the file\n- Zero or more markdown sections (e.g. paragraphs, lists, etc) of any type, except headings, containing more detailed information about the project and how to interpret the provided files\n- Zero or more markdown sections delimited by H2 headers, containing “file lists” of URLs where further detail is available\n - Each “file list” is a markdown list, containing a required markdown hyperlink `[name](url)` , then optionally a `:` and notes about the file.\n\nHere’s the start of a sample llms.txt file we’ll use for testing:\n\n```\nsamp = Path('llms-sample.txt').read_text() print(samp[:480])\n```\n\n```\n# FastHTML\n\n> FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications.\n\nRemember:\n\n- Use `serve()` for running uvicorn (`if __name__ == \"__main__\"` is not needed since it's automatic)\n- When a title is needed with a response, use `Titled`; note that that already wraps children in `Container`, and already includes both the meta title as well as the H1 element\n```\n\n## Reading\n\nWe’ll implement `parse_llms_file` to pull out the sections of llms.txt into a simple data structure.\n\n---\n\n### search\n\n```\ndef search( pat, txt, flags:int=0 ):\n```\n\n*Dictionary of matched groups in `pat` within `txt`*\n\n---\n\n### named_re\n\n```\ndef named_re( nm, pat ):\n```\n\n*Pattern to match `pat` in a named capture group*\n\n---\n\n### opt_re\n\n```\ndef opt_re( s ):\n```\n\n*Pattern to optionally match `s`*\n\nWe’ll work “outside in” so we can test the innermost matches as we go.\n\n### Parse links\n\n```\nlink = '- [FastHTML quick start](https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md): A brief overview of FastHTML features'\n```\n\n```\ntitle = named_re('title', r'[^\\]]+') pat = fr'-\\s*\\[{title}\\]' search(pat, samp)\n```\n\n```\n{'title': 'FastHTML quick start'}\n```\n\n```\nurl = named_re('url', r'[^\\)]+') pat += fr'\\({url}\\)' search(pat, samp)\n```\n\n```\n{'title': 'FastHTML quick start',\n 'url': 'https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md'}\n```\n\n```\ndesc = named_re('desc', r'.*') pat += opt_re(fr':\\s*{desc}') search(pat, link)\n```\n\n```\n{'title': 'FastHTML quick start',\n 'url': 'https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md',\n 'desc': 'A brief overview of FastHTML features'}\n```\n\n---\n\n### parse_link\n\n```\ndef parse_link( txt ):\n```\n\n*Parse a link section from llms.txt*\n\n```\nparse_link(link)\n```\n\n```\n{'title': 'FastHTML quick start',\n 'url': 'https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md',\n 'desc': 'A brief overview of FastHTML features'}\n```\n\n```\nparse_link('-[foo](http://foo)')\n```\n\n```\n{'title': 'foo', 'url': 'http://foo', 'desc': None}\n```\n\n### Parse sections\n\n```\nsections = '''First bit. ## S1 -[foo](http://foo) - [foo2](http://foo2): stuff ## S2 - [foo3](http://foo3)'''\n```\n\n```\nstart,*rest = re.split(fr'^##\\s*(.*?$)', sections, flags=re.MULTILINE) start\n```\n\n```\n'First bit.\\n\\n'\n```\n\n```\nrest\n```\n\n```\n['S1',\n '\\n\\n-[foo](http://foo)\\n- [foo2](http://foo2): stuff\\n\\n',\n 'S2',\n '\\n\\n- [foo3](http://foo3)']\n```\n\n```\nd = dict(chunked(rest, 2)) d\n```\n\n```\n{'S1': '\\n\\n-[foo](http://foo)\\n- [foo2](http://foo2): stuff\\n\\n',\n 'S2': '\\n\\n- [foo3](http://foo3)'}\n```\n\n```\nlinks = d['S1'] links.strip()\n```\n\n```\n'-[foo](http://foo)\\n- [foo2](http://foo2): stuff'\n```\n\n```\n_parse_links(links)\n```\n\n```\n[{'title': 'foo', 'url': 'http://foo', 'desc': None},\n {'title': 'foo2', 'url': 'http://foo2', 'desc': 'stuff'}]\n```\n\n```\nstart, sects = _parse_llms(samp) start\n```\n\n```\n'# FastHTML\\n\\n> FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore\\'s `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications.\\n\\nRemember:\\n\\n- Use `serve()` for running uvicorn (`if __name__ == \"__main__\"` is not needed since it\\'s automatic)\\n- When a title is needed with a response, use `Titled`; note that that already wraps children in `Container`, and already includes both the meta title as well as the H1 element.'\n```\n\n```\ntitle = named_re('title', r'.+?$') summ = named_re('summary', '.+?$') summ_pat = opt_re(fr\"^>\\s*{summ}$\") info = named_re('info', '.*')\n```\n\n```\npat = fr'^#\\s*{title}\\n+{summ_pat}\\n+{info}' search(pat, start, (re.MULTILINE|re.DOTALL))\n```\n\n```\n{'title': 'FastHTML',\n 'summary': 'FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore\\'s `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications.',\n 'info': 'Remember:\\n\\n- Use `serve()` for running uvicorn (`if __name__ == \"__main__\"` is not needed since it\\'s automatic)\\n- When a title is needed with a response, use `Titled`; note that that already wraps children in `Container`, and already includes both the meta title as well as the H1 element.'}\n```\n\n---\n\n### parse_llms_file\n\n```\ndef parse_llms_file( txt ):\n```\n\n*Parse llms.txt file contents in `txt` to an `AttrDict`*\n\n```\nllmsd = parse_llms_file(samp) llmsd.summary\n```\n\n```\n'FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore\\'s `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications.'\n```\n\n```\nllmsd.sections.Examples\n```\n\n```\n[{'title': 'Todo list application', 'url': 'https://raw.githubusercontent.com/AnswerDotAI/fasthtml/main/examples/adv_app.py', 'desc': 'Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns.'}]\n```\n\n## XML conversion\n\nFor some LLMs such as Claude, XML format is preferred, so we’ll provide a function to create that format.\n\n---\n\n### get_doc_content\n\n```\ndef get_doc_content( url ):\n```\n\n*Fetch content from local file if in nbdev repo.*\n\n---\n\n### mk_ctx\n\n```\ndef mk_ctx( d, optional:bool=True, n_workers:NoneType=None ):\n```\n\n*Create a `Project` with a `Section` for each H2 part in `d`, optionally skipping the ‘optional’ section.*\n\n```\nctx = mk_ctx(llmsd) print(to_xml(ctx, do_escape=False)[:260]+'...')\n```\n\n```\n{'title': 'FastHTML quick start', 'url': 'https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md', 'desc': 'A brief overview of FastHTML features'}{'title': 'HTMX reference', 'url': 'https://raw.githubusercontent.com/bigskysoftware/htmx/master/www/content/reference.md', 'desc': 'Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options'}\n\n{'title': 'Starlette quick guide', 'url': 'https://gist.githubusercontent.com/jph00/e91192e9bdc1640f5421ce3c904f2efb/raw/61a2774912414029edaf1a55b506f0e283b93c46/starlette-quick.md', 'desc': {}}\n{'title': 'Todo list application', 'url': 'https://raw.githubusercontent.com/AnswerDotAI/fasthtml/main/examples/adv_app.py', 'desc': 'Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns.'}\n{'title': 'Starlette full documentation', 'url': 'https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md', 'desc': 'A subset of the Starlette documentation useful for FastHTML development.'}\nRemember:\n\n- Use `serve()` for running uvic...\n```\n\n---\n\n### get_sizes\n\n```\ndef get_sizes( ctx ):\n```\n\n*Get the size of each section of the LLM context*\n\n```\nget_sizes(ctx)\n```\n\n```\n{'docs': {'FastHTML quick start': 35321,\n 'HTMX reference': 28365,\n 'Starlette quick guide': 7936},\n 'examples': {'Todo list application': 16032},\n 'optional': {'Starlette full documentation': 48331}}\n```\n\n```\nPath('../fasthtml.md').write_text(to_xml(ctx, do_escape=False))\n```\n\n```\n137125\n```\n\n---\n\n### create_ctx\n\n```\ndef create_ctx( txt, optional:bool=False, n_workers:NoneType=None ):\n```\n\n*A `Project` with a `Section` for each H2 part in `txt`, optionally skipping the ‘optional’ section.*\n\n---\n\n### llms_txt2ctx\n\n```\ndef llms_txt2ctx( fname:str, # File name to read optional:bool_arg=False, # Include 'optional' section? n_workers:int=None, # Number of threads to use for parallel downloading save_nbdev_fname:str=None, # save output to nbdev `{docs_path}` instead of emitting to stdout ):\n```\n\n*Print a `Project` with a `Section` for each H2 part in file read from `fname`, optionally skipping the ‘optional’ section.*\n\n```\n!llms_txt2ctx llms-sample.txt > ../fasthtml.md\n```", "znaku_textu": 8487, "slov": 1039, "odkazu": 98, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:09", "sha256": "71a5d8a3c0b024f34d9164f431944102e2e3bd018e563faaf65cd2958946056e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new"]}
{"url": "https://llmstxt.org/domains.html", "titulek": "domains – llms-txt", "h1": "llms.txt in Different Domains", "popis": "The /llms.txt file, helping language models use your website", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "llms-txt", "og:description": "The /llms.txt file, helping language models use your website", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": ["Tutorials", "llms.txt in Different Domains"], "osnova": [{"uroven": 1, "text": "llms.txt in Different Domains"}, {"uroven": 2, "text": "Restaurants"}], "markdown": "# llms.txt in Different Domains\n\nThis page has some guidelines and suggestions for how different domains could utilize `llms.txt` to allow LLMs to better interface with their site if they so choose.\n\nRemember, when constructing your `llms.txt` you should “use concise, clear language. When linking to resources, include brief, informative descriptions. Avoid ambiguous terms or unexplained jargon.” Additionally, the best way to determine if your `llms.txt` works well with LLMs is to test it with them! Here is a minimal way to test Anthropic’s Claude against your `llms.txt`:\n\n```\n# /// script # requires-python = \">=3.8\" # dependencies = [ # \"claudette\", # \"llms-txt\", # \"requests\", # ] # /// from claudette import * from llms_txt import create_ctx import requests model = models[1] # Sonnet 3.5 chat = Chat(model, sp=\"\"\"You are a helpful and concise assistant.\"\"\") url = 'your_url/llms.txt' text = requests.get(url).text llm_ctx = create_ctx(text) chat(llm_ctx + '\\n\\nThe above is necessary context for the conversation.') while True: msg = input('Your question about the site: ') res = chat(msg) print('From Claude:', contents(res))\n```\n\nThe above script utilizes the relatively new [`uv`](https://docs.astral.sh/uv/) syntax for python scripts. If you install `uv`, you can simply run the above script with `uv run test_llms_txt.py` and it will handle installing the necessary library dependencies in an isolated python environment. Else you can install the requirements manually and run it like any ordinary python script with `python test_llms_txt.py`.\n\n## Restaurants\n\nHere is an example `llms.txt` that a restaurant could construct for consumption by LLMs:\n\n```\n# Nate the Great's Grill\n\n> Nate the Great's Grill is a popular destination off of Sesame Street that has been serving the community for over 20 years. We offer the best BBQ for a great price.\n\nHere are our weekly hours:\n\n- Monday - Friday: 9am - 9pm\n- Saturday: 11am - 9pm\n- Sunday: Closed\n\n## Menus\n\n- [Lunch Menu](https://host/lunch.html.md): Our lunch menu served from 11am to 4pm every day.\n- [Dinner Menu](https://host/dinner.html.md): Our dinner menu served from 4pm to 9pm every day.\n\n## Optional\n\n- [Dessert Menu](https://host/dessert.md): A subset of the Starlette docs\n```\n\nAnd here is an example lunch menu taken from [Franklin’s BBQ](https://franklinbbq.com/menu):\n\n```\n## By The Pound\n\n| Item | Price |\n| -------------- | ----------- |\n| Brisket | 34 |\n| Pork Spare Ribs | 30 |\n| Pulled Pork | 28 |\n\n## Drinks\n\n| Item | Price |\n| -------------- | ----------- |\n| Iced Tea | 3 |\n| Mexican Coke | 3 |\n\n## Sides\n\n| Item | Price |\n| -------------- | ----------- |\n| Potato Salad | 4 |\n| Slaw | 4 |\n```", "znaku_textu": 2453, "slov": 366, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:13", "sha256": "bf50635b0b83cd1a28f8902ec26310dca93bf8b766e76b4197f64061c052d0e5", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://docs.astral.sh/uv/", "https://franklinbbq.com/menu"]}
{"url": "https://llmstxt.org/ed.html", "titulek": "ed – llms-txt", "h1": "ed, the standard text editor", "popis": "The /llms.txt file, helping language models use your website", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "llms-txt", "og:description": "The /llms.txt file, helping language models use your website", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": ["Editors and IDEs", "ed, the standard text editor"], "osnova": [{"uroven": 1, "text": "ed, the standard text editor"}], "markdown": "# `ed`, the standard text editor\n\nIn order to understand how llms.txt can be used with editors and IDEs, let’s look at how `ed`, the [standard text editor](https://www.gnu.org/fun/jokes/ed-msg.html), could work (assuming it’s updated to use this proposal). In our example we will look at how the user might then tell `ed` to retrieve the LLM docs from [fastht.ml/docs](https://fastht.ml/docs), and then use the results to write a simple [FastHTML](https://fastht.ml) web app.\n\nEven if you use a non-standard editor or IDE such as vscode, Cursor, vim, or Emacs, your software’s interaction with `/llms.txt` would look similar to this general approach.\n\n```\n$ ed * H\n```\n\nOur user starts `ed` and enables helpful error messages (just for the purpose of this walkthru - obviously a real `ed` user doesn’t need “helpful error messages”).\n\n```\n* L fastht.ml/docs Checking for /llms.txt at fastht.ml/docs... Found /llms.txt. Parsing... Fetching URLs from \"Docs\" section... Fetching URLs from \"Examples\" section... Skipping \"Optional\" section for brevity. Creating XML-based context for Claude... Context created and loaded.\n```\n\nThe user invokes the hypothetical `L` (load) command, which in this LLM-enhanced version of `ed` retrieves and processes the `llms.txt` file. `ed` checks for the file (if it didn’t exist, it would fall back to scraping the HTML of the website the old-fashioned way), parses it, fetches the relevant URLs, and creates an XML-based context suitable for Claude (perhaps an `ed` config file could be used to choose what LLM to use, and would determine how the context is formatted). All of this happens with the characteristic silence of `ed`, broken only by these reassuring progress messages.\n\n```\n* x Create a simple FastHTML app which outputs 'Hello, World!', in a
. Analyzing context and prompt... Generating FastHTML app... App written to buffer.\n```\n\nNext, our user invokes the hypothetical `x` (eXecute AI) command, providing instructions for the LLM to create a simple FastHTML app. In the world of LLM-enhanced `ed`, this is understood as a request to generate code based on the given prompt and the previously loaded context.\n\n```\n* n 5 * p from fasthtml.common import * app,rt = fast_app() @rt def index(): return div(\"Hello, World!\") serve()\n```\n\nThe editor analyzes the loaded context along with the provided prompt, generates the FastHTML app, and writes it to the buffer. The user then views the generated app line count (`n`) and contents (`p`), marveling at how much functionality is packed into those 5 lines.\n\n```\n*w hello_world.py 5 *q\n```\n\nFinally, our user saves the app to a file and quits `ed`, presumably to run their new FastHTML app and reflect on the unexpected productivity boost provided by their trusty line editor.", "znaku_textu": 2700, "slov": 441, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:10", "sha256": "44c82d319c94fd7d7c7607348811a2d7709c6454e073cb851daa01af8da81795", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://www.gnu.org/fun/jokes/ed-msg.html", "https://fastht.ml/docs", "https://fastht.ml/"]}
{"url": "https://llmstxt.org/index.html", "titulek": "The /llms.txt file, v2 – llms-txt", "h1": "The /llms.txt file, v2", "popis": "A proposal to standardise on using an /llms.txt file to provide information to help agents use a website.", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "The /llms.txt file, v2 – llms-txt", "og:description": "A proposal to standardise on using an /llms.txt file to provide information to help agents use a website.", "og:image": "https://llmstxt.org//sample.png", "og:site_name": "llms-txt", "og:image:height": "718", "og:image:width": "1108"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Proposal"}, {"uroven": 2, "text": "Format"}, {"uroven": 2, "text": "Existing standards"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Directories"}, {"uroven": 2, "text": "Integrations"}, {"uroven": 2, "text": "Next steps"}], "markdown": "## Background\n\nAgents now use websites constantly: a coding agent fetches a library’s documentation to get an API call right, and a chat assistant with search reads pages to answer questions about a product. When this proposal was first written in 2024, this was largely a prediction. Today it is routine.\n\nBut web pages are built for people. An HTML page wraps its information in navigation, ads, and JavaScript, and converting it back into clean text is difficult and imprecise. Context windows, while larger than they were, are still too small for most websites in their entirety, and every wasted token costs time and money. Agents are best served by concise, expert-level information gathered in a single, accessible location.\n\nThis is v2 of the proposal, updated based on what I learned from two years of adoption: thousands of sites publish an llms.txt file, [documentation platforms generate one automatically](https://www.mintlify.com/docs/ai/llmstxt), and Chrome’s Lighthouse [audits sites for one](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt) as part of its agentic browsing checks. The AI labs themselves publish llms.txt files for their own developer docs: [OpenAI](https://developers.openai.com/llms.txt), [Anthropic](https://docs.anthropic.com/llms.txt), and [Gemini](https://ai.google.dev/gemini-api/docs/llms.txt). The [Changes](./changes.html) page describes what changed since v1, and why.\n\n## Proposal\n\nllms.txt logo\n\nWe propose adding a `/llms.txt` markdown file to websites to provide LLM-friendly content. The file can be placed at the site root, or at any path within it, covering the pages under that path. This file offers brief background information, guidance, and links to detailed markdown files.\n\nllms.txt markdown is human and LLM readable, but is also in a precise format allowing fixed processing methods (i.e. classical programming techniques such as parsers and regex).\n\nWe furthermore propose that pages with information that agents might need provide a clean markdown version of those pages at the same URL as the original page, either with `.md` appended (`page.html.md`) or with the extension replaced by `.md` (`page.md`). (URLs without file names should append `index.html.md` or `index.md` instead.)\n\nTo help clients find these files, we recommend using standard link relations: `rel=\"alternate\" type=\"text/markdown\"` points to the markdown version of a page, and `rel=\"describedby\"` points to the llms.txt file that covers it. (An llms.txt file describes all pages under its path, so `/docs/llms.txt` covers everything in `/docs/`.) These links can be provided as HTML `` elements, or as an HTTP `Link:` response header. The header form also works for non-HTML resources, such as the markdown files themselves, and can be added in web server or CDN configuration without modifying any pages. For example:\n\n```\nLink: ; rel=\"alternate\"; type=\"text/markdown\", ; rel=\"describedby\"\n```\n\nThe [FastHTML project](https://fastht.ml) follows these two proposals for its documentation. For instance, here is the [FastHTML docs llms.txt](https://www.fastht.ml/docs/llms.txt), placed at `/docs/` to cover just the documentation pages. And here is an example of a [regular HTML docs page](https://www.fastht.ml/docs/tutorials/by_example.html), along with exact same URL but with [a .md extension](https://www.fastht.ml/docs/tutorials/by_example.html.md).\n\nAgents are expected to view or search `llms.txt` to find the information they need, then follow the relevant links. The links in an llms.txt file should therefore point to LLM-friendly content, such as the markdown versions of pages described above. The file itself stays small enough to fit in context. The detail lives behind the links, and is fetched only when needed.\n\nllms.txt files are used most heavily for software documentation, where coding agents follow them to find API references and tutorials. The same structure works anywhere agents need a guided path into a site’s content: a business outlining its structure and policies, a personal site answering questions about someone’s CV, or a school providing access to course information.\n\nNote that all [nbdev](https://nbdev.fast.ai/) projects now create .md versions of all pages by default. All Answer.AI and fast.ai software projects using nbdev have had their docs regenerated with this feature. For an example, see the [markdown version](https://fastcore.fast.ai/docments.html.md) of [fastcore’s docments module](https://fastcore.fast.ai/docments.html).\n\n## Format\n\nAt the moment the most widely and easily understood format for language models is Markdown. Simply showing where key Markdown files can be found is a great first step. Providing some basic structure helps a language model to find where the information it needs can come from.\n\nThe `llms.txt` file is unusual in that it uses Markdown to structure the information rather than a classic structured format such as XML. The reason for this is that we expect many of these files to be read by language models and agents. Having said that, the information in llms.txt follows a specific format and can be read using standard programmatic-based tools.\n\nThe llms.txt file spec is for files named `llms.txt`, at the root path `/llms.txt` of a website or at any subpath (e.g. `/docs/llms.txt`). A file covers the URLs under its path, and where more than one file applies, agents should use the most specific one. A file following the spec contains the following sections as markdown, in the specific order:\n\n- An optional byte-order mark (BOM)\n- An H1 with the name of the project or site. This is the only required section\n- A blockquote with a short summary of the project, containing key information necessary for understanding the rest of the file\n- Zero or more markdown sections (e.g. paragraphs, lists, etc) of any type except headings, containing more detailed information about the project and how to interpret the provided files\n- Zero or more markdown sections delimited by H2 headers, containing “file lists” of URLs where further detail is available\n - Each “file list” is a markdown list, containing a required markdown hyperlink `[name](url)` , then optionally a `:` and notes about the file.\n\nHere is a mock example:\n\n```\n# Title > Optional description goes here Optional details go here ## Section name - [Link title](https://link_url): Optional link details ## Optional - [Link title](https://link_url)\n```\n\nThe “Optional” section is used, by convention, for secondary information: links an agent can skip when a shorter context is needed.\n\n## Existing standards\n\nllms.txt is designed to coexist with current web standards. While sitemaps list all pages for search engines, `llms.txt` offers a curated overview for LLMs. It can complement robots.txt by providing context for allowed content. The file can also reference structured data markup used on the site, helping LLMs understand how to interpret this information in context.\n\nThe approach of using a standard filename follows `/robots.txt` and `/sitemap.xml` at the site root. And just as `index.html` gives any path a conventional location for its human-readable entry point, `llms.txt` gives any path a conventional location for its LLM-readable overview. robots.txt and `llms.txt` have different purposes. robots.txt lets automated tools know what access to a site is considered acceptable, such as for search indexing bots. llms.txt information is instead used on demand, when an agent needs information about a topic while assisting a user. Our expectation was that llms.txt would mainly be useful for *inference* rather than *training*, and that is how it has been used, though training runs could take advantage of the information too.\n\nAn alternative would be the Well-Known URIs standard (RFC 8615), which reserves the `/.well-known/` prefix for metadata files like this one. But well-known URIs exist only at the origin root, and many authors control only a path on a shared host: a GitHub Pages project site, for example, can publish files in its own directory but can never add one to the host’s `/.well-known/`. Like `index.html`, an `llms.txt` describes the path where it sits, something a single root location cannot express. And anyone who can publish content at a path can provide one.\n\nsitemap.xml is a list of all the indexable human-readable information available on a site. This isn’t a substitute for `llms.txt` since it:\n\n- Often won’t have the LLM-readable versions of pages listed\n- Doesn’t include URLs to external sites, even though they might be helpful to understand the information\n- Will generally cover documents that in aggregate will be too large to fit in an LLM context window, and will include a lot of information that isn’t necessary to understand the site.\n\n## Example\n\nHere’s an example of `llms.txt`, in this case a cut down version of the file used for the FastHTML project (see also the [full version](https://www.fastht.ml/docs/llms.txt)):\n\n```\n# FastHTML > FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications. Important notes: - Although parts of its API are inspired by FastAPI, it is *not* compatible with FastAPI syntax and is not targeted at creating API services - FastHTML is compatible with JS-native web components and any vanilla JS library, but not with React, Vue, or Svelte. ## Docs - [FastHTML quick start](https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features - [HTMX reference](https://github.com/bigskysoftware/htmx/blob/master/www/content/reference.md): Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options ## Examples - [Todo list application](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py): Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns. ## Optional - [Starlette full documentation](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development. \n```\n\nTo create effective `llms.txt` files, consider these guidelines:\n\n- Use concise, clear language.\n- When linking to resources, include brief, informative descriptions.\n- Avoid ambiguous terms or unexplained jargon.\n- Test your file by asking an agent questions about your content, giving it only your llms.txt as a starting point.\n\n## Directories\n\nHere are a few directories that list the `llms.txt` files available on the web:\n\n- [llmstxt.site](https://llmstxt.site/)\n- [directory.llmstxt.cloud](https://directory.llmstxt.cloud/)\n- [llmstxthub.com](https://llmstxthub.com/)\n\n## Integrations\n\nMany documentation platforms and CMSs can generate an llms.txt file automatically:\n\n- [Mintlify](https://www.mintlify.com/docs/ai/llmstxt) - Docs platform that generates llms.txt and markdown page versions for every site it hosts\n- [GitBook](https://www.gitbook.com/blog/what-is-llms-txt) - Serves an llms.txt file for published docs sites\n- [Yoast SEO](https://yoast.com/features/llms-txt/) - WordPress plugin that generates and maintains an llms.txt file\n- [AIOSEO](https://aioseo.com/features/llms-txt/) - WordPress plugin with an llms.txt generator\n- [Wix](https://support.wix.com/en/article/understanding-your-sites-llmstxt-file) - Generates an llms.txt file for every Wix site\n\nAnd various libraries and plugins are available to integrate the llms.txt specification into your workflow:\n\n- [JavaScript Implementation](./llmstxt-js.html) - Sample JavaScript implementation\n- [`vitepress-plugin-llms`](https://github.com/okineadev/vitepress-plugin-llms) - VitePress plugin that automatically generates LLM-friendly documentation for the website following the llms.txt specification\n- [`docusaurus-plugin-llms`](https://github.com/rachfop/docusaurus-plugin-llms) - Docusaurus plugin for generating LLM-friendly documentation following the llmtxt.org standard\n- [Drupal LLM Support](https://www.drupal.org/project/llm_support) - A Drupal Recipe providing full support for the llms.txt proposal on any Drupal 10.3+ site\n- [`llms-txt-php`](https://github.com/raphaelstolt/llms-txt-php) - A library for writing and reading llms.txt Markdown files\n- [`VS Code PagePilot Extension`](https://dmux.github.io/pagepilot) - PagePilot is a VS Code Chat participant that automatically loads external context (documentation, APIs, README files) to provide enhanced responses.\n- [`server-llm-txt`](https://github.com/mcp-get/community-servers/tree/main/src/server-llm-txt) - MCP server that lets agents fetch and search llms.txt files\n\n## Next steps\n\nThe `llms.txt` specification is open for community input. A [GitHub repository](https://github.com/AnswerDotAI/llms-txt) hosts [this informal overview](https://github.com/AnswerDotAI/llms-txt/blob/main/nbs/index.qmd), allowing for version control and public discussion. A [community discord channel](https://discord.gg/aJPygMvPEN) is available for sharing implementation experiences and discussing best practices.", "znaku_textu": 13055, "slov": 1804, "odkazu": 83, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://llmstxt.org/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:11", "sha256": "069acdf1e65ca37d09c96d66c7d67d401b72ddc679c8aeefdcb2e828004f0954", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://www.mintlify.com/docs/ai/llmstxt", "https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt", "https://developers.openai.com/llms.txt", "https://docs.anthropic.com/llms.txt", "https://ai.google.dev/gemini-api/docs/llms.txt", "https://fastht.ml/", "https://www.fastht.ml/docs/llms.txt", "https://www.fastht.ml/docs/tutorials/by_example.html", "https://www.fastht.ml/docs/tutorials/by_example.html.md", "https://nbdev.fast.ai/", "https://fastcore.fast.ai/docments.html.md", "https://fastcore.fast.ai/docments.html", "https://llmstxt.site/", "https://directory.llmstxt.cloud/", "https://llmstxthub.com/", "https://www.gitbook.com/blog/what-is-llms-txt", "https://yoast.com/features/llms-txt/", "https://aioseo.com/features/llms-txt/", "https://support.wix.com/en/article/understanding-your-sites-llmstxt-file", "https://github.com/okineadev/vitepress-plugin-llms", "https://github.com/rachfop/docusaurus-plugin-llms", "https://www.drupal.org/project/llm_support", "https://github.com/raphaelstolt/llms-txt-php", "https://dmux.github.io/pagepilot", "https://github.com/mcp-get/community-servers/tree/main/src/server-llm-txt", "https://github.com/AnswerDotAI/llms-txt", "https://github.com/AnswerDotAI/llms-txt/blob/main/nbs/index.qmd", "https://discord.gg/aJPygMvPEN"]}
{"url": "https://llmstxt.org/intro.html", "titulek": "Python module & CLI – llms-txt", "h1": "Python module & CLI", "popis": "Read llms.txt files and create XML context documents for LLMs", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "Python module & CLI – llms-txt", "og:description": "Read llms.txt files and create XML context documents for LLMs", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": ["Code", "Python module & CLI"], "osnova": [{"uroven": 2, "text": "Install"}, {"uroven": 2, "text": "How to use"}, {"uroven": 3, "text": "CLI"}, {"uroven": 3, "text": "Python module"}, {"uroven": 3, "text": "Implementation and tests"}], "markdown": "Given an `llms.txt` file, this provides a CLI and Python API to parse the file and create an XML context file from it. The input file should follow this format:\n\n```\n# FastHTML\n\n> FastHTML is a python library which...\n\nWhen writing FastHTML apps remember to:\n\n- Thing to remember\n\n## Docs\n\n- [Surreal](https://host/README.md): Tiny jQuery alternative with Locality of Behavior\n- [FastHTML quick start](https://host/quickstart.html.md): An overview of FastHTML features\n\n## Examples\n\n- [Todo app](https://host/adv_app.py)\n\n## Optional\n\n- [Starlette docs](https://host/starlette-sml.md): A subset of the Starlette docs\n```\n\n## Install\n\n```\npip install llms-txt\n```\n\n## How to use\n\n### CLI\n\nAfter installation, `llms_txt2ctx` is available in your terminal.\n\nTo get help for the CLI:\n\n```\nllms_txt2ctx -h\n```\n\nTo convert an `llms.txt` file to XML context and save to `llms.md`:\n\n```\nllms_txt2ctx llms.txt > llms.md\n```\n\nPass `--optional True` to add the ‘optional’ section of the input file.\n\n### Python module\n\n```\nfrom llms_txt import *\n```\n\n```\nsamp = Path('llms-sample.txt').read_text()\n```\n\nUse `parse_llms_file` to create a data structure with the sections of an llms.txt file (you can also add `optional=True` if needed):\n\n```\nparsed = parse_llms_file(samp) list(parsed)\n```\n\n```\n['title', 'summary', 'info', 'sections']\n```\n\n```\nparsed.title,parsed.summary\n```\n\n```\n('FastHTML',\n 'FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore\\'s `FT` \"FastTags\" into a library for creating server-rendered hypermedia applications.')\n```\n\n```\nlist(parsed.sections)\n```\n\n```\n['Docs', 'Examples', 'Optional']\n```\n\n```\nparsed.sections.Optional[0]\n```\n\n```\n{ 'desc': 'A subset of the Starlette documentation useful for FastHTML ' 'development.', 'title': 'Starlette full documentation', 'url': 'https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md'}\n```\n\nUse `create_ctx` to create an LLM context file with XML sections, suitable for systems such as Claude (this is what the CLI calls behind the scenes).\n\n```\nctx = create_ctx(samp)\n```\n\n```\nprint(ctx[:300])\n```\n\n```\n\nRemember:\n\n- Use `serve()` for running uvicorn (`if __name__ == \"__main__\"` is not\n```\n\n### Implementation and tests\n\nTo show how simple it is to parse `llms.txt` files, here’s a complete parser in <20 lines of code with no dependencies:\n\n```\nfrom pathlib import Path import re,itertools def chunked(it, chunk_sz): it = iter(it) return iter(lambda: list(itertools.islice(it, chunk_sz)), []) def parse_llms_txt(txt): \"Parse llms.txt file contents in `txt` to a `dict`\" def _p(links): link_pat = '-\\s*\\[(?P[^\\]]+)\\]\\((?P[^\\)]+)\\)(?::\\s*(?P.*))?' return [re.search(link_pat, l).groupdict() for l in re.split(r'\\n+', links.strip()) if l.strip()] start,*rest = re.split(fr'^##\\s*(.*?$)', txt, flags=re.MULTILINE) sects = {k: _p(v) for k,v in dict(chunked(rest, 2)).items()} pat = '^#\\s*(?P.+?$)\\n+(?:^>\\s*(?P.+?$)$)?\\n+(?P.*)' d = re.search(pat, start.strip(), (re.MULTILINE|re.DOTALL)).groupdict() d['sections'] = sects return d\n```\n\nWe have provided a test suite in `tests/test-parse.py` and confirmed that this implementation passes all tests.", "znaku_textu": 3301, "slov": 421, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:14", "sha256": "915e497ddcdab678327d4d901407ed5ca257aadcf25a2e98d4157336e99f1704", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new"]}
{"url": "https://llmstxt.org/llmstxt-js.html", "titulek": "llms.txt Parser in JavaScript", "h1": "llms.txt Parser in JavaScript", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "llms.txt Parser in JavaScript"}, {"uroven": 2, "text": "Input:"}, {"uroven": 2, "text": "Parser Output:"}], "markdown": "# llms.txt Parser in JavaScript\n\nThis page demonstrates a JavaScript implementation of the llms.txt parser. View the source to see the JavaScript being run here. When you're done, you can [return home](/).\n\n## Input:\n\n## Parser Output:", "znaku_textu": 226, "slov": 34, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:16", "sha256": "94dc5549e665e1ae90b8b166eecae5657731454a0dd1f2fd9974e123bbf91315", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []}
{"url": "https://llmstxt.org/nbdev.html", "titulek": "How to help LLMs understand your nbdev project – llms-txt", "h1": "How to help LLMs understand your nbdev project", "popis": "A practical guide to making your nbdev library agent-friendly using llms.txt, with automation techniques and implementation examples.", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "How to help LLMs understand your nbdev project – llms-txt", "og:description": "A practical guide to making your nbdev library agent-friendly using llms.txt, with automation techniques and implementation examples.", "og:site_name": "llms-txt"}, "jsonld": [], "drobecky": ["Tutorials", "How to help LLMs understand your nbdev project"], "osnova": [{"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "The key ingredient: llms.txt"}, {"uroven": 3, "text": "Adding resource sections"}, {"uroven": 3, "text": "The Optional section"}, {"uroven": 2, "text": "Enhancing context with API reference"}, {"uroven": 2, "text": "Configuration"}, {"uroven": 2, "text": "Learning from examples"}], "markdown": "## Overview\n\nThis tutorial demonstrates how to add `llms.txt` to your nbdev project, creating a clear interface between your code and the agents that use it. nbdev already publishes markdown versions of every documentation page by default, so the resources your llms.txt links to are ready-made.\n\nWhile this guide focuses on `nbdev`, the underlying principles and tools are framework-agnostic and can help make any codebase more accessible to agents.\n\nLet’s explore how to implement this.\n\n## The key ingredient: llms.txt\n\nThe foundation of LLM-friendly documentation is the `llms.txt` file. At its core, it is just a Markdown file with information about your library found at a specific URL (root of your site followed by `/llms.txt`).\n\nHowever, it needs to follow a certain structure as outlined in the [llms.txt](https://llmstxt.org/#format) format.\n\nDo not be intimidated by the specification, though. In reality, it offers a lot of flexibility and by conforming to it you’ll gain access to several very helpful tools that we will look at in a second.\n\nFirst, let’s start working on our `llms.txt` file. If you would like to, you can open your favorite editor and start working on an `llms.txt` for your library as we go along.\n\nHere is how the `llms.txt` file could begin:\n\n```\n# FastHTML > FastHTML is a python library which... When writing FastHTML apps remember to: - Thing to remember\n```\n\nThe required elements are:\n\n- the H1 header (FastHTML)\n- a blockquote with a short summary of the project (FastHTML is a python library which…)\n\nAnd they can optionally be followed by zero or more paragraphs and lists. Usually, this is the place where you would add a short description of your library.\n\nThe description can be as simple as this (this is an excerpt from the [llms.txt](https://fastcore.fast.ai/llms.txt) for [fastcore](https://fastcore.fast.ai/)):\n\n```\nHere are some tips on using fastcore:\n\n- **Liberal imports**: Utilize `from fastcore.module import *` freely. The library is designed for safe wildcard imports.\n- **Enhanced list operations**: Substitute `list` with `L`. This provides advanced indexing, method chaining, and additional functionality while maintaining list-like behavior.\n- **Extend existing classes**: Apply the `@patch` decorator to add methods to classes, including built-ins, without subclassing. This enables more flexible code organization.\n```\n\nBelow are a few ideas on how to make writing the description feel even more seamless:\n\n- Consider the content you already have that can be used as a starting point (e.g. your project’s README, blog posts and articles, social media discussions, etc.)\n- Think of how you would describe your library to a new team member — this often yields the right balance of precision and comprehension.\n- Use an LLM to help you synthetize content from multiple sources into cohesive prose (though you might need to do some post-processing to combat the LLM’s tendency to be verbose).\n\n### Adding resource sections\n\nAfter the optional description, you can include zero or more sections starting with an H2 heading and containing links to supplementary resources.\n\nMarkdown files are strongly recommended here as they offer a good balance of structure and readability. You could attempt linking to other formats, but your results may vary. For instance, HTML tends to be verbose, and formats like CSV rarely contain information that lends itself well to documenting functionality.\n\nHere’s an example of what this section might look like:\n\n```\n## Docs - [Surreal](https://host/README.md): Tiny jQuery alternative with Locality of Behavior - [FastHTML quick start](https://host/quickstart.html.md): An overview of FastHTML features ## Examples - [Todo app](https://host/adv_app.py)\n```\n\n### The Optional section\n\nIf you’d like to, you can include a section with `Optional` as the heading. Use it for secondary resources: things an agent only needs for a deeper dive, and can skip when context is tight.\n\nHere is a small example of the `Optional` section:\n\n```\n## Optional - [Starlette docs](https://host/starlette-sml.md): A subset of the Starlette docs\n```\n\nYour `llms.txt` file is now complete! Time to give yourself a pat on the back for a job well done and let’s move on to the next, automated step.\n\n## Enhancing context with API reference\n\nWhile LLMs generally understand high-level concepts, they often struggle with implementation details, especially when their training data is outdated. Providing a comprehensive list of your library’s symbols - functions, classes, and their documentation - helps bridge this gap.\n\nThis is where the [pysym2md](https://github.com/AnswerDotAI/pysym2md) library enters the picture. It generates a complete API reference in Markdown, extracting existing docstrings along the way.\n\nThis is a short excerpt from the [apilist.txt](https://fastcore.fast.ai/apilist.txt) for `fastcore`:\n\n```\n# fastcore Module Documentation ## fastcore.ansi > Filters for processing ANSI colors. - `def strip_ansi(source)` Remove ANSI escape codes from text. - `def ansi2html(text)` Convert ANSI colors to HTML colors. - `def ansi2latex(text)` Convert ANSI colors to LaTeX colors.\n```\n\nThe tool works great even with larger libraries. For instance, generating the API reference for numpy requires just one command:\n\n```\npysym2md numpy\n```\n\nTo implement this in your project, generate an `apilist.txt`, serve it alongside your documentation, and reference it from your `llms.txt` file.\n\n## Configuration\n\nThe final step is to configure your nbdev project to generate and serve these files. This requires three changes:\n\n1. Add your `llms.txt` file to the `nbs` directory of your project.\n2. Add the required dependencies to `settings.ini`:\n\n```\ndev_requirements = pysym2md\n```\n\n1. Configure Quarto’s build process in `nbs/_quarto.yml` :\n\n```\nproject:\n type: website\n pre-render:\n - pysym2md --output-file apilist.txt nbdev\n resources:\n - \"*.txt\"\n```\n\nRemember to manually add a link to the generated `apilist.txt` in your `llms.txt` file. Once you commit these changes and rebuild your docs, your library will be ready for deeper, more accurate conversations with LLMs!\n\n## Learning from examples\n\nIt is often useful to study how others went about implementing the thing we are working on. The [fastcore](https://fastcore.fast.ai/llms.txt) and [FastHTML](https://fastht.ml/docs/) projects offer a good reference, and you can find additional examples in the [llmstxt.site](https://llmstxt.site/) and [llmstxt.cloud](https://directory.llmstxt.cloud/) directories.\n\nProviding the right context opens up new possibilities for AI-assisted development and exploring topics you might want to learn more about. We hope this guide helps you and the users of your library take advantage of these exciting new tools.", "znaku_textu": 6588, "slov": 985, "odkazu": 60, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 03:22:12", "sha256": "1429c31183f8ba6ef7c844ec08aac07700d1d4e330c252602265f17509857d65", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/answerdotai/llms-txt", "https://x.com/answerdotai", "https://github.com/AnswerDotAI/llms-txt/issues/new", "https://fastcore.fast.ai/llms.txt", "https://fastcore.fast.ai/", "https://github.com/AnswerDotAI/pysym2md", "https://fastcore.fast.ai/apilist.txt", "https://fastht.ml/docs/", "https://llmstxt.site/", "https://directory.llmstxt.cloud/"]}