How neerjain2008/scamshield-oss works
ScamShield is a privacy-focused scam detection web app. Users enter a message or URL, or provide a screenshot for in-browser OCR; the home page runs deterministic analysis, then requests an explanation from the local Ollama service and displays the result and recommended actions. The README also describes accessibility features, local-only processing, and message, URL, and screenshot scanners. Source excerpts show the main orchestration and API fallback; some UI components and OCR internals were not fully sampled, so their internal relationships are not inferred.
Main entry points: page.tsx Scanner Orchestrator · audio.ts Speech And Sound · AnalysisCard.tsx Message URL Screenshot Scanner · route.ts Explanation API
Components 23
Scanning Workflow
- Scanner Orchestrator
src/app/page.tsx - Message URL Screenshot Scanner
src/components/AnalysisCard.tsx - Screenshot OCR
src/components/AnalysisCard.tsx - Security Results Dashboard
src/components/SecurityDashboardResult.tsx
Threat Intelligence
- Deterministic Scam Engine
src/lib/scamEngine.ts - Explanation API
src/app/api/explain/route.ts
User Experience
- Speech And Sound
src/lib/audio.ts - Accessibility Settings
src/components/AdvancedSettingsModal.tsx - Navigation
src/components/Navbar.tsx - Hero Section
src/components/HeroSection.tsx - Feature Section
src/components/FeatureSection.tsx - How It Works
src/components/HowItWorksSection.tsx - Interactive Demo
src/components/DemoSection.tsx - Open Source Section
src/components/OpenSourceSection.tsx - Footer
src/components/Footer.tsx - Brand Logo
src/components/BrandLogo.tsx - GitHub Icon
src/components/icons/GithubIcon.tsx - Geometric Hero
src/components/ui/shape-landing-hero.tsx - Hero Component Demo
src/components/ui/demo.tsx
Privacy And Guidance
- Privacy Information
src/app/privacy/page.tsx - Local Processing Guide
src/app/why-local-matters/page.tsx
Other components
- User
- Local Ollama
Connections 25
- User → Scanner Orchestrator: opens scanner
src/app/page.tsx - Scanner Orchestrator → Message URL Screenshot Scanner: renders and handles input
src/app/page.tsx - Message URL Screenshot Scanner → Screenshot OCR: recognizes screenshots
README.md - Scanner Orchestrator → Deterministic Scam Engine: analyzes input
src/app/page.tsx - Scanner Orchestrator → Explanation API: requests explanation
src/app/page.tsx - Explanation API → Deterministic Scam Engine: creates fallback explanation
src/app/api/explain/route.ts - Explanation API → Local Ollama: queries local model
src/app/api/explain/route.ts - Scanner Orchestrator → Security Results Dashboard: renders analysis
src/app/page.tsx - Scanner Orchestrator → Accessibility Settings: renders settings
src/app/page.tsx - Scanner Orchestrator → Navigation: renders navigation
src/app/page.tsx - Scanner Orchestrator → Hero Section: renders hero
src/app/page.tsx - Scanner Orchestrator → Feature Section: renders features
src/app/page.tsx - Scanner Orchestrator → How It Works: renders workflow guide
src/app/page.tsx - Scanner Orchestrator → Interactive Demo: renders demos
src/app/page.tsx - Scanner Orchestrator → Open Source Section: renders open source section
src/app/page.tsx - Scanner Orchestrator → Footer: renders footer
src/app/page.tsx - Scanner Orchestrator → Speech And Sound: uses audio
src/app/page.tsx - Message URL Screenshot Scanner → Speech And Sound: uses audio feedback
src/components/AnalysisCard.tsx - Security Results Dashboard → Speech And Sound: uses audio feedback
src/components/SecurityDashboardResult.tsx - Accessibility Settings → Speech And Sound: configures audio
src/components/AdvancedSettingsModal.tsx - Open Source Section → GitHub Icon: renders icon
src/components/OpenSourceSection.tsx - Privacy Information → Brand Logo: renders brand
src/app/privacy/page.tsx - Local Processing Guide → Brand Logo: renders brand
src/app/why-local-matters/page.tsx - Local Processing Guide → Geometric Hero: renders shapes
src/app/why-local-matters/page.tsx - Hero Component Demo → Geometric Hero: renders demo
src/components/ui/demo.tsx