How logesh760/ai_finanical_scame-detection-1- works
FinGuard is a full-stack scam-monitoring prototype: users review a unified risk dashboard, then inspect transactions, UPI activity, AutoPay mandates, messages, alerts, risk analysis and scam history, with chatbot support. The React client loads dashboard data through a fetch-with-local-mock-fallback service; the Express server serves mock-backed API responses. The README documents these capability areas, while sampled frontend wiring directly confirms initial dashboard loading and navigation. Backend excerpts are partial, so detailed AI analysis and chatbot dispatch paths are not inferred; the GenAI dependency is shown only as an optional integration.
Main entry points: App.tsx App coordinator · mockApiService.ts API fallback client · server.js Express API · Sidebar.tsx Section navigation
Components 16
Dashboard client
- App coordinator
frontend/src/App.tsx - Section navigation
frontend/src/components/layout/Sidebar.tsx - Overview dashboard
frontend/src/components/dashboard/DashboardShell.tsx
Risk monitoring
- Transaction review
frontend/src/components/dashboard/TransactionsTab.tsx - UPI activity
frontend/src/components/dashboard/UPIActivityTab.tsx - AutoPay mandates
frontend/src/components/dashboard/AutoPayTab.tsx - Message monitoring
frontend/src/components/dashboard/MessagesTab.tsx - Scam alerts
frontend/src/components/dashboard/ScamAlertsTab.tsx - AI risk analysis
frontend/src/components/dashboard/AIRiskAnalysisTab.tsx - Scam history
frontend/src/components/dashboard/ScamHistoryTab.tsx
API and data
- API fallback client
frontend/src/services/mockApiService.ts - Local mock data
frontend/src/data/mockData.ts - Express API
backend/server.js
AI support
- Security chatbot
frontend/src/components/dashboard/ChatbotTab.tsx
Other components
- Financial user
- Google GenAI
Connections 17
- Financial user → App coordinator: uses dashboard
- App coordinator → API fallback client: loads overview data
- App coordinator → Section navigation: renders navigation
- Section navigation → App coordinator: selects section
- App coordinator → Overview dashboard: renders overview
- API fallback client → Express API: fetches API data
- API fallback client → Local mock data: falls back to
- Express API → API fallback client: returns endpoint data
- App coordinator → Transaction review: renders section
- App coordinator → UPI activity: renders section
- App coordinator → AutoPay mandates: renders section
- App coordinator → Message monitoring: renders section
- App coordinator → Scam alerts: renders section
- App coordinator → AI risk analysis: renders section
- App coordinator → Scam history: renders section
- App coordinator → Security chatbot: renders section
- Express API → Google GenAI: uses AI integration