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.
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