How sigangandegwa/halisiapp works
Halisi detects brand impersonation and payment fraud, giving customers a verdict before payment and merchants evidence-backed response tools. The principal flow is a customer-submitted page or handle routed through the API into profile acquisition, visual/identity/payment/language scoring, and scan/threat persistence; threat alerts and remediation serve the merchant follow-up. The README also documents payment-number checks, verified merchant pages, community reporting, dashboards, and simulator capabilities. Relationships use README statements and SOURCE INDEX references; unsampled modules are represented at their enclosing directory where needed.
Main entry points: services/check.py Check pipeline · router.py API router · repository.py Repository · endpoints/check.py Check endpoint
Components 25
Customer and merchant experience
- Page check
frontend/src/components/checker/checker.tsx - Payment check
frontend/src/components/pay/pay-checker.tsx - Verified page
frontend/src/app/(public)/v/[slug]/page.tsx - Threat dashboard
frontend/src/app/dashboard/page.tsx - Community report
frontend/src/components/report/report-form.tsx - Simulator
frontend/src/components
API and channels
- FastAPI app
backend/app/main.py - API router
backend/app/api/v1/router.py - Check endpoint
backend/app/api/v1/endpoints/check.py - Merchant endpoints
backend/app/api/v1/endpoints/merchants.py - Report endpoints
backend/app/api/v1/endpoints/reports.py - Threat endpoints
backend/app/api/v1/endpoints/threats.py - Messaging channels
backend/app/channels
Detection and ingestion
- Check pipeline
backend/app/services/check.py - Scoring engine
backend/app/engine/scorer.py - Visual matching
backend/app/engine - Profile ingestion
backend/app/ingestion - Payment validation
backend/app/ingestion/daraja.py
Merchant response
- Threat alerts
backend/app/alerts/dispatcher.py - Remediation kit
backend/app/services/remediation.py
Persistence and integrations
- Repository
backend/app/core/repository.py - Supabase
- NVIDIA NIM
Other components
- Customer
- Merchant
Connections 29
- Customer → Page check: submits page
- Page check → Check endpoint: requests check
- Check endpoint → Check pipeline: invokes pipeline
backend/app/api/v1/endpoints/check.py - Check pipeline → Profile ingestion: acquires profile
backend/app/services/check.py - Check pipeline → Visual matching: extracts features
backend/app/services/check.py - Check pipeline → Scoring engine: scores signals
backend/app/services/check.py - Check pipeline → Repository: stores scan and threat
backend/app/services/check.py - Check pipeline → Threat alerts: dispatches alert
backend/app/services/check.py - Customer → Payment check: checks number
- Payment check → Payment validation: validates payment
- Payment validation → Repository: checks payment data
- Merchant → Verified page: shares certificate
- Merchant → Threat dashboard: reviews threats
- Threat dashboard → Threat endpoints: loads threat data
- Merchant → Community report: submits report
- Community report → Report endpoints: sends report
- Customer → Simulator: tries scenarios
- FastAPI app → API router: mounts router
backend/app/main.py - API router → Check endpoint: registers route
backend/app/api/v1/router.py - API router → Merchant endpoints: registers route
backend/app/api/v1/router.py - API router → Report endpoints: registers route
backend/app/api/v1/router.py - API router → Threat endpoints: registers route
backend/app/api/v1/router.py - API router → Messaging channels: mounts channels
backend/app/api/v1/router.py - Merchant endpoints → Repository: reads and writes
backend/app/api/v1/endpoints/merchants.py - Report endpoints → Repository: records reports
backend/app/api/v1/endpoints/reports.py - Repository → Supabase: persists records
- Check pipeline → Remediation kit: grounds response kit
- Remediation kit → NVIDIA NIM: drafts with model
- Merchant → Remediation kit: reviews and sends