### llms.txt File Structure Example Source: https://www.llms-text.com/blog/what-is-llms-txt Illustrates the typical structure of an llms.txt file using Markdown, including a main heading, site summary, and categorized content sections. This format is designed for easy parsing by AI agents. ```Markdown # Example Website > A brief summary of the website's purpose and content. ## Documentation * [Getting Started](/docs/getting-started) * [API Reference](/docs/api) ## Products * [Product A](/products/a) * [Product B](/products/b) ## Policies * [Privacy Policy](/policies/privacy) * [Terms of Service](/policies/terms) ``` -------------------------------- ### Meta Tags Configuration Source: https://www.llms-text.com/blog/sites-using-llms-txt Configuration snippet for meta tags, including character set, viewport settings, and theme color, commonly used in web applications for SEO and display. ```javascript self.__next_f.push([1, "a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#ED5F45\"}],[\"$\",\"meta\",\"3\",{\"name\":\"color-scheme\",\"content\":\"light\"}]]\n7:null\n"]) ``` -------------------------------- ### llms-full.txt Content Example Source: https://www.llms-text.com/blog/what-is-llms-txt The llms-full.txt file is a companion to llms.txt, containing the consolidated text of all pages referenced in the main llms.txt file. This allows AI systems to ingest all key content efficiently from a single source. ```text This is the consolidated text from the homepage. It describes our company and its mission... This is the text from the About Us page. It details our history, team, and values... This is the text from the Products page. It lists and describes our various offerings... ``` -------------------------------- ### llms.txt File Structure Example Source: https://www.llms-text.com/blog/what-is-llms-txt An llms.txt file provides a structured guide for Large Language Models (LLMs) to understand a website's content. It typically uses a simple, human-readable format like Markdown, listing important pages or topics. ```markdown # llms.txt ## Important Pages - [Homepage](https://www.example.com/) - [About Us](https://www.example.com/about) - [Products](https://www.example.com/products) ## Key Topics - AI Integration - Machine Learning - Data Science ``` -------------------------------- ### Vercel Next.js Runtime Initialization Source: https://www.llms-text.com/blog/sites-using-llms-txt This snippet represents internal Vercel/Next.js runtime initialization code, likely related to script loading, component registration, or data serialization within the Next.js framework. It's part of the client-side bootstrapping process. ```javascript (self.__next_f=self.__next_f||[]).push([0])self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[4065,[\"874\",\"static/chunks/874-ba0121bca8e93795.js\",\"789\",\"static/chunks/789-351580dff524c77f.js\",\"816\",\"static/chunks/816-b6f6f4e8f941e39b.js\",\"774\",\"static/chunks/774-378869c1f55b1cd7.js\",\"644\",\"static/chunks/644-498ce3365a3ed1da.js\",\"177\",\"static/chunks/app/layout-ea8c3dddf7670e60.js\"],\"default\"]\n3:I[7555,[],\"\"]\n4:I[1295,[],\"\"]\n6:I[9665,[],\"OutletBoundary\"]\n9:I[9665,[],\"ViewportBoundary\"]\nb:I[9665,[],\"MetadataBoundary\"]\nd:I[6614,[],\"\"]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/393d111df3bd0f4c.css\",\"style\"]\n"],self.__next_f.push([1,"0:{\"P\":null,\"b\":\"UQ1hh-Yb2r-MTAS4z-6uP\",\"p\":\"\",\"c\":[\"\",\"blog\",\"sites-using-llms-txt\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"blog\",{\"children\":[[\"slug\",\"sites-using-llms-txt\",\"d\"]],{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/393d111df3bd0f4c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"},\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],{\"children\":[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],{\"children\":[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]}]}]}]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]],{\"children\":[\"blog\",[\"$\",\"$1\",\"c\",{\"children\":[null,[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]]},{\"children\":[[\"slug\",\"sites-using-llms-txt\",\"d\"]],{\"children\":[\"$\",\"$1\",\"c\",{\"children\":[null,[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]]},{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[\"$L5\",\"$undefined\",null,[[\"$\",\"$L6\",null,{\"children\":[\"$L7\",\"$L8\",null]}]],{},null,false]]},null,false]]},[null,[],[]],false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$1\",\"V6CjuXiloBImnYqkuEy-o\",{\"chi ``` -------------------------------- ### JavaScript Theme Switcher Source: https://www.llms-text.com/blog/sites-using-llms-txt This JavaScript code snippet handles theme switching functionality for a web page. It allows toggling between 'light' and 'dark' themes, persisting the user's preference in local storage and applying it to the document element. ```javascript ((e,t,a,r,n,i,o,s)=>{let d=document.documentElement,l=["light","dark"];function p(t){var a;(Array.isArray(e)?e:[e]).forEach(e=>{let a="class"===e,r=a&&i?n.map(e=>i[e]||e):n;a?(d.classList.remove(...r),d.classList.add(i&&i[t]?i[t]:t)):d.setAttribute(e,t)}),a=t,s&&l.includes(a)&&(d.style.colorScheme=a)}if(r)p(r);else try{let e=localStorage.getItem(t)||a,r=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;p(r)}catch(e){}})("class","theme","system",null,["light","dark"],null,true,true) ``` -------------------------------- ### llms.txt and llms-full.txt Specification Source: https://www.llms-text.com/blog/sites-using-llms-txt The llms.txt and llms-full.txt files are conventions for structuring website content to be easily navigated and understood by Large Language Models (LLMs). They help AI systems fetch relevant context, especially for technical documentation. Companies use these files to optimize AI interactions with their vast knowledge bases, with llms-full.txt potentially offering more detailed or product-specific information. ```APIDOC llms.txt / llms-full.txt Specification: Purpose: To provide structured, machine-readable content for AI navigation of websites. Usage: - Websites implement these files to help LLMs understand and access their content more efficiently. - Useful for technical documentation, code examples, and API references. - llms-full.txt may contain more comprehensive or specific information than llms.txt. Examples: - Cloudflare uses llms.txt and multiple llms-full.txt files for different services. - Anthropic, Vercel, Supabase, and ElevenLabs are also adopters. Adoption: - Growing grassroots adoption, particularly in tech, AI/ML, developer tools, and SaaS sectors. - Community directories list hundreds of live implementations. ``` -------------------------------- ### Next.js Initialization Snippet Source: https://www.llms-text.com/blog/what-is-llms-txt This JavaScript code snippet appears to be part of a Next.js application's initialization process. It manages the application's internal state and potentially loads necessary modules or configurations for routing and rendering. ```javascript (self.__next_f=self.__next_f||[]).push([0]) ``` -------------------------------- ### Theme Switching JavaScript Source: https://www.llms-text.com/blog/what-is-llms-txt A JavaScript function designed to manage website theme switching. It manipulates document classes or attributes based on user preferences or system settings, supporting light and dark modes. ```javascript (e,t,a,r,n,i,o,s)=>{let d=document.documentElement,l=["light","dark"];function p(t){var a;(Array.isArray(e)?e:["class"]===e?n.map(e=>i[e]||e):n);a?(d.classList.remove(...r),d.classList.add(i&&i[t]?i[t]:t)):d.setAttribute(e,t)}),a=t,s&&l.includes(a)&&(d.style.colorScheme=a)}if(r)p(r);else try{let e=localStorage.getItem(t)||a,r=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;p(r)}catch(e){}})("class","theme","system",null,["light","dark"],null,true,true) ``` -------------------------------- ### Next.js Meta Tag Injection Source: https://www.llms-text.com/blog/what-is-llms-txt This JavaScript snippet demonstrates the injection of meta tags into a web page, commonly seen in frameworks like Next.js. It includes essential tags like charset, viewport, and theme-color, crucial for SEO and responsive design. ```javascript self.__next_f.push([1,"a:["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#ED5F45"}],["$","meta","3",{"name":"color-scheme","content":"light"}]] 7:null ``` -------------------------------- ### Article Schema Markup Source: https://www.llms-text.com/blog/sites-using-llms-txt Schema.org markup for an article, providing structured data about the content, including headline, author, publisher, publication dates, and a detailed description. This helps search engines and AI understand the article's context. ```json { "@context": "https://schema.org", "@type": "Article", "headline": "Which sites use llms.txt?", "image": "https://directus.vereb.ca/assets/df2f73a8-df6b-43fd-92a3-57b1ffbb87b4", "datePublished": "2025-07-25T15:51:46.865Z", "dateModified": "2025-07-25T16:27:47.965Z", "author": { "@type": "Person", "name": "llms-text.com Team", "url": "https://www.llms-text.com/about" }, "publisher": { "@type": "Organization", "name": "llms-text.com", "url": "https://www.llms-text.com/", "logo": { "@type": "ImageObject", "url": "https://www.llms-text.com/og-image.webp" } }, "description": "\u003cul\u003e\\n\u003cli dir=\\\"ltr\\\" aria-level=\\\"1\\\"\u003e\\n\u003cp dir=\\\"ltr\\\" role=\\\"presentation\\\"\u003e\u003cstrong\u003eRapid Grassroots Adoption\u003c/strong\u003e: While not yet an official standard, hundreds of websites, especially in the tech industry, have already implemented llms.txt.\u003c/p\u003e\\n\u003c/li\u003e\\n\u003cli dir=\\\"ltr\\\" aria-level=\\\"1\\\"\u003e\\n\u003cp dir=\\\"ltr\\\" role=\\\"presentation\\\"\u003e\u003cstrong\u003eTech Leaders are Early Adopters\u003c/strong\u003e: Companies with extensive documentation like Cloudflare, Anthropic, and Vercel use it to help AI navigate their complex content.\u003c/p\u003e\\n\u003c/li\u003e\\n\u003cli dir=\\\"ltr\\\" aria-level=\\\"1\\\"\u003e\\n\u003cp dir=\\\"ltr\\\" role=\\\"presentation\\\"\u003e\u003cstrong\u003ePopular with Developer Tools\u003c/strong\u003e: Platforms like Supabase and ElevenLabs use it to ensure AI provides accurate code and API information to their developer audiences.\u003c/p\u003e\\n\u003c/li\u003e\\n\u003cli dir=\\\"ltr\\\" aria-level=\\\"1\\\"\u003e\\n\u003cp dir=\\\"ltr\\\" role=\\\"presentation\\\"\u003e\u003cstrong\u003eA Growing Directory Exists\u003c/strong\u003e: You can find a comprehensive list of over \u003ca href=\\\"https://www.llms-text.com/directory\\\" target=\\\"\_blank\\\" rel=\\\"noopener\\\"\u003e784 live examples\u003c/a\u003e in the llms.txt directory on llms-text.com to see how others are using it.\u003c/p\u003e\\n\u003c/li\u003e\\n\u003cli dir=\\\"ltr\\\" aria-level=\\\"1\\\"\u003e\\n\u003cp dir=\\\"ltr\\\" role=\\\"presentation\\\"\u003e\u003cstrong id=\\\"docs-internal-guid-1ca5328e-7fff-71fa-8596-0bde376ac61e\\\"\u003eThe Trend is Growing\u003c/strong\u003e: The strong adoption by innovative companies indicates a clear trend toward making web content more structured and AI-friendly.\u003c/p\u003e\\n\u003c/li\u003e\\n\u003c/ul\u003e", "articleBody": "\u003cp dir=\\\"ltr\\\"\u003eWhile the llms.txt standard is still in its early stages and awaits official adoption by major AI platforms, it has already gained significant traction among a forward-thinking group of companies, particularly in the tech sector. These early adopters are paving the way, demonstrating the practical value of providing curated, machine-readable content for Large Language Models (LLMs).\u003c/p\u003e\\n\u003cp\u003e\u003cstrong\u003e\u0026nbsp;\u003c/strong\u003e\u003c/p\u003e\\n\u003ch2 dir=\\\"ltr\\\"\u003eHow many sites are using llms.txt?\u003c/h2\u003e\\n\u003cp dir=\\\"ltr\\\"\u003eThe adoption of llms.txt is growing rapidly, driven by a grassroots movement within the developer community. Community-managed directories serve as living catalogs of this momentum.\u003c/p\u003e\\n\u003cp dir=\\\"ltr\\\"\u003eFor instance, the \u003ca href=\\\"https://www.llms-text.com/directory\\\"\u003ellms.txt directory\u003c/a\u003e from \u003ca href=\\\"https://www.llms-text.com/\\\"\u003ellms-text.com\u003c/a\u003e lists over 784 websites that have implemented llms.txt or llms-full.txt files, offering a wealth of real-world examples. Other hubs include llmstxt.site and directory.llmstxt.cloud.\u003c/p\u003e\\n\u003cp dir=\\\"ltr\\\"\u003eAn ana" } ``` -------------------------------- ### Next.js Module Loading Configuration Source: https://www.llms-text.com/blog/what-is-llms-txt This JavaScript snippet details the configuration for loading modules and assets within a Next.js application. It specifies dependencies, file paths for JavaScript chunks, CSS files, and font assets, indicating a structured approach to application bundling and delivery. ```javascript self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[4065,[\"874\",\"static/chunks/874-ba0121bca8e93795.js\",\"789\",\"static/chunks/789-351580dff524c77f.js\",\"816\",\"static/chunks/816-b6f6f4e8f941e39b.js\",\"774\",\"static/chunks/774-378869c1f55b1cd7.js\",\"644\",\"static/chunks/644-498ce3365a3ed1da.js\",\"177\",\"static/chunks/app/layout-ea8c3dddf7670e60.js\"],\"default\"]\n3:I[7555,[],\"\"]\n4:I[1295,[],\"\"]\n6:I[9665,[],\"OutletBoundary\"]\n9:I[9665,[],\"ViewportBoundary\"]\nb:I[9665,[],\"MetadataBoundary\"]\nd:I[6614,[],\"\"]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/393d111df3bd0f4c.css\",\"style\"]\n"]) ``` -------------------------------- ### Next.js Routing and Page Structure Configuration Source: https://www.llms-text.com/blog/what-is-llms-txt This JavaScript snippet defines the routing structure and page-specific configurations for a Next.js application. It includes details about the current route (e.g., '/blog/what-is-llms-txt'), component rendering logic, and error handling mechanisms like 404 pages. ```javascript self.__next_f.push([1,"0:{\"P\":null,\"b\":\"UQ1hh-Yb2r-MTAS4z-6uP\",\"p\":\"\",\"c\":[\"\",\"blog\",\"what-is-llms-txt\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"blog\",{\"children\":[[ \"slug\", \"what-is-llms-txt\", \"d\"],{\"children\":[\"\__PAGE\__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/393d111df3bd0f4c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]], [\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\"Segoe UI Emoji\\"},\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]],[]},{\"children\":[\"blog\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]],[\"$\",\"$1\",\"c\",{\"children\":[[ \"slug\", \"what-is-llms-txt\", \"d\"], [\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]],[\"\__PAGE\__\",[\"$\",\"$1\",\"c\",{\"children\":[\"$L5\",\"$undefined\",null,[\"$\",\"$L6\",null,{\"children\":[\"$L7\",\"$L8\",null]}]}]],{},null,false]]},null,false]]},[null,[],[]],false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$1\",\"pW5qg2FM22TjgA8l6_aiM\",{\"children\":[[[\"$\",\"$L9\",null,{\"children\":\" ``` -------------------------------- ### llms.txt Implementation Steps Source: https://www.llms-text.com/blog/how-to-create-llms-txt Outlines the process for making an llms.txt file accessible on a website. This involves uploading the file to the root directory of the web server and verifying its accessibility and content. ```Instructions 1. Place the File in the Root Directory: - Save your file as llms.txt. - Upload it to your website's main or root directory (e.g., public_html, www, htdocs). - For WordPress, use an FTP client or file manager to upload to the root WordPress folder. 2. Verify the Implementation: - Check Accessibility: Navigate to yourwebsite.com/llms.txt in a browser. - Review Content: Ensure all links are valid and descriptions are accurate. ``` -------------------------------- ### JavaScript Theme Toggler Source: https://www.llms-text.com/blog/how-to-create-llms-txt This JavaScript code handles theme switching for a website. It allows users to select 'light' or 'dark' themes, or follow the system's preference, by manipulating the document's class or attribute. It utilizes `localStorage` for persistence and `matchMedia` for system preference detection. ```javascript (function(e,t,a,r,n,i,o){let d=document.documentElement,l=["light","dark"];function p(t){var a;(Array.isArray(e)?e:["class"]==="class"?e:["class"]).forEach(e=>{let a="class"===e,r=a&&i?n.map(e=>i[e]||e):n;a?(d.classList.remove(...r),d.classList.add(i&&i[t]?i[t]:t)):d.setAttribute(e,t)}),a=t,s&&l.includes(a)&&(d.style.colorScheme=a)}if(r)p(r);else try{let e=localStorage.getItem(t)||a,r=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;p(r)}catch(e){}})("class","theme","system",null,["light","dark"],null,true,true) ``` -------------------------------- ### Next.js Application Initialization Source: https://www.llms-text.com/blog/how-to-create-llms-txt This snippet demonstrates a common pattern for initializing application-specific functions or data structures within a Next.js environment. It ensures that a specific array, `__next_f`, is available for pushing initialization data. ```javascript self.__next_f = self.__next_f || []; self.__next_f.push([0]); ``` -------------------------------- ### Blog List Structure Source: https://www.llms-text.com/blog Renders the main blog listing page, including a prominent heading and a container for individual blog post links. It demonstrates how blog post entries are structured and presented. ```HTML
Identify and Prepare Content: The first step is to identify your most valuable pages (docs, product pages, policies) and create clean, clutter-free Markdown versions of them.
\nStructure the File Simply: The llms.txt file uses a basic Markdown structure: a main H1 title, a summary, H2 sections for categories (## Docs), and bulleted links to your content.
\nUse Tools to Simplify: Creating the file is made easy with free tools like the llms-text.com generator, which can build a compliant file for you automatically.
\nDeploy to Your Root Directory: The file must be uploaded to your website's main folder so it's accessible at yourwebsite.com/llms.txt.
\nVerify After Uploading: Always check that the file loads correctly in your browser and that all the links work as expected.
\nCreating an llms.txt file is a straightforward process that can significantly improve how AI models interact with your website. It's a proactive step to ensure your content is accurately represented in an AI-driven web. This guide provides actionable steps to create, implement, and verify your own llms.txt file.
\n\n
While major LLM providers have not officially adopted the llms.txt standard, there is a strong case for early implementation. Proponents view it as a low-risk, high-reward strategy for future-proofing a brand's online presence. For businesses, especially those with detailed documentation or product information, an
\nllms.txt file helps control the narrative and prevent AI misinterpretations that could lead to customer confusion or brand damage.
\nThe effort is minimal compared to the potential benefits of improved AI understanding and traffic, making it a pragmatic choice for most website owners.
\n\n
The creation process involves structuring your content in a clean, readable Markdown format.
\nThe most intensive part of the process is preparing the content you want to highlight.
\nConduct a Content Audit: Identify the most valuable pages for an AI audience. This often includes product pages, technical documentation, API references, \"About Us\" pages, and key policies.
\nConvert to Markdown: Create clean, Markdown (.md) versions of these key pages. This involves stripping away non-essential HTML elements like navigation menus, ads, and sidebars, leaving only the core content structured with clear headings and lists.
\n\n
Your llms.txt file uses a basic Markdown structure: a main H1 title, a summary, H2 sections for categories (## Docs), and bulleted links to your content.
" } ``` -------------------------------- ### Markdown for llms.txt Source: https://www.llms-text.com/blog/what-is-llms-txt Details why Markdown is the chosen format for llms.txt files. Its simplicity makes it easy for both humans to read and write, and for machines (AI agents) to parse and understand the content structure. ```APIDOC Markdown Format for llms.txt: Readability: Easy for humans to read and write. Parsability: Simple and effective for machines (AI) to parse. Structure: Natural hierarchy using headings (#, ##) and lists (*, -) provides clear organization. Benefits: Facilitates AI's understanding of content hierarchy and key information. ``` -------------------------------- ### Next.js Route and Chunk Information Source: https://www.llms-text.com/blog/how-to-create-llms-txt This code snippet represents internal data structures used by Next.js for managing application routing and loading JavaScript chunks. It details the application's entry points, static assets, and route configurations, including fallback mechanisms for 404 pages. ```javascript self.__next_f.push([1, "1:\"$Sreact.fragment\"\n2:I[4065, [\"874\", \"static/chunks/874-ba0121bca8e93795.js\", \"789\", \"static/chunks/789-351580dff524c77f.js\", \"816\", \"static/chunks/816-b6f6f4e8f941e39b.js\", \"774\", \"static/chunks/774-378869c1f55b1cd7.js\", \"644\", \"static/chunks/644-498ce3365a3ed1da.js\", \"177\", \"static/chunks/app/layout-ea8c3dddf7670e60.js\"], \"default\"]\n3:I[7555, [], \"\"]\n4:I[1295, [], \"\"]\n6:I[9665, [], \"OutletBoundary\"]\n9:I[9665, [], \"ViewportBoundary\"]\nb:I[9665, [], \"MetadataBoundary\"]\nd:I[6614, [], \"\"]\n:HL[\"/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/393d111df3bd0f4c.css\",\"style\"]\n"]); self.__next_f.push([1, "0:{\"P\":null,\"b\":\"UQ1hh-Yb2r-MTAS4z-6uP\",\"p\":\"\",\"c\":[\"\",\"blog\",\"how-to-create-llms-txt\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"blog\",{\"children\":[[\"slug\",\"how-to-create-llms-txt\",\"d\"]],{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/393d111df3bd0f4c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],[[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[[\"$\",\"$L4\",null,{}],\"$undefined\"],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[[[\"$\",\"div\",null,{\"children\":[[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}]],[[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]}]}]],[]]]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]],[]],{\"children\":[\"blog\",[[\"$\",\"$1\",\"c\",{\"children\":[null,[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[[\"$\",\"$L4\",null,{}],\"$undefined\"],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]],[]],{\"children\":[[\"slug\",\"how-to-create-llms-txt\",\"d\"]],[[\"$\",\"$1\",\"c\",{\"children\":[null,[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[[\"$\",\"$L4\",null,{}],\"$undefined\"],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]],[]],{\"children\":[[\"__PAGE__\",[[\"$\",\"$1\",\"c\",{\"children\":[\"$L5\",\"$undefined\",null,[[\"$\",\"$L6\",null,{\"children\":[\"$L7\",\"$L8\",null]}]],[]]}]],{},null,false]]],null,false]]],null,false],[[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$1\",\"G7z5hquJ8_E_RzCmVDxdI\",{\"children\":[[[\"$\",\"$L9\",null,{\"children\":\"$La\"}]],[[\"$\",\"met ``` -------------------------------- ### llms-full.txt Concept Source: https://www.llms-text.com/blog/what-is-llms-txt Explains the purpose of llms-full.txt as a companion file to llms.txt. It consolidates the entire text content of pages linked in the main llms.txt file into a single document for efficient AI ingestion. ```APIDOC llms-full.txt: Purpose: Comprehensive content ingestion for AI. Function: Contains the consolidated text of all pages referenced in the primary llms.txt file. Benefit: Allows AI systems to ingest all key content by downloading a single, efficient file, bypassing the need to parse multiple individual pages. ``` -------------------------------- ### Next.js Internal Framework Code Source: https://www.llms-text.com/blog/how-to-create-llms-txt This snippet appears to be internal code from the Next.js framework, likely related to rendering or data hydration. It defines an array of tuples, each containing an identifier, a key, a value, and an object with properties like 'charSet', 'name', and 'content'. This is not typical user-facing code but rather part of the build or runtime process. ```javascript self.__next_f.push([1,"a:[\[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#ED5F45\"}],[\"$\",\"meta\",\"3\",{\"name\":\"color-scheme\",\"content\":\"light\"}]]\n7:null\n"]) ``` ```javascript self.__next_f.push([1,"e:T2100,"]) ``` -------------------------------- ### Schema.org BreadcrumbList JSON-LD Source: https://www.llms-text.com/blog/what-is-llms-txt This JSON-LD script defines a BreadcrumbList schema, indicating the navigation path for the current page. It helps search engines and AI understand the site's structure and hierarchy. ```APIDOC { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": { "@type": "Thing", "@id": "https://www.llms-text.com/" } }, { "@type": "ListItem", "position": 2, "name": "Blog", "item": { "@type": "Thing", "@id": "https://www.llms-text.com/blog" } }, { "@type": "ListItem", "position": 3, "name": "What is a llms.txt file?", "item": { "@type": "Thing", "@id": "https://www.llms-text.com/blog/what-is-llms-txt" } } ] } ```