🛡️ FraudGuard AI — Credit Card Fraud Detection

A real-time credit card fraud detection web app built with React, Hono, and SQLite on Val Town.

🔗 Live Demo

Deployed on Val Town — see the endpoint URL in the val's HTTP file.

🏗️ Architecture

Rendering mermaid diagram...

🧠 Detection Rules

RuleRisk Points
Amount > $5,000+35
Amount > $2,000+20
International transaction+25
Late-night / midnight hours+20
High-risk category (crypto, gambling, wire)+25
Online + international combo+15

🚦 Risk Thresholds

ScoreStatusAction
0–39✅ ApprovedProceeds normally
40–69⚠️ FlaggedRequires manual review
70–100🚫 BlockedAutomatically blocked

📁 File Structure

main.ts              ← Hono HTTP server + fraud detection logic + SQLite
frontend/
  index.html         ← HTML entry point
  index.tsx          ← React entry point
  style.css          ← Dark theme UI styles
  components/
    App.tsx          ← Full React app (form, stats, table, charts)
README.md

🛠️ Tech Stack

  • Backend: Hono (TypeScript)
  • Frontend: React 18 (client-side)
  • Database: Val Town SQLite (std/sqlite)
  • Runtime: Deno on Val Town