quasimo/flarum-ext-llms-txt
最新稳定版本:v2.0.6
Composer 安装命令:
composer require quasimo/flarum-ext-llms-txt
包简介
Flarum extension that auto-generates llms.txt and llms-full.txt for LLM-friendly content discovery
README 文档
README
A Flarum extension that automatically generates llms.txt and llms-full.txt files for your forum, making your community content discoverable and readable by AI language models.
Features
- Serves
yourforum.com/llms.txt— a concise index (title, categories, discussion links with excerpts) - Serves
yourforum.com/llms-full.txt— full post content for every discussion - Admin panel to toggle each file on/off independently
- Configurable sort order (latest activity or most replies)
- Configurable max discussions and max posts per discussion
- Optional custom introduction paragraph
- Automatic category listing when flarum/tags is installed
Cache-Control: public, max-age=3600header for CDN-friendly caching
Installation
composer require quasimo/flarum-ext-llms-txt php flarum extension:enable quasimo-llms-txt php flarum cache:clear
Configuration
Go to Admin → Extensions → LLMs.txt Generator and configure:
| Setting | Default | Description |
|---|---|---|
Enable llms.txt |
✅ | Toggle the brief index file |
Enable llms-full.txt |
✅ | Toggle the full content file |
| Sort order | Latest | Latest activity or Most replies |
| Max discussions | 100 | Cap on discussions included |
| Max posts per discussion | 50 | Full file only |
| Custom intro | — | Optional paragraph below forum title |
Output format
llms.txt (brief)
# My Forum
> The best place to discuss things.
## Categories
- [Support](https://example.com/t/support): Get help here
- [General](https://example.com/t/general)
## Recent Discussions
- [How to install X](https://example.com/d/42-how-to-install-x): Step by step guide…
- [Release 2.0](https://example.com/d/38-release-2-0): We just shipped…
## Links
- [Forum Home](https://example.com)
- [All Categories](https://example.com/tags)
- [Full Content](https://example.com/llms-full.txt)
llms-full.txt (full content)
# My Forum
> The best place to discuss things.
---
## How to install X
URL: https://example.com/d/42-how-to-install-x
Author: alice
Date: 2024-06-01T10:00:00+00:00
Replies: 5
Here is a step-by-step guide to installing X…
### Reply by bob (2024-06-01)
Thanks, this worked perfectly!
Links
License
MIT © Quasimo
统计信息
- 总下载量: 159
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-07