Wait. Check the message first.
Ngoja ("wait" in Swahili) gives you a second look before you act on a suspicious SMS, WhatsApp or email. Paste the message, and Ngoja marks the exact words that look like a scam, explains each warning in plain language, and tells you what to do next. Every step it suggests comes from Safaricom's published fraud guidance.
It runs entirely on your phone. Nothing you paste is sent anywhere, saved, or tracked, and after the first visit it keeps working offline.
People in Kenya who use M-PESA and get messages like these:
- "Confirmed. You have received Ksh3,500… sorry, I sent it by mistake, please send it back"
- "Your Fuliza limit has been increased. Send Ksh 250 to unlock it"
- "This is Safaricom customer care. Visit the nearest agent to complete your reversal"
- "You've been shortlisted for a job. Pay the registration fee to receive your contract"
- "Your PayPal account has been limited. Verify within 24 hours at …"
Most victims aren't careless. These messages work because they arrive at a busy moment and push you to act fast. Ngoja is built for that moment.
| Explains every warning | Each flag highlights the words that caused it, says how strong a sign it is, and explains why it matters. |
| Reads English and Swahili | Patterns cover common English, Swahili and Sheng scam wording ("tuma … ili upate", "PIN yako", "kimakosa"). |
| Checks the sender | An M-PESA receipt from a phone number is fake. A message about your account from a personal number is suspicious. |
| Shows where links really go | paypal.account-review.example → really goes to account-review.example. It catches look-alike spellings (safaricorn, paypa1), letters from other alphabets, hidden addresses before an @, short links, bare IP addresses and .apk downloads, without ever opening the link. |
| Lets you overrule it | Any warning can be dismissed with "This doesn't apply here", and the verdict updates. |
| Tells you what to do | Next steps based on what was found, with one-tap dial or copy for 100, 456, 333 and *106#. |
| Helps after the fact | "Already acted?" gives a checklist for "I sent money", "I shared my PIN", "I dialled a code" and "I opened a link". |
| Builds the habit | Practice mode: ten made-up messages, scam or real, with the lesson behind each. |
| Works for more people | Keyboard and screen-reader friendly, high-contrast, dark mode, and an optional "Read this aloud" that uses only on-device voices. |
- This matches a known scam pattern: at least one strong sign, or several weaker ones together.
- Be careful with this message: some warning signs.
- No common warning signs found: Ngoja didn't recognise a trick. It says plainly that this is not the same as safe.
There is deliberately no percentage score. A number like "87% scam" suggests a precision a rules-based checker doesn't have.
- No backend. Ngoja is a static site. There is no API, database, account or analytics.
- The page can't phone home. The Content Security Policy sets
connect-src 'none', so the browser itself blocks any network request from the page, even if a dependency tried. - Shared messages stay local. On Android, a message can be shared straight to the installed app. The service worker answers that page load from its cache, and the app clears the text from the address bar, so the message never reaches the server or its logs.
- Nothing is stored. No localStorage or cookies. Dismissals and checklists live in memory and disappear when the tab closes.
- Strict headers: HSTS,
frame-ancestors 'none',X-Content-Type-Options,Referrer-Policy: no-referrer, COOP/CORP and a locked-downPermissions-Policy(seevercel.json). - Fails safe. If the checker breaks, Ngoja says so and shows the four rules that are always true. It never fails to "safe".
- Two runtime dependencies:
reactandreact-dom.npm auditreports 0 vulnerabilities.
- It reads words, not intent. A message from a friend's hacked account saying "Niko kwa shida, nitumie 1500" contains no warning sign, and Ngoja says it found none. That's why the "no signs" verdict always tells you to call the person on a number you already know. This case is in Practice mode on purpose.
- It can over-warn. A friend writing "URGENT, call me" gets a weak "pressure" flag. You can dismiss it.
- It doesn't know live threats. Rules are written by hand from published guidance. New scam scripts need new rules, and Ngoja doesn't check links against blocklists, since that would mean sending them to a server.
- The interface is English for now. Detection understands Swahili, but the explanations are in English.
Requires Node.js 20 or later.
npm install
npm run dev # http://localhost:5173
npm test # detector tests: scams, confusing real messages, failure cases
npm run build # static output in dist/
npm run preview # serve the production buildOffline support (the service worker) is only active in the production build (npm run build && npm run preview).
- Import this repository in Vercel. It detects Vite: build
npm run build, outputdist. - Deploy. No environment variables or secrets are needed.
vercel.json applies the security headers. Any static host works if it serves those headers.
src/detector/: the checker, plain TypeScript with no dependencies.rules.tsholds each warning sign with its explanation, patterns and escalation (for example, "sent by mistake" becomes a strong sign when the message also asks for the money back).links.tsinspects addresses.analyze.tscombines the findings and the sender into a verdict.src/content/: advice steps (each traceable to a Safaricom source) and the synthetic practice messages.src/components/: the React interface.test/: tests for real scam scripts, look-alike links, messages that must not be flagged (a real M-PESA receipt, "never share your PIN"), dismissals, hostile and oversized input, and non-string input.
All messages in the app and tests are synthetic. Phone numbers are masked with X, and links use the reserved .example domain, so none point to a real person or a live site.
- Safety guidance: Safaricom's fraud-awareness pages (tips, fake M-PESA messages, fake reversals, common scams, secure M-PESA). Ngoja is independent and not affiliated with Safaricom, PayPal or any company named in it.
- Libraries: React, Vite, TypeScript, Vitest, jsdom. Accessibility checked with axe-core.
- AI assistance: built with help from Claude (Anthropic) for code, tests and copy, reviewed by the author.
- Icons and artwork are original.


