How sarika1628/reva_safepay works
EasyPay & SafePay is an accessibility-focused payment simulator and cyber-scam prevention application; it does not transfer real money. The main user journey is to review a simulated payment, assess recipient and message risk, and then practice or confirm the transaction. Separate safety capabilities include screenshot verification, scam-registry lookup, privacy redaction, emergency wallet freeze, and scenario-based training. The README documents the main API and feature relationships; source excerpts additionally show application routing, accessibility state, model inference, and persistence setup. Some unsampled feature-level wiring is therefore represented only where documented.
Main entry points: api.js API client · App.jsx Client navigation · main.py FastAPI app · database.py SQLite ledger
Components 25
Accessible Client
- Client navigation
frontend/src/App.jsx - Payment review
frontend/src/pages/SendPayment.jsx - Risk review
frontend/src/components/ConditionalScamRiskInterface.jsx - Accessibility tools
frontend/src/context/AccessibilityContext.jsx - Demo user state
frontend/src/context/UserContext.jsx - API client
frontend/src/services/api.js
Scam Safety
- Scam checker
frontend/src/pages/SafePayScamChecker.jsx - Screenshot checker
frontend/src/pages/ScreenshotScamDetector.jsx - Privacy redactor UI
frontend/src/pages/PrivacyRedactor.jsx - Scam registry
frontend/src/pages/ScamDatabase.jsx - Practice scenarios
frontend/src/pages/PracticeSandbox.jsx - Safety centre
frontend/src/pages/SafetyCentre.jsx - Camera demo
frontend/src/pages/FaceCameraDemo.jsx
Backend Services
- FastAPI app
backend/app/main.py - Payment routes
backend/app/routers/payments.py - Scam routes
backend/app/routers/scam_shield.py - Compatibility routes
backend/app/routers/compat.py - Practice routes
backend/app/routers/practice.py - Emergency routes
backend/app/routers/emergency.py - Scam intelligence
backend/app/services/scam_engine.py - ML model service
backend/app/ml/model_service.py - PII sanitizer
backend/app/services/privacy_redactor.py
Local Persistence
- SQLite ledger
backend/app/database.py - Domain records
backend/app/models.py
Other components
- Payment user
Connections 38
- Payment user → Client navigation: uses
README.md - Client navigation → Payment review: routes to
frontend/src/App.jsx - Client navigation → Scam checker: routes to
frontend/src/App.jsx - Client navigation → Screenshot checker: routes to
frontend/src/App.jsx - Client navigation → Privacy redactor UI: routes to
frontend/src/App.jsx - Client navigation → Scam registry: routes to
frontend/src/App.jsx - Client navigation → Practice scenarios: routes to
README.md - Client navigation → Safety centre: routes to
frontend/src/App.jsx - Client navigation → Camera demo: routes to
frontend/src/App.jsx - Payment review → Risk review: renders
frontend/src/pages/SendPayment.jsx - Payment review → API client: requests assessment
frontend/src/pages/SendPayment.jsx - Scam checker → API client: requests detection
frontend/src/pages/SafePayScamChecker.jsx - Scam registry → API client: verifies VPA
frontend/src/pages/ScamDatabase.jsx - Camera demo → API client: requests status
frontend/src/pages/FaceCameraDemo.jsx - Demo user state → API client: requests user data
frontend/src/context/UserContext.jsx - Payment review → Accessibility tools: uses guidance
frontend/src/pages/SendPayment.jsx - Scam checker → Risk review: renders
frontend/src/pages/SafePayScamChecker.jsx - API client → Payment routes: REST requests
README.md - API client → Scam routes: REST requests
README.md - API client → Compatibility routes: REST requests
README.md - API client → Practice routes: REST requests
README.md - API client → Emergency routes: REST requests
README.md - FastAPI app → Payment routes: registers
backend/app/main.py - FastAPI app → Scam routes: registers
backend/app/main.py - FastAPI app → Compatibility routes: registers
backend/app/main.py - FastAPI app → Practice routes: registers
backend/app/main.py - FastAPI app → Emergency routes: registers
backend/app/main.py - Payment routes → Scam intelligence: assesses risk
backend/app/routers/payments.py - Scam routes → Scam intelligence: analyzes scams
backend/app/routers/scam_shield.py - Compatibility routes → Scam intelligence: checks screenshots
backend/app/routers/compat.py - Compatibility routes → PII sanitizer: redacts PII
backend/app/routers/compat.py - Scam intelligence → ML model service: gets predictions
backend/app/services/scam_engine.py - FastAPI app → SQLite ledger: creates tables
backend/app/main.py - SQLite ledger → Domain records: maps records
backend/app/models.py - Payment routes → SQLite ledger: reads and writes
README.md - Practice routes → SQLite ledger: loads scenarios
README.md - Compatibility routes → SQLite ledger: checks ledger
README.md - Emergency routes → SQLite ledger: updates wallet
backend/app/routers/emergency.py