This Cloudflare Workers tool automatically adds AI-generated summaries to articles in your Miniflux RSS reader.
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
wrangler.toml |
Miniflux AI Summarizer
This Cloudflare Workers tool automatically adds AI-generated summaries to articles in your Miniflux RSS reader. The summaries are generated using the OpenAI API and appended to articles in a user-friendly format.
Features
- Automated Summarization: Fetches unread articles from Miniflux, generates concise summaries using AI, and updates the articles with the summaries.
- Customizable: Configure the list of whitelisted websites, API endpoints, and AI model parameters through environment variables.
- Concurrency: Uses asynchronous Rust features to handle multiple articles concurrently, ensuring quick processing.
- Cloudflare Integration: Deployed as a serverless function on Cloudflare Workers, leveraging the scalability and performance of Cloudflare's global network.
- Recommended Model: Uses the Cloudflare Workers AI model
@cf/qwen/qwen1.5-14b-chat-awq
for generating high-quality, concise summaries.
Getting Started
Prerequisites
- Rust installed
- A Miniflux instance with API access
- An OpenAI account with access to the model endpoint
- A Cloudflare account
Installation
-
Clone the repository:
git clone https://github.com/yourusername/miniflux-ai.git cd miniflux-ai
-
Deploy to Cloudflare Workers:
npx wrangler deploy
Configuration
The tool is configured using environment variables, which are set in the wrangler.toml
file:
MINIFLUX_URL
: Your Miniflux instance URL.MINIFLUX_USERNAME
: Your Miniflux username.MINIFLUX_PASSWORD
: Your Miniflux password.OPENAI_URL
: The endpoint for the OpenAI API.OPENAI_TOKEN
: Your OpenAI API token.OPENAI_MODEL
: The model ID to use for generating summaries. We recommend using the@cf/qwen/qwen1.5-14b-chat-awq
model for best results.WHITELIST_URL
: A comma-separated list of website URLs that should be summarized.
Usage
The tool runs as a scheduled Cloudflare Worker, querying for unread articles every 5 minutes. If an article is from a whitelisted site and does not contain code blocks, it generates a summary and updates the article.
Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.