How pro-coder12353/saif-ai works
Saif-AI is a browser-based UAE scam-defense app. Users enter from the landing screen, submit suspicious text or an image (optionally using the delivery-scam scan), receive Gemini analysis, and can use multilingual UI and reporting features. App.tsx also contains the map, government-verification, and training views. The README documents Google Maps and Al Ameen capabilities, but their underlying integrations are not shown in the sampled source; those links are marked optional/unverified.
Main entry points: App.tsx App controller · LandingPage.tsx Landing screen · types.ts App data types · geminiService.ts Gemini analysis
Components 19
App experience
- App controller
App.tsx - Landing screen
components/LandingPage.tsx - Image uploader
components/FileUploader.tsx - Delivery shield
App.tsx - Threat map
App.tsx - Gov-ID view
App.tsx - Cyber training
App.tsx - Authority reporting
App.tsx
Threat analysis
- Gemini analysis
services/geminiService.ts
Localization
- Translation service
services/lingoService.ts - Language selector
components/LanguageSelector.tsx
Shared UI and types
- Translation strings
constants.ts - App data types
types.ts - Saif logo
components/Logo.tsx
Other components
- UAE resident
- Google Gemini API
- Lingo.dev API
- Google Maps
- Al Ameen service
Connections 24
- UAE resident → Landing screen: opens
README.md - App controller → Landing screen: renders
App.tsx - Landing screen → App controller: enters scanner
components/LandingPage.tsx - App controller → Image uploader: renders
App.tsx - Image uploader → App controller: passes selected file
components/FileUploader.tsx - App controller → Gemini analysis: requests analysis
App.tsx - Gemini analysis → Google Gemini API: submits content
services/geminiService.ts - App controller → Translation service: requests translations
App.tsx - Translation service → Lingo.dev API: translates text
services/lingoService.ts - App controller → Language selector: renders
App.tsx - Language selector → Translation strings: lists supported languages
components/LanguageSelector.tsx - App controller → Delivery shield: renders
App.tsx - App controller → Threat map: renders
App.tsx - App controller → Gov-ID view: renders
App.tsx - App controller → Cyber training: renders
App.tsx - App controller → Authority reporting: renders
App.tsx - Threat map → Google Maps: visualizes threat data
README.md - Authority reporting → Al Ameen service: prepares reports for
README.md - App controller → Saif logo: renders
App.tsx - App controller → App data types: uses view and language types
App.tsx - Landing screen → Saif logo: renders
components/LandingPage.tsx - Landing screen → App data types: uses translation type
components/LandingPage.tsx - Gemini analysis → App data types: uses language type
services/geminiService.ts - Translation service → App data types: uses translation types
services/lingoService.ts