Centralized Emotion-Aware Multi-Platform Cyber Threat Detection System
AI Β· NLP Β· Computer Vision Β· Face Emotion Analysis
emoshield/ β ROOT of GitHub repo
β
βββ README.md β This file
βββ .gitignore β Files to ignore
β
βββ backend/ β Python FastAPI server
β βββ main.py β App entry point + all routes
β βββ requirements.txt β All Python packages
β βββ .env.example β Copy to .env and fill keys
β βββ Procfile β For Render deployment
β βββ src/
β βββ auth/
β β βββ __init__.py
β β βββ jwt_handler.py β JWT token create/verify
β β βββ google_auth.py β Google OAuth login
β β βββ otp_service.py β SMS OTP via Twilio
β βββ analyzers/
β β βββ __init__.py
β β βββ threat_analyzer.py β NLP + ML engine (core)
β β βββ face_analyzer.py β Face emotion detection
β βββ integrations/
β β βββ __init__.py
β β βββ gmail_integration.py β Gmail API
β β βββ platform_integrations.py β WhatsApp + Instagram + SMS
β βββ models/
β β βββ __init__.py
β β βββ database.py β MongoDB connection + schemas
β βββ utils/
β βββ __init__.py
β βββ config.py β Settings from .env
β βββ encryption.py β AES-256 token encryption
β
βββ frontend/ β React + Vite + Tailwind
β βββ index.html
β βββ package.json
β βββ vite.config.js
β βββ tailwind.config.js
β βββ postcss.config.js
β βββ .env.example
β βββ src/
β βββ main.jsx β React entry point
β βββ App.jsx β Routes
β βββ styles/
β β βββ globals.css β Tailwind + custom styles
β βββ utils/
β β βββ api.js β Axios client + all API calls
β βββ hooks/
β β βββ useAuth.jsx β Auth context (global state)
β βββ components/
β β βββ common/
β β βββ Layout.jsx β Sidebar + header wrapper
β βββ pages/
β βββ LoginPage.jsx β Google sign in
β βββ AuthCallback.jsx β OAuth redirect handler
β βββ DashboardPage.jsx β Home with stats + charts
β βββ ScanPage.jsx β Message + face dual scan
β βββ GmailPage.jsx β Gmail inbox monitor
β βββ PlatformsPage.jsx β Connect accounts + OTP
β βββ HistoryPage.jsx β Past scans
β βββ AnalyticsPage.jsx β Charts + insights
β βββ SettingsPage.jsx β User preferences
β
βββ docs/
βββ setup_guide.md β API keys setup guide
βββ deployment.md β Render + Vercel deploy guide
| Service | What to deploy | Cost |
|---|---|---|
| Render.com | Backend (FastAPI) | |
| Vercel.com | Frontend (React) | |
| MongoDB Atlas | Database |
See docs/deployment.md for step-by-step instructions.
| Key | Get From | Required? |
|---|---|---|
| Google Client ID + Secret | console.cloud.google.com | |
| MongoDB Connection URL | cloud.mongodb.com | |
| JWT Secret Key | Any random 32+ char string | |
| Twilio (SMS OTP) | twilio.com | Optional |
| Instagram App | developers.facebook.com | |
| WhatsApp Business | developers.facebook.com |
EmoShield v1.0 β Final Year Project | CSE 2025β26