https://github.com/robertdevore/llms-txt-generator
Dynamically generates a llms.txt file for LLM-friendly site indexing. Choose which post types to include and how often to regenerate.
https://github.com/robertdevore/llms-txt-generator
ai llms llmstxt wordpress wordpress-plugin
Last synced: about 2 months ago
JSON representation
Dynamically generates a llms.txt file for LLM-friendly site indexing. Choose which post types to include and how often to regenerate.
- Host: GitHub
- URL: https://github.com/robertdevore/llms-txt-generator
- Owner: robertdevore
- License: gpl-2.0
- Created: 2025-05-14T15:00:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T15:08:05.000Z (about 1 year ago)
- Last Synced: 2025-10-11T07:04:38.525Z (8 months ago)
- Topics: ai, llms, llmstxt, wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://robertdevore.com/llms.txt
- Size: 136 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LLMs.txt Generator
Automatically generate a `llms.txt` file to help large language models (LLMs) index and understand your WordPress site content more effectively.
This plugin allows site owners to define which post types should be included, set how often the file is regenerated, and optionally trigger manual updates. The output is a clean, structured `.txt` file listing your site's public content in a machine-friendly format.
## ๐ Features
- โ
Automatically generates a `llms.txt` file at your site root
- โ
Select which post types to include (posts, pages, CPTs, etc.)
- โ
Schedule automatic regeneration (hourly, twice daily, daily)
- โ
Manual "Regenerate Now" button
- โ
Fully translatable and escape-safe
- โ
Works with both built-in and custom post types
## ๐ File Location
The plugin writes `llms.txt` to the root of your WordPress installation:
```
/public_html/llms.txt
```
This file can then be accessed at:
```
https://yourdomain.com/llms.txt
```
## โ๏ธ Settings
Navigate to **Settings > LLMs.txt Generator** to configure:
- โ
Which post types to include
- ๐ How often to regenerate the file
- ๐ Option to regenerate immediately with a button
## ๐ Installation
1. Upload the plugin folder to `/wp-content/plugins/llms-txt-generator/`
2. Activate the plugin via **Plugins > Installed Plugins**
3. Go to **Settings > LLMs.txt Generator** to configure it
## ๐ง Use Case
Many modern language models rely on text-based crawling for data. A `llms.txt` file gives them a clean, structured source of your site content, bypassing messy HTML layouts and helping improve accuracy when your site is referenced in LLM output.
## ๐ Developers
- Uses WP cron to handle scheduled regeneration
- Fully escaped and internationalization-ready (`textdomain: llms-txt-generator`)
- Post types retrieved via `get_post_types( [ 'public' => true ] )`
- Output is Markdown-formatted for LLM readability
## ๐งผ Uninstall Behavior
- Clears scheduled cron events on deactivation
- Plugin settings are retained unless manually deleted
## ๐ License
Licensed under the GPLv2 or later.
## ๐ค Support
For issues, ideas, or contributions, open an issue or pull request on the plugin repository.