A real-time credit card fraud detection web app built with React, Hono, and SQLite on Val Town.
Deployed on Val Town — see the endpoint URL in the val's HTTP file.
Rendering mermaid diagram...
| Rule | Risk 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 |
| Score | Status | Action |
|---|---|---|
| 0–39 | ✅ Approved | Proceeds normally |
| 40–69 | ⚠️ Flagged | Requires manual review |
| 70–100 | 🚫 Blocked | Automatically blocked |
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
std/sqlite)