🧱 Architecture Overview
Melify is a modular system designed for extensibility and performance.
📐 Components
- Frontend: React + Material UI
- Backend: NestJS (Node.js), JWT-auth, REST & WebSocket APIs
- Database: MongoDB (Mongoose ODM)
- AI Layer: Python workers using LangChain + vector search
- Infrastructure:
- Gmail API + Pub/Sub notifications
- Google Cloud Functions for Gmail webhooks
- Azure VMs or Kubernetes for hosting
🔁 Email Lifecycle
- OAuth2 login grants Gmail access.
- Gmail push notifications trigger a Cloud Function.
- Emails are stored and processed in MongoDB.
- Summarization/categorization jobs are run by AI workers.
- Frontend receives real-time updates via WebSocket.