A modern, responsive React application providing an intuitive interface for real-time fraud detection and analytics.
The Frontend is a React-based single-page application built with TypeScript that provides a powerful, user-friendly interface for fraud detection analysts and investigators. It features real-time analytics, interactive visualizations, and comprehensive detection workflows.
Key Capabilities:
- 🔐 Secure Authentication: JWT-based login with automatic token refresh and session management
- 📊 Dual Dashboard: Separate Detection and Analytics pages for focused workflows
- 🎨 Interactive Charts: Dynamic visualizations with Recharts (trends, distributions, activity)
- 🔄 Real-time Updates: Auto-refresh statistics and live detection feeds
- 🎯 4 Detection Modules: AML, Credit Risk, Insurance Fraud, Market Manipulation
- 📱 Responsive Design: Mobile-friendly interface with adaptive layouts
- 🌈 Modern UI: Gradient themes, smooth animations, intuitive navigation
- ⏰ Timezone Intelligence: Automatic local timezone conversion for all timestamps
- 🔐 JWT Authentication
- 💰 AML Detection Interface
- 📊 Credit Risk Assessment
- 🛡️ Insurance Fraud Detection
- 📈 Market Manipulation Monitoring
- 📱 Responsive Design
- 🎨 Modern UI with Gradient Themes
- React 18 - Modern UI library with hooks and concurrent features
- TypeScript 5 - Type-safe JavaScript for better developer experience
- Vite 5 - Lightning-fast development server and build tool
- React Router v6 - Client-side routing and navigation
- Custom Hooks - Reusable state logic (useAuth, useModules)
- Axios - Promise-based HTTP client
- JWT Authentication - Token-based secure authentication
- Auto-retry Logic - Automatic token refresh on 401 errors
- Recharts - Composable charting library for React
- Lucide React - Beautiful, consistent icon set
- Custom CSS - Gradient themes, animations, responsive layouts
- TypeScript ESLint - Code linting and quality
- Vite Plugin React - Fast Refresh and JSX support
- React DevTools - Component debugging
- Vite Build - Optimized production bundles
- Code Splitting - Lazy loading for better performance
- Asset Optimization - Minification and compression
- Node.js 18+ and npm
- Backend server running on
http://localhost:8000
cd frontend
npm installnpm run devFrontend will be available at http://localhost:3000
npm run buildProduction files will be in the dist/ directory.
The frontend connects to the Django REST API at http://localhost:8000/api/.
All API calls require JWT authentication except for the login endpoint.
- User logs in at
/login - JWT tokens stored in localStorage
- Token automatically attached to subsequent API requests
- Token refresh handled automatically
frontend/
├── src/
│ ├── components/
│ │ ├── Dashboard.jsx # Main dashboard
│ │ ├── Login.jsx # Login page
│ │ └── tabs/
│ │ ├── AMLTab.jsx # AML detection tab
│ │ ├── CreditTab.jsx # Credit risk tab
│ │ ├── InsuranceTab.jsx # Insurance fraud tab
│ │ └── MarketTab.jsx # Market manipulation tab
│ ├── api.js # API client & endpoints
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point
│ └── index.css # Global styles
├── index.html
├── vite.config.js
└── package.json
- Submit transaction details
- Real-time risk scoring
- Alert generation
- Transaction history
- Applicant information form
- Credit score calculation (300-850)
- Risk tier classification
- Decision recommendations
- Claim submission
- Fraud probability analysis
- Alert flagging
- Claims history
- Trading activity monitoring
- Pattern detection
- Severity classification
- Market alerts
- Backend: WorkOps Backend
This project is licensed under the MIT License - see the LICENSE file for details.
Richie Zhou
- GitHub: @arunike