orangecat/feed
Composer 安装命令:
composer require orangecat/feed
包简介
Generate product feed for AI Crawlers
README 文档
README
The Orangecat Feed module is a specialized tool designed to generate high-quality, structured product feeds specifically optimized for AI Crawlers and Large Language Models (LLMs). By providing data in a machine-readable format (JSON), it ensures that AI agents can accurately index, understand, and retrieve your product catalog information.
Key Features
- AI-Optimized Output: Generates feeds in JSON format, which is the preferred structure for modern AI training and retrieval systems.
- Automated Generation: Uses Magento's Cron system to automatically generate and update feeds on a schedule you define, ensuring your data is always fresh.
- Chunking Support: Capable of handling large catalogs by splitting feeds into smaller, manageable chunks (e.g., 500 products per file).
- Customizable Content:
- Select specific product attributes to include (e.g., description, price, stock status).
- Option to include product images.
- FAQ Integration: Seamlessly integrates with the Orangecat Faqs module to include product-specific FAQs in the feed, providing richer context for AI models.
- Multistore Support: Generates separate feeds for each store view, respecting localizations and currency settings.
Configuration
You can configure the module settings in Stores > Configuration > Orange Cat > Product Feed for AI.
General Settings
- Enable Feed Generation: Turn the automatic feed generation on or off.
- Cron Schedule: Define how often the feed should be regenerated using standard cron expression syntax (default: daily at 2 AM).
- Feed Filename: Set a custom base name for your feed files (e.g.,
products). - Products Per Chunk: Define the number of products per JSON file. Set to
0to generate a single large file. - Product Attributes: Select which Magento product attributes to include in the feed payload. SKU, Name, and Price are always included.
- Include Product Image: Toggle the inclusion of the main product image URL.
- Include FAQs: If the Orangecat Faqs module is installed, this option allows you to embed related FAQs directly into the product data object.
- Output Format: Choose the output format:
- JSON: Standard structured data.
Log Cleanup
- Log Retention (Days): Automatically clean up old generation logs after a specified number of days to save database space.
For Developers
Feed Location
Generated feeds are stored in the pub/media/feed directory (or similar public path depending on configuration), making them easily accessible for external crawlers via HTTP.
Extensibility
The module uses a modular architecture for data collection:
- Data Collectors: You can implement additional data collectors to inject custom data into the feed by extending the module's service layer.
- Events: Dispatch events during feed generation to allow other modules to modify the data stream.
orangecat/feed 适用场景与选型建议
orangecat/feed 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 orangecat/feed 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 orangecat/feed 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2025-11-30