An enterprise-grade, high-fidelity security platform designed to protect citizens from financial scams and empower law enforcement agencies (LEA) with precision intelligence and automated case correlation.
The platform operates on a decoupled, event-driven architecture designed to process heavy analytical feeds and OCR telemetry asynchronously without blocking user interaction.
graph TD
Citizen[Citizen / Report Portal] -->|Ingest Evidence| API[FastAPI Gateway]
Officer[LEA Command Centre] -->|Query Graph & Alerts| API
API -->|Save processing state| DB[(MongoDB Atlas)]
API -->|Dispatch Task| Queue[Redis Broker]
Queue -->|Process Asynchronously| Worker[Celery Analytics Worker]
Worker -->|OCR / Whisper Transcription| Extractor[spaCy / Gemini Entities]
Worker -->|Find Syndicate Matches| Neo4j[(Neo4j Graph Database)]
Worker -->|Trigger Matches| AlertSystem[Real-time Alert Hub]
- Evidence Ingestion: Citizens upload threat reports (screenshots, chats, call recordings) and LEA teams import feeds.
- Asynchronous Processing (Celery & Redis): FastAPI registers the report immediately in MongoDB with a
PROCESSINGstate and delegates extraction and correlation tasks to a Celery worker. - Entity Extraction (AI OCR/NLP): The worker uses OCR on screenshots or processes transcripts to extract key identifiers (phone numbers, UPI handles, merchant details).
- Relational Syndicate Matching: Extracted entities are cross-referenced in a Neo4j cluster to detect links with known fraud syndicates.
- Real-time Alert Dispatch: If a correlation is detected, the system generates a priority alert, dispatching it directly to the LEA Command Center and flagging linked reports.
- AI Scam Checker: Interactive chatbot leveraging NLP to analyze suspicious emails, phone calls, and communication text.
- Counterfeit Banknote Verification Scanner: A live computer vision scanner checking aspect ratio parameters (against target RBI dimensions), color spectrum profile (HSV ranges), security thread contrast (vertical Sobel analysis), and watermark textures (standard deviation variance) to verify note authenticity.
- Verified Entity Lookup: Instant lookup for UPI handles, mobile numbers, and bank accounts against a national database of cleared and flagged coordinates.
- Cases Tracker: Real-time status update for submitted cases.
- Real-time Alert Feed: Direct alert routing for high-confidence threats (e.g. Digital Arrest campaigns).
- Active Case Manager: Interface to assign cases, review transcripts, track frozen funds, and document analyst logs.
- Interactive Fraud Graph: Visualized relational web (built using React Flow) showing linked phone numbers, bank accounts, and cluster communities.
- LEA Currency Scan Verification: Administrative portal for checking suspect currency notes.
- Frontend: React (TSX), Tailwind CSS / Custom Glassmorphic CSS variables, Vite, React Flow, Framer Motion, Lucide Icons.
- Backend: FastAPI, Beanie ODM (MongoDB), Uvicorn, Python 3.13+.
- Workers & Databases: Celery, Redis, MongoDB Atlas, OpenCV, Pillow.
- Node.js (v18+)
- Python (v3.10+)
- Navigate to the backend directory:
cd backend - Initialize virtual environment:
python -m venv .venv
- Activate virtual environment:
- Windows:
.venv\Scripts\activate - macOS/Linux:
source .venv/bin/activate
- Windows:
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables by copying
.env.exampleto a new.envfile in the backend folder and filling in your local configuration details. - Run the FastAPI development server:
The server runs at http://localhost:8000. Interactive Swagger documentation is available at http://localhost:8000/docs.
python run.py
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Run the Vite development server:
The client dashboard loads at http://localhost:5173.
npm run dev
Ensure a Redis broker is running on your machine, then launch the worker process:
cd backend
celery -A app.worker.celery_app worker --loglevel=info(Note: If the MongoDB database or Redis broker is offline, the backend automatically operates on simulated fallback mode to keep all features fully functional for local developer demos.)
- Audit Trail Ledger: Immutable logging for LEA actions.
- Rule 4 Standard Schema: All API endpoints return a standardized, uniform JSON structure:
{ "success": true, "message": "Action completed successfully", "data": {} }