LLMs.txt Examples & Templates
Learn from real examples of properly formatted llms.txt files. Download, study, and adapt these templates for your own projects.
Valid llms.txt
Perfect structure example
This example demonstrates the correct format with all required elements: H1 header, blockquote summary, H2 sections with links, and optional sections.
llms.txt
1# My Project23> A comprehensive toolkit for modern web development with best practices and useful utilities.45## Documentation6- [Getting Started](https://example.com/docs/): Complete guide to get up and running7- [API Reference](https://example.com/api/): Detailed API documentation8- [Tutorial](https://example.com/tutorial/): Step-by-step tutorial910## Examples11- [Code Examples](https://example.com/examples/): Real-world usage examples12- [Sample Apps](https://example.com/apps/): Complete application demos1314## Community15- [GitHub Repository](https://example.com/github/): Source code and issues16- [Discussions](https://example.com/discussions/): Community support and questions1718## Optional19- [Release Notes](https://example.com/releases/): Latest changes and updates20- [Blog](https://example.com/blog/): News and announcements
llms-full.txt
Complete documentation example
An example of llms-full.txt format with comprehensive documentation content, code examples, and detailed explanations in one file.
llms-full.txt
1# Complete Project Documentation23> This is a comprehensive documentation file that contains all the essential information about our project in one place.45## Quick Start67To get started with our project, you'll need to install the dependencies and configure your environment.89### Installation1011```bash12npm install my-project13```1415### Basic Usage1617```javascript18import { MyProject } from 'my-project'1920const project = new MyProject({21 apiKey: 'your-api-key',22 environment: 'development'23})24```2526## API Reference2728### Core Methods2930#### `initialize(options)`3132Initializes the project with the given options.3334**Parameters:**35- `options` (Object): Configuration options36 - `apiKey` (string): Your API key37 - `environment` (string): 'development' or 'production'3839**Returns:** Promise<void>4041#### `getData(query)`4243Retrieves data based on the provided query.4445**Parameters:**46- `query` (string): Search query4748**Returns:** Promise<Array>4950## Configuration5152The project can be configured using environment variables or a configuration file.5354### Environment Variables5556- `API_KEY`: Your API key57- `ENVIRONMENT`: development or production58- `DEBUG`: Enable debug logging5960### Configuration File6162Create a `config.json` file in your project root:6364```json65{66 "apiKey": "your-api-key",67 "environment": "development",68 "timeout": 500069}70```7172## Best Practices73741. Always validate your API key before making requests752. Use error handling for all async operations763. Implement proper logging for debugging774. Follow security best practices for API keys7879## Troubleshooting8081### Common Issues8283**Issue:** API key not working84**Solution:** Verify your API key is correct and has proper permissions8586**Issue:** Timeout errors87**Solution:** Increase timeout value in configuration8889**Issue:** Rate limiting90**Solution:** Implement exponential backoff for retries
How to Use These Examples
📝 Getting Started
- 1. Download the example that matches your needs
- 2. Replace placeholder content with your project details
- 3. Update all URLs to point to your actual pages
- 4. Upload to your website's root directory as /llms.txt
- 5. Test with our validator to ensure it's correctly formatted
🎯 Best Practices
- • Keep descriptions concise but informative
- • Use HTTPS URLs whenever possible
- • Regularly update content to stay current
- • Test all links to ensure they work
- • Consider both llms.txt and llms-full.txt based on your needs
💡 Pro Tip: Start with the valid example and customize it for your project. The validator will help you catch any formatting issues as you make changes.