Skip to content

AgreementMudau05/FraudGuard

Repository files navigation

🚨 FraudGuard Elite - Real-Time Fraud Detection System

License TypeScript React Node.js Status

πŸ“Œ Overview

FraudGuard Elite is a production-grade, full-stack fraud detection platform designed to simulate, monitor, and investigate financial transactions in real-time. Unlike static analysis tools, this system leverages WebSockets to stream live transaction data, visualizing potential threats on an interactive dashboard with geospatial intelligence.

It demonstrates advanced full-stack engineering skills, combining a high-performance Node.js backend with a modern, glassmorphism-styled React frontend.

🎯 Objectives

  • Real-Time Monitoring: Detect and display transactions the instant they occur using Socket.io.
  • Analyst Experience: Provide a professional "Investigation Mode" for deep-diving into suspicious activities.
  • Data Visualization: Render complex transaction flows using dynamic charts and geospatial indicators.
  • Simulation: Generate realistic transaction patterns (legitimate vs. fraudulent) to test detection workflows.

πŸ› οΈ Technologies Used

Frontend (Client)

  • Framework: React 18 (Vite)
  • Language: TypeScript
  • Styling: Tailwind CSS, Framer Motion (Animations)
  • Visualization: Recharts, Lucide Icons
  • State Management: Zustand

Backend (Server)

  • Runtime: Node.js
  • API: Express.js
  • Real-Time: Socket.io (WebSockets)
  • Simulation Engine: Custom TypeScript algorithms for geolocation and fraud probability distribution.

πŸ“Š Features

  • πŸš€ Live Transaction Feed: WebSocket-powered stream of transactions with instant "Fraud/Safe" classification.
  • 🌍 Geospatial Intelligence: Visualizes transaction origins relative to user home locations to detect "Impossible Travel" fraud.
  • πŸ“ˆ Interactive Analytics: Real-time charts showing risk distribution and transaction volume.
  • πŸ›‘οΈ Analyst Dashboard: Detailed view for investigating specific transaction metadata (IP, device ID, merchant category).
  • ✨ Premium UI/UX: "Glassmorphism" design language with fluid animations for a modern enterprise feel.

πŸ“Έ Screenshots

🏠 Home Page

The landing page featuring a high-conversion hero section and glassmorphism design. ![Home Page]image image

πŸ” Login Page

Secure authentication portal with Google integration. ![Login Page]image

πŸ“ Registration (Agent Signup)

Onboarding flow for new fraud analysts. ![Signup Page]image

πŸ“Š Dashboard & Investigation Mode

Real-time command center showing live transaction streams, risk charts, and geospatial data. ![Dashboard]image image

πŸ“ Project Structure

fraud-detection-system/
β”‚
β”œβ”€β”€ api/                    # Backend & Simulation Engine
β”‚   β”œβ”€β”€ routes/             # API Endpoints
β”‚   β”œβ”€β”€ services/           # Logic for Fraud Simulation
β”‚   β”œβ”€β”€ app.ts              # Express App Setup
β”‚   └── index.ts            # Socket.io Entry Point
β”‚
β”œβ”€β”€ src/                    # Frontend Application
β”‚   β”œβ”€β”€ components/         # Reusable UI Components
β”‚   β”‚   └── dashboard/      # Analyst Dashboard Widgets
β”‚   β”œβ”€β”€ pages/              # Route Pages (Login, Home, Dashboard)
β”‚   β”œβ”€β”€ lib/                # Utilities & Helpers
β”‚   └── App.tsx             # Main Component
β”‚
β”œβ”€β”€ public/                 # Static Assets
β”œβ”€β”€ package.json            # Dependencies & Scripts
└── README.md               # Documentation

▢️ How to Run the Project

  1. Clone the repository

    git clone https://github.com/AgreementMudau05/fraud-detection-system.git
    cd fraud-detection-system
  2. Install Dependencies

    npm install
  3. Start the Development Suite (Frontend + Backend)

    npm run dev

    This command runs both the React client (Port 5173) and the Node.js server (Port 3001) concurrently.

  4. Access the Application

    • Open http://localhost:5173 in your browser.
    • Login with the demo credentials pre-filled in the login page.

πŸš€ Future Improvements

  • Machine Learning Integration: Connect the Node.js backend to a Python Flask/FastAPI service running a trained Random Forest model for higher-accuracy predictions.
  • Database Persistence: Migrate from in-memory simulation to PostgreSQL/TimescaleDB for historical analysis.
  • Docker Support: Containerize the application for easy deployment to AWS/GCP.
  • Mobile App: Develop a React Native companion app for alerts.

Author: Agreement Mudau Role: Full Stack Engineer & Data Specialist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors