How mayur-anand-cys/crane-apple-otter-amber works
Cyber Suraksha is an interactive cybersecurity-awareness app focused on phishing, digital-arrest scams, and malicious apps. Users enter a tabbed learning portal, practise scenarios, study locally stored material, take assessments, and consult scam-response guidance. The sampled portal shows how it dispatches to learning sections; the component excerpts also show local study progress and the embedded-preview bridge. Authentication, connector data, and PWA behavior are present in the tree, but their full runtime paths were not sampled, so those links are limited to directly evidenced relationships.
Main entry points: portal.tsx Learning portal · studio.tsx Study studio · __root.tsx Application root · preview-host-bridge.tsx Preview bridge mount
Components 19
Learning experience
- Learning portal
src/components/portal.tsx - Simulator lab
src/components/lab.tsx - Assessments
src/components/assess.tsx - Study studio
src/components/studio.tsx - Site navigation
src/components/shell.tsx
Learning content
- Briefing material
src/data/content.ts - Threat guidance
src/data/portal.ts
Identity and data
- Authentication provider
src/lib/auth/provider.tsx - Auth client
src/lib/auth/client.ts - Connector app data
src/lib/app-data/client.server.ts - Browser storage
src/lib/storage.ts
Hosting and preview
- Application root
src/routes/__root.tsx - Preview bridge mount
src/components/preview-host-bridge.tsx - Preview host bridge
src/lib/preview-host-bridge.ts - PWA middleware
server/middleware/grok-pwa.ts - PWA response helpers
scripts/grok-pwa-shared.mjs
Other components
- Learner
- Connector service
- Grok preview host
Connections 15
- Learner → Learning portal: uses
src/components/portal.tsx - Learning portal → Simulator lab: renders
src/components/portal.tsx - Learning portal → Assessments: renders
src/components/portal.tsx - Learning portal → Study studio: renders
src/components/portal.tsx - Learning portal → Site navigation: renders
src/components/portal.tsx - Learning portal → Threat guidance: reads
src/components/portal.tsx - Study studio → Briefing material: reads
src/components/studio.tsx - Study studio → Browser storage: reads and writes
src/components/studio.tsx - Application root → Authentication provider: mounts
src/routes/__root.tsx - Application root → Preview bridge mount: mounts
src/routes/__root.tsx - Preview bridge mount → Preview host bridge: installs
src/components/preview-host-bridge.tsx - Preview host bridge → Grok preview host: exchanges messages
src/lib/preview-host-bridge.ts - Auth client → Connector service: authenticates
- Connector app data → Connector service: posts tool calls
src/lib/app-data/client.server.ts - PWA middleware → PWA response helpers: uses
server/middleware/grok-pwa.ts