This repo deploys as one Vercel project with these pages:
| Route | What it is |
|---|---|
/ |
Second Look prototype (prototype.html): a pause the member controls |
/secondscan |
SecondScan scam scanner (secondscan.html), backed by the FastAPI API in app.py |
/secondscan/patterns |
SecondScan's common scam patterns page (patterns.html) |
/api/* |
SecondScan API (/api/scan, /api/scan-image, /api/scan-phone, /api/feedback, /api/stats, /api/log, /api/languages, /api/ui-strings) |
analysis/ (offline scoring script and synthetic data) and deck/ (presentation slides) are not deployed.
Paste a suspicious message (or upload a screenshot of it) and SecondScan tells you, in plain language, whether it looks like a scam, shows the exact phrases that gave it away, says what to do next, and lists the cyber-crime reporting contacts for your country.
Adapted from https://github.com/propcgamer20-png/tellsign
- Text and screenshot scanning. Screenshots are read with Claude's vision.
- Phone number scan. Checks whether a number is real, where it's from, its line type and carrier, and whether it's a virtual (VoIP) number from an app like Google Voice or TextNow (with Twilio set up), then gives the same plain-language verdict. US results link to people-search sites so you can look up the owner yourself; SecondScan doesn't scrape them, since both sites' terms forbid automated access.
- Plain-language verdict (likely scam / suspicious / looks safe) with the red-flag phrases quoted.
- Rule engine + LLM. A set of explicit signal rules (urgency, OTP/PIN requests, shortened links,
app-install pushes, prize and job-offer bait, ...) feeds hints into the model's own judgment
(
signals.py). - 13 languages, a "simple mode" for easier reading, and read-aloud for people who struggle to read.
- Country-specific reporting contacts (e.g. India 1930 / cybercrime.gov.in).
- Known-scam matching so a message flagged before is recognised, plus a "Was this right?" feedback button.
- Reliability fallback between models if the primary one fails.
FastAPI (Python), Claude API (claude-opus-5-5 primary, claude-sonnet-5-5 fallback, both read screenshots),
Supabase for the scan log, plain HTML/CSS/JS front end, deployed on Vercel.
- Copy
.env.exampleto.envand fill inANTHROPIC_API_KEY(from console.anthropic.com)..envis git-ignored, so keys stay on your machine; on Vercel, set the same names under Environment Variables. - Optional, for scan history, stats, feedback and known-scam matching: create a Supabase project, run
supabase/schema.sqlin its SQL Editor, and setSUPABASE_URLandSUPABASE_KEY(the server-sideservice_rolekey; it never reaches the browser). Without them, scanning still works. - Optional, for the phone number scan's live carrier lookup: set
TWILIO_ACCOUNT_SIDandTWILIO_AUTH_TOKENfrom a Twilio account. Each scan then costs about $0.018 in Twilio Lookup fees ($0.008 for line type and carrier, $0.01 for the registered caller ID name, US numbers only). Without them, the phone scan still checks the number against the numbering plan, but can't detect VoIP apps like Google Voice or show the carrier or owner.
python3 -m venv .venv && source .venv/bin/activate
pip install fastapi anthropic requests python-dotenv python-multipart phonenumbers uvicorn
uvicorn app:app --reloadThen open http://127.0.0.1:8000 (Second Look) and http://127.0.0.1:8000/secondscan (SecondScan).
--reload restarts the server whenever you save app.py. Edits to the .html pages or the files in static/ only need a browser refresh (Cmd+Shift+R if the old CSS/JS is cached).
prototype.html: Second Look prototype (served at/)secondscan.html: SecondScan page markup (served at/secondscan)patterns.html: common scam patterns page (served at/secondscan/patterns)static/secondscan.css,static/secondscan.js: SecondScan styles and script (served at/static/)static/patterns.css,static/patterns.js: patterns page styles and the example galleryapp.py: FastAPI app and SecondScan APIsignals.py: the rule-based scam signalsphone_lookup.py: phone number facts (numbering plan and optional Twilio carrier lookup) and risk signalssupabase/schema.sql: thescanstable the API reads and writesanalysis/: Second Look trigger scoring on the synthetic HuskyHack datadeck/: Second Look presentation slidesscreenshots/,test-samples/: SecondScan screenshots and example scam messages
This six-frame storyboard follows a member reviewing a $500 P2P payment to someone impersonating Ryan Gosling. She uses Second Look to review a WhatsApp screenshot, considers the transaction risk factors, chooses “Let me think about it,” and cancels the payment before questioning the request on WhatsApp.
The comic uses the supplied Sound Credit Union interface design. Its illustrative score of 55 is a confidence score, where higher means greater confidence. The prototype's risk score uses a different scale, as described in DESIGN.md.
