How rohitrksingh1920/cybermitra works
CyberMitra is a bilingual cybersecurity awareness and assistance platform. Citizens browse threat education and emergency guidance, check or report suspicious identifiers, and prepare and track CyberMitra complaint drafts; official reporting remains an external step. The graph includes the React experience, FastAPI routing and persistence, and the documented PostgreSQL service. Some frontend components are represented from the tree and README because their implementation excerpts were not provided; API integration details are therefore shown only where documentation supports them.
Main entry points: App.jsx Application shell · LanguageContext.jsx Bilingual content · suspects.py Suspect endpoints · database.py Database session setup
Components 23
Citizen experience
- Application shell
frontend/src/App.jsx - Bilingual content
frontend/src/context/LanguageContext.jsx - Complaint assistance
frontend/src/components/ComplaintModal.jsx - Complaint tracker
frontend/src/components/ComplaintTracker.jsx - Suspect checker
frontend/src/components/SuspectChecker.jsx - Legacy API integration
frontend/src/legacy/script_7.js
Safety guidance
- Awareness resources
frontend/src/components/SafetyTips.jsx - Security advisories
frontend/src/components/Advisories.jsx - Help and FAQ
frontend/src/components/FAQ.jsx - SOS incident triage
frontend/src/components/SOSSection.jsx - Incident guidance data
frontend/src/data/incidents.js - Official reporting resources
frontend/src/components/Contacts.jsx
Backend API
- FastAPI application
backend/app/main.py - Complaint endpoints
backend/app/routers/complaints.py - Suspect endpoints
backend/app/routers/suspects.py - Other API routes
backend/app/routers/misc.py - Request and response schemas
backend/app/schemas.py - Identifier normalization
backend/app/utils/normalize.py
Persistent data
- Database session setup
backend/app/database.py - Application data models
backend/app/models.py - PostgreSQL database
Other components
- Citizen
- Official cybercrime channels
Connections 37
- Citizen → Application shell: uses
README.md - Application shell → Complaint assistance: renders
frontend/src/App.jsx - Application shell → Complaint tracker: renders
frontend/src/App.jsx - Application shell → Suspect checker: renders
frontend/src/App.jsx - Application shell → SOS incident triage: renders
frontend/src/App.jsx - Application shell → Awareness resources: renders
frontend/src/App.jsx - Application shell → Security advisories: renders
frontend/src/App.jsx - Application shell → Help and FAQ: renders
frontend/src/App.jsx - Complaint assistance → Bilingual content: reads translations
frontend/src/components/ComplaintModal.jsx - Complaint tracker → Bilingual content: reads translations
frontend/src/components/ComplaintTracker.jsx - Suspect checker → Bilingual content: reads translations
frontend/src/components/SuspectChecker.jsx - Awareness resources → Bilingual content: reads translations
frontend/src/components/SafetyTips.jsx - Security advisories → Bilingual content: reads translations
frontend/src/components/Advisories.jsx - Help and FAQ → Bilingual content: reads translations
frontend/src/components/FAQ.jsx - SOS incident triage → Incident guidance data: reads guidance
frontend/src/components/SOSSection.jsx - SOS incident triage → Complaint assistance: opens complaint
frontend/src/App.jsx - Complaint assistance → Legacy API integration: submits draft
- Complaint tracker → Legacy API integration: requests tracking
- Suspect checker → Legacy API integration: checks identifier
- Legacy API integration → FastAPI application: sends API requests
README.md - FastAPI application → Complaint endpoints: registers
backend/app/main.py - FastAPI application → Suspect endpoints: registers
backend/app/main.py - FastAPI application → Other API routes: registers
backend/app/main.py - Complaint endpoints → Request and response schemas: validates payloads
backend/app/routers/complaints.py - Suspect endpoints → Request and response schemas: validates payloads
backend/app/routers/suspects.py - Other API routes → Request and response schemas: uses schemas
backend/app/routers/misc.py - Suspect endpoints → Identifier normalization: normalizes identifiers
backend/app/routers/suspects.py - Complaint endpoints → Database session setup: obtains sessions
backend/app/routers/complaints.py - Suspect endpoints → Database session setup: obtains sessions
backend/app/routers/suspects.py - Other API routes → Database session setup: obtains sessions
backend/app/routers/misc.py - Database session setup → Application data models: creates tables
backend/app/database.py - Database session setup → PostgreSQL database: connects
README.md - Complaint endpoints → Application data models: reads and writes
backend/app/routers/complaints.py - Suspect endpoints → Application data models: reads and writes
backend/app/routers/suspects.py - Other API routes → Application data models: uses records
backend/app/routers/misc.py - Official reporting resources → Official cybercrime channels: directs users
README.md - Citizen → Official cybercrime channels: files official report
README.md