How abhisheksum/rakshak-digital-brand-protection works
Rakshak is a digital brand-protection application: an organisation registers a brand and official assets, submits or scans app/social candidates, and reviews scored findings. The main runtime path runs from the React application through its API client to FastAPI routes, then through candidate collection, exclusion, scoring, and persisted findings. The README documents manual social submissions, CSV imports, Apple App Store searches, demo mode, and investigation workflows. Some frontend and backend modules were not sampled; their documented capabilities are included, while uncertain internal calls are omitted.
Main entry points: App.tsx Rakshak UI · scans.py Scan orchestration · database.py Relational database · alerts.py Findings and investigation
Components 27
Web application
- Rakshak UI
frontend/src/App.tsx - Brand profiles
frontend/src/pages/BrandProfilesView.tsx - Brand setup
frontend/src/pages/BrandSetupWizard.tsx - Social monitoring
frontend/src/pages/SocialMonitoringView.tsx - App monitoring
frontend/src/pages/AppMonitoringView.tsx - Scan history
frontend/src/pages/ScanHistoryView.tsx - Threat investigation
frontend/src/pages/ThreatDetailsView.tsx - Overview dashboard
frontend/src/pages/OverviewView.tsx - Sign in and register
frontend/src/pages/AuthPage.tsx - API client
frontend/src/services/api.ts
API and identity
- FastAPI application
backend/app/main.py - Authentication
backend/app/api/auth.py - Brand management
backend/app/api/brands.py - Scan orchestration
backend/app/api/scans.py - Findings and investigation
backend/app/api/alerts.py
Candidate analysis
- Social candidates
backend/app/collectors/social_collector.py - App Store candidates
backend/app/collectors/app_collector.py - Official asset exclusion
backend/app/core/exclusion.py - Risk scoring
backend/app/core/scoring.py - Finding construction
backend/app/core/findings.py
Brand and findings data
- Relational database
backend/app/database.py - Brand and asset records
backend/app/models/brand.py - Alert records
backend/app/models/alert.py - Scan records
backend/app/models/scan.py
Other components
- Organisation user
- Apple Search API
- Submitted candidates
Connections 37
- Organisation user → Rakshak UI: uses
- Rakshak UI → Brand profiles: shows
frontend/src/App.tsx - Rakshak UI → Brand setup: shows
frontend/src/App.tsx - Rakshak UI → Social monitoring: shows
frontend/src/App.tsx - Rakshak UI → App monitoring: shows
frontend/src/App.tsx - Rakshak UI → Scan history: shows
frontend/src/App.tsx - Rakshak UI → Threat investigation: shows
frontend/src/App.tsx - Rakshak UI → Overview dashboard: shows
frontend/src/App.tsx - Rakshak UI → Sign in and register: shows
frontend/src/App.tsx - Rakshak UI → API client: requests data
frontend/src/App.tsx - Sign in and register → API client: authenticates
frontend/src/pages/AuthPage.tsx - API client → FastAPI application: calls API
- FastAPI application → Authentication: mounts
backend/app/main.py - FastAPI application → Brand management: mounts
backend/app/main.py - FastAPI application → Scan orchestration: mounts
backend/app/main.py - FastAPI application → Findings and investigation: mounts
backend/app/main.py - Brand management → Brand and asset records: reads and writes
backend/app/api/brands.py - Brand management → Relational database: uses sessions
backend/app/api/brands.py - Authentication → Relational database: uses sessions
backend/app/api/auth.py - Authentication → Organisation user: persists accounts
backend/app/api/auth.py - Scan orchestration → Social candidates: collects candidates
backend/app/api/scans.py - Scan orchestration → App Store candidates: collects candidates
backend/app/api/scans.py - Scan orchestration → Official asset exclusion: excludes assets
backend/app/api/scans.py - Scan orchestration → Risk scoring: scores candidates
backend/app/api/scans.py - Scan orchestration → Finding construction: builds findings
backend/app/api/scans.py - Scan orchestration → Relational database: uses sessions
backend/app/api/scans.py - Scan orchestration → Scan records: persists scans
backend/app/api/scans.py - Scan orchestration → Alert records: persists alerts
backend/app/api/scans.py - Findings and investigation → Risk scoring: scores submissions
backend/app/api/alerts.py - Findings and investigation → Official asset exclusion: checks official assets
backend/app/api/alerts.py - Findings and investigation → Alert records: reads and writes
backend/app/api/alerts.py - Findings and investigation → Relational database: uses sessions
backend/app/api/alerts.py - Submitted candidates → Findings and investigation: submits manually or CSV
- Apple Search API → App Store candidates: returns search results
- Brand and asset records → Relational database: stored in
backend/app/models/brand.py - Alert records → Relational database: stored in
backend/app/models/alert.py - Scan records → Relational database: stored in
backend/app/api/scans.py