Drupal is a registered trademark of Dries Buytaert

llms_txt_gen

No security coverage
View on drupal.org

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-gen to regenerate sections, drush llms-del to 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

None.

Similar projects

Related Module

  • LLMs.txt Generator:
    A separate Drupal module focused on creating and managing a standalone
    llms.txt file 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)).

Activity

Total releases
2
First release
Mar 2026
Latest release
22 hours ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Mar 4, 2026
1.0.x-dev Dev Mar 4, 2026