Generate standardized llms.txt files to help Large Language Models effectively use your website content. This implementation follows the specification proposed by Jeremy Howard.
The llms.txt file is a new standard that helps LLMs understand and use website content more effectively. It provides:
Simply provide a URL to your project (GitHub repository or documentation site), and we'll generate an appropriate llms.txt file.
https://llms-txt-generator.estevecastells.workers.dev/
Just send a URL:
{
"url": "https://github.com/username/project"
}
# 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.
Although parts of its API are inspired by FastAPI, it is *not* compatible with FastAPI syntax
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://docs.fastht.ml/quickstart): A brief overview of many FastHTML features
- [HTMX reference](https://raw.githubusercontent.com/htmx-org/htmx/master/www/content/reference.md): Brief description of all HTMX attributes
## API
- [API List](https://docs.fastht.ml/apilist.txt): A succint list of all functions and methods
## Examples
- [Todo list application](https://github.com/user/repo/examples/todo.py): Complete CRUD app example
## Optional
- [Advanced Topics](https://docs.example.com/advanced): In-depth documentation
import requests
# Simple usage
response = requests.post(
"https://llms-txt-generator.estevecastells.workers.dev/",
json={"url": "https://github.com/username/project"}
)
# Print generated llms.txt
print(response.json()["content"])
curl -X POST "https://llms-txt-generator.estevecastells.workers.dev/" \
-H "Content-Type: application/json" \
-d '{
"url": "https://github.com/username/project"
}'
The generated llms.txt follows this structure:
The API returns clear error messages for common issues:
{
"error": "Failed to process URL",
"details": "Specific error message"
}
For questions, issues, or feature requests, please use the contact information provided on the website.