credit-card-fraud-detection
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
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
- Backend: Hono (TypeScript)
- Frontend: React 18 (client-side)
- Database: Val Town SQLite (
std/sqlite) - Runtime: Deno on Val Town