mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
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>
56 lines
2.2 KiB
JSON
56 lines
2.2 KiB
JSON
{
|
|
"name": "cloudflare_temp_email",
|
|
"version": "1.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build -m prod --emptyOutDir",
|
|
"build:release": "vite build -m example --emptyOutDir",
|
|
"build:pages": "vite build -m pages --emptyOutDir",
|
|
"build:pages:nopwa": "VITE_PWA_DISABLED=true vite build -m pages --emptyOutDir",
|
|
"build:telegram": "VITE_IS_TELEGRAM=true vite build -m prod --emptyOutDir",
|
|
"build:telegram:pages": "VITE_IS_TELEGRAM=true vite build -m pages --emptyOutDir",
|
|
"build:telegram:release": "VITE_IS_TELEGRAM=true vite build -m example --emptyOutDir",
|
|
"preview": "vite preview",
|
|
"deploy:telegram": "npm run build:telegram && wrangler pages deploy ./dist --branch production",
|
|
"deploy:actions:telegram": "npm run build:telegram && wrangler pages deploy ./dist",
|
|
"deploy:preview": "npm run build && wrangler pages deploy ./dist --branch preview",
|
|
"deploy": "npm run build && wrangler pages deploy ./dist --branch production",
|
|
"deploy:actions": "npm run build && wrangler pages deploy ./dist"
|
|
},
|
|
"dependencies": {
|
|
"@fingerprintjs/fingerprintjs": "^5.0.1",
|
|
"@simplewebauthn/browser": "10.0.0",
|
|
"@unhead/vue": "^1.11.20",
|
|
"@vueuse/core": "^12.8.2",
|
|
"@wangeditor/editor": "^5.1.23",
|
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
"axios": "^1.13.2",
|
|
"jszip": "^3.10.1",
|
|
"mail-parser-wasm": "^0.2.1",
|
|
"naive-ui": "^2.43.2",
|
|
"postal-mime": "^2.6.1",
|
|
"vooks": "^0.2.12",
|
|
"vue": "^3.5.25",
|
|
"vue-clipboard3": "^2.0.0",
|
|
"vue-i18n": "^11.2.2",
|
|
"vue-router": "^4.6.3"
|
|
},
|
|
"devDependencies": {
|
|
"@vicons/fa": "^0.13.0",
|
|
"@vicons/material": "^0.13.0",
|
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
"unplugin-auto-import": "^19.3.0",
|
|
"unplugin-vue-components": "^28.8.0",
|
|
"vite": "^6.4.1",
|
|
"vite-plugin-pwa": "^1.2.0",
|
|
"vite-plugin-top-level-await": "^1.6.0",
|
|
"vite-plugin-wasm": "^3.5.0",
|
|
"workbox-build": "^7.4.0",
|
|
"workbox-window": "^7.4.0",
|
|
"wrangler": "^4.53.0"
|
|
},
|
|
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
}
|