Desktop app (Electron + Vite + React + TypeScript) that receives email via IMAP, sends/forwards via SMTP, Telegram (Bot API + MTProto user account) and WhatsApp (whatsapp-web.js), with AI integration (Anthropic, OpenAI, Ollama) for auto-classification, summary, structured extraction and reply drafts. Features: - Multi-account IMAP/SMTP with Gmail OAuth2 (loopback flow) + App Password preset - Telegram Bot API via telegraf, with chat discovery from getUpdates - Telegram MTProto via gram.js for sending to phone numbers like WhatsApp - WhatsApp via whatsapp-web.js with QR-code session (locally generated PNG) - Forwarding engine with rule-based filters incl. AI category match - SQLite persistence (better-sqlite3) with idempotent migrations - Contact picker with autocomplete, CSV/vCard import, search - Dark mode (light/dark/system) with futuristic glass-morphism UI - Settings tabbed: Email Accounts / Telegram / WhatsApp / AI / OAuth creds / Preferences Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
70 lines
2.0 KiB
JSON
70 lines
2.0 KiB
JSON
{
|
|
"name": "email-to-chat",
|
|
"version": "0.1.0",
|
|
"description": "Gestore email completo con inoltro multi-canale (SMTP, Telegram, WhatsApp)",
|
|
"main": "out/main/index.js",
|
|
"author": "Luciano",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "electron-vite dev",
|
|
"build": "electron-vite build",
|
|
"start": "electron-vite preview",
|
|
"typecheck:node": "tsc --noEmit -p tsconfig.node.json",
|
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json",
|
|
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
|
"dist:mac": "electron-vite build && electron-builder --mac",
|
|
"dist:win": "electron-vite build && electron-builder --win",
|
|
"dist:linux": "electron-vite build && electron-builder --linux",
|
|
"postinstall": "electron-builder install-app-deps"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.30.1",
|
|
"@electron-toolkit/preload": "^3.0.1",
|
|
"@electron-toolkit/utils": "^3.0.0",
|
|
"better-sqlite3": "^11.3.0",
|
|
"imapflow": "^1.0.164",
|
|
"mailparser": "^3.7.1",
|
|
"nodemailer": "^6.9.15",
|
|
"openai": "^4.67.3",
|
|
"qrcode": "^1.5.4",
|
|
"telegraf": "^4.16.3",
|
|
"telegram": "^2.26.22",
|
|
"whatsapp-web.js": "^1.26.0"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/tsconfig": "^1.0.1",
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/mailparser": "^3.4.5",
|
|
"@types/node": "^22.7.4",
|
|
"@types/nodemailer": "^6.4.16",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/react": "^18.3.11",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.2",
|
|
"autoprefixer": "^10.4.20",
|
|
"electron": "^32.1.2",
|
|
"electron-builder": "^25.0.5",
|
|
"electron-vite": "^2.3.0",
|
|
"postcss": "^8.4.47",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"tailwindcss": "^3.4.13",
|
|
"typescript": "^5.6.2",
|
|
"vite": "^5.4.8"
|
|
},
|
|
"build": {
|
|
"appId": "com.luciano.emailtochat",
|
|
"productName": "EmailToChat",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"out/**/*",
|
|
"package.json"
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity"
|
|
}
|
|
}
|
|
}
|