Payment scams work by rushing people. A message arrives with a link and a deadline, and the money is gone before the receiver stops to think. PayShield Hybrid is a checker you run before you pay. Paste a payment link, a payment-request message, or a crypto address, and it gives you two independent judgements before you act.

The first judgement comes from a deterministic rule engine that runs fully offline in the browser. It runs 18 named checks and reports plain-English findings, never a bare score. The checks cover brand lookalike domains (leetspeak swaps such as paypa1, near-miss spellings, brand names parked in subdomains, punycode hosts), link tricks (unencrypted http links, URL shorteners, raw IP addresses, destinations hidden behind an @ sign, risky domain endings), and message patterns scammers reuse (seed phrase or private key requests, send-money-first conditions, guaranteed returns, urgency pressure, QR-to-receive reversal scams, identity document requests, wallet verify lures, airdrop lures, fake support routing, gift card or wire payment demands, and secrecy coaching). Each input gets a verdict of Safe, Caution, or Danger with the reasons listed.

The second judgement is an AI second opinion from Firebase AI Logic hybrid inference. One generateContent call prefers Gemini Nano on the device through the Chrome Prompt API and falls back to a cloud Gemini model when on-device inference is not available. A mode picker maps to the Firebase AI Logic inference modes: Hybrid uses PREFER_ON_DEVICE, On-device only uses ONLY_ON_DEVICE, and Cloud only uses ONLY_IN_CLOUD. The result panel shows a badge read from the response inferenceSource, so the user always sees which model answered. The AI receives the rule engine findings with the pasted text and returns a verdict, a short headline, a plain-English explanation, key risks, and one recommended action.

The final banner combines both judgements and the stricter verdict always wins. Hybrid mode also has a privacy shortcut. When the local rules already find high-confidence scam signals, the check resolves on the device and the pasted text never leaves the browser. The user can still ask the AI explicitly with an Ask AI anyway button.

The checker is honest about its limits. A bare crypto address is never called safe. It gets Caution with guidance, because an address string alone carries no reputation and the engine cannot see its history. With no Firebase configuration present, the app still loads and the rule engine still works, and the AI panel explains what is missing instead of failing.

PayShield Hybrid is for anyone who receives payment requests in chat apps or email and wants a fast second look before paying: freelancers and small sellers who get paid through links, people who receive crypto payment requests, and family members who are often the target of payment scams.

Built With

Share this project:

Updates

Submission history