llms_txt_gen
Features
This module automatically populates llms.txt sections from your site's published nodes, organized by content type. It provides a clean, structured index for LLM consumption without manual section management.
- Automatic section generation: Creates one llms.txt section per content type, listing all published nodes as markdown links.
- Content type selection: Admin UI to choose which content types to include (all types included by default).
- Cron integration: Regenerates sections automatically on cron runs to keep content current.
- Drush commands:
drush llms-gento regenerate sections,drush llms-delto clear all sections. - Alphabetical sorting: Content types and nodes within each type are sorted alphabetically.
Post-Installation
After enabling the module, visit:
Administration > Configuration > Search and metadata > LLMs.txt Generator
(/admin/config/search/llms-txt-gen)
Select which content types to include. Sections will be generated automatically on cron runs, or manually using Drush.
Additional Requirements
- /llms.txt
- Markdownify (for
.mdURL rendering)
Recommended modules/libraries
None.
Similar projects
Related Module
-
LLMs.txt Generator:
A separate Drupal module focused on creating and managing a standalone
llms.txtfile with custom content and admin controls
(similar in name but not the same feature set as this generator that indexes published nodes by content type for LLM consumption).
Supporting this Module
If you find this module useful, consider contributing patches, reporting issues, or helping review feature requests.
Community Documentation
How it works:
The module queries all published nodes (filtered by selected content types), groups them by bundle, and creates an llms_txt_section entity for each group containing markdown-formatted links (e.g., - [Page Title](https://example.com/node/1.md)).