How saidmansurhon/team works
CRAP is a React dashboard backed by Django REST: an analyst submits a company name, the service requests a scan, and the backend returns a generated or deterministic simulated report and stores it for later listing or retrieval. The report covers employee exposure, brand/identity abuse, and attack-surface risk, with recommendations rendered in the dashboard. The UI also includes a simulated activity stream. Source excerpts establish the scan call and backend generation/storage; history routing is supported by the source index, while details of deployment wiring are not shown.
Main entry points: App.tsx Scan dashboard · views.py Report generation · urls.py API routes · models.py Risk report
Components 13
Assessment dashboard
- Scan dashboard
frontend/src/App.tsx - Scan progress
frontend/src/components/LoadingScanner.tsx - API client
frontend/src/services/riskAnalysisService.ts - Risk findings
frontend/src/components/RiskCard.tsx - Recommendations
frontend/src/components/RecommendationItem.tsx - Simulation stream
frontend/src/components/SimulationLogs.tsx
Risk API
- API routes
backend/risk_api/urls.py - Report generation
backend/risk_api/views.py - Report serializers
backend/risk_api/serializers.py - Report history
backend/risk_api/views.py
Report history
- Risk report
backend/risk_api/models.py
Other components
- Analyst
- Gemini API
Connections 14
- Analyst → Scan dashboard: submits company
frontend/src/App.tsx - Scan dashboard → Scan progress: shows progress
frontend/src/App.tsx - Scan dashboard → API client: requests report
frontend/src/App.tsx - API client → API routes: POST scan
frontend/src/services/riskAnalysisService.ts - API routes → Report generation: routes request
backend/risk_api/urls.py - Report generation → Gemini API: generates report
backend/risk_api/views.py - Report generation → Risk report: stores report
backend/risk_api/views.py - Report generation → Report serializers: uses serializers
backend/risk_api/views.py - Report serializers → Risk report: serializes model
backend/risk_api/serializers.py - Scan dashboard → Risk findings: renders risk areas
frontend/src/App.tsx - Scan dashboard → Recommendations: renders actions
frontend/src/App.tsx - Scan dashboard → Simulation stream: renders stream
frontend/src/App.tsx - API routes → Report history: routes history
backend/risk_api/urls.py - Report history → Risk report: queries reports
backend/risk_api/views.py