Dream Hunter dbb55d948f feat: add AI email extraction with Cloudflare Workers AI
Add AI-powered email content extraction feature using Cloudflare Workers AI to automatically identify and extract important information from emails including verification codes, authentication links, service links, and subscription links.

Features:
- AI extraction with priority-based logic (auth_code > auth_link > service_link > subscription_link > other_link)
- Admin allowlist configuration with wildcard support (*@example.com)
- Frontend display in both email list (compact) and detail view (full mode)
- Bilingual documentation (Chinese/English)
- Database migration: add metadata field to raw_mails (v0.0.3 -> v0.0.4)

Technical highlights:
- Proper regex escaping for wildcard pattern matching
- Content truncation to avoid AI token limits
- Error handling that won't affect email receiving
- JSON schema validation for AI responses
- Type-safe TypeScript implementation
- Vue I18n support with special character escaping

References:
- Inspired by Alle Project: https://github.com/bestruirui/Alle
- Uses Cloudflare Workers AI JSON Mode

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 16:28:19 +08:00

Cloudflare Temp Email

🇨🇳 中文 | 🇺🇸 English

A fully-featured temporary email service built on Cloudflare's free services.

This project is for learning and personal use only.

🚀 Quick Start

Deploy to Cloudflare Workers

Key Features

  • <EFBFBD> Email Processing: Rust WASM parser, SMTP/IMAP support, attachments, auto-reply
  • 👥 User Management: OAuth2 login, Passkey authentication, role management
  • 🌐 Admin Panel: Complete admin console, user management, scheduled cleanup
  • 🤖 Integrations: Telegram Bot, webhooks, CAPTCHA, rate limiting
  • <EFBFBD> Modern UI: Multi-language, responsive design, JWT auto-login

🏗️ Tech Stack

  • Frontend: Vue 3 + TypeScript + Vite
  • Backend: Cloudflare Workers + D1 Database
  • Email: Cloudflare Email Routing + Rust WASM Parser
  • Storage: Cloudflare KV + R2 (optional S3)

🌟 Community

📄 License

MIT License - see LICENSE for details.

Description
CloudFlare free temp domain email 免费收发 临时域名邮箱 支持附件 IMAP SMTP TelegramBot
Readme MIT 23 MiB
Languages
TypeScript 45.7%
Vue 44.8%
Python 4.7%
JavaScript 3.9%
Rust 0.6%
Other 0.3%