Skip to main content

About the project

Think before you click. Verify before you trust. 🛡️

AntesDePicar (“before you take the bait”) is an open-source web app that helps people in Mexico detect digital scams in WhatsApp messages, SMS, emails and job offers, using an open-weight AI model (Qwen 2.5) running locally with Ollama.

The problem

Fake bank alerts, “your package is held at customs” texts, “mom, I changed my number” messages and fake remote jobs are everyday scams in Mexico. Most tools only say “scam / not scam” without explaining why, so people don’t learn to recognize the next one.

What it does

  • Message analyzer: paste a suspicious message, pick the channel, and Qwen returns a risk level, the likely scam type, each risk signal explained in plain Spanish, and concrete steps to verify safely.
  • Highlighted evidence: suspicious phrases are highlighted and numbered inside the original message.
  • Official verification center: directory of official domains and phone numbers (CONDUSEF, PROFECO, Banxico, banks, couriers) plus a link checker that detects look-alike domains (e.g. bbva-mx-seguridad.xyz).
  • Community alerts feed: common scam patterns and how to spot them; users can report suspicious messages.
  • User accounts & history: sign up / log in, and every analysis is saved to the user’s history in a database. Guest mode is also available.

How the AI works

  1. React sends the message to our FastAPI backend.
  2. The backend builds a prompt with Mexico-specific scam signals and safety rules. The message is passed as data only, to resist prompt injection.
  3. Qwen 2.5 (3B) runs locally through Ollama with structured output (a JSON schema), so the response always has the same shape.
  4. Anti-hallucination check: the backend verifies that every piece of evidence quoted by the model actually exists in the original message. Unverified quotes are flagged to the user.
  5. Errors (Ollama down, timeout, invalid JSON) are handled, with an automatic retry.

Database

Accounts, analysis history and community reports are stored in SQLite. Passwords are hashed with PBKDF2 and sessions use secure random tokens.

Why open-weight AI

  • Privacy: messages may contain personal data and never leave our server.
  • Zero cost per analysis and no dependency on paid APIs.
  • Transparency: model, prompt and code are all open.

Tech stack

React + Vite · Python + FastAPI + Pydantic · SQLite · Ollama · Qwen 2.5 (open-weight) · MIT license

Next steps

A WhatsApp bot, screenshot analysis, real-time community reports with moderation, and explanations in Indigenous languages of Oaxaca.

Team: Fredy, Eduardo, Daniela, Kelly — Hacktoberfest Hack Day Oaxaca 2026

Built with

pythonjavascriptreactnode.jsvitefastapipydanticsqliteollama

AI tools

Coded withClaude CodeClaude Opus 5.5

Prize Categories Entered

  • DigitalOcean

    Best Open-Source AI Project

    Submitted