How shreya0223/sahayak works
SahayaK is a role-based, AI-assisted agriculture and healthcare problem-to-solution ecosystem. Its principal journey runs from community problem reporting and analysis through discovery/team formation and project work, then expert and community validation to impact tracking. The README also describes knowledge sharing, blueprints, grants, voice support, and role-specific oversight. The in-browser Zustand store is the documented mock API and persisted state layer; Supabase is used for the optional email OTP handshake. Source excerpts are partial, so edges are limited to documented or indexed relationships.
Main entry points: store.ts Persisted mock API · App.tsx Application routes · Discover.tsx Discover problems · ProjectWorkspace.tsx Project workspace
Components 34
Problem to impact
- Report problem
src/pages/ReportProblem.tsx - AI analysis and matching
src/data/store.ts - Discover problems
src/pages/Discover.tsx - Problem detail
src/pages/ProblemDetail.tsx - Field testing and feedback
src/pages/ProblemCommunityPage.tsx - Impact measurement
src/pages/Impact.tsx
Teams and knowledge
- Project workspace
src/pages/ProjectWorkspace.tsx - Student matching
src/pages/StudentDashboard.tsx - Knowledge Ground
src/pages/KnowledgeGround.tsx - Teams
src/pages/Teams.tsx
Solution resources
- Solution blueprints
src/pages/Blueprints.tsx - Blueprint and grant data
src/data/programs.ts - Grants
src/pages/Grants.tsx - Voice helpline
src/pages/VoiceHelpline.tsx
Roles and oversight
- Authentication and onboarding
src/pages/Auth.tsx - Onboarding
src/pages/Onboarding.tsx - Expert validation
src/pages/ExpertConsole.tsx - Administration and audit
src/pages/AdminDashboard.tsx - Community dashboard
src/pages/CommunityDashboard.tsx - Industry console
src/pages/IndustryConsole.tsx - Profile
src/pages/Profile.tsx - Notifications
src/pages/Notifications.tsx - Home
src/pages/Home.tsx
Application and state
- Persisted mock API
src/data/store.ts - Demo dataset
src/data/seed.ts - Domain model
src/data/types.ts - Application routes
src/App.tsx - Supabase Auth
src/lib/supabase.ts - Translations
src/i18n.ts - Shared UI components
src/ui/common.tsx
Other components
- Community member
- Student
- Domain expert
- Supabase
Connections 41
- Community member → Report problem: reports
README.md - Report problem → Persisted mock API: submits problem
src/pages/ReportProblem.tsx - Persisted mock API → Demo dataset: initializes from
src/data/store.ts - Persisted mock API → Domain model: uses models
src/data/store.ts - Persisted mock API → AI analysis and matching: analyzes and matches
README.md - Student → Discover problems: browses
README.md - Discover problems → Persisted mock API: reads problems
src/pages/Discover.tsx - Discover problems → Problem detail: opens
src/pages/Discover.tsx - Problem detail → Persisted mock API: reads problem
src/pages/ProblemDetail.tsx - Student → Student matching: seeks matches
README.md - Student matching → Project workspace: creates project
README.md - Project workspace → Persisted mock API: updates tasks and files
src/pages/ProjectWorkspace.tsx - Project workspace → Expert validation: requests validation
README.md - Domain expert → Expert validation: reviews solution
README.md - Expert validation → Persisted mock API: records review
src/pages/ExpertConsole.tsx - Community member → Field testing and feedback: tests solution
README.md - Field testing and feedback → Persisted mock API: records feedback
src/pages/ProblemCommunityPage.tsx - Impact measurement → Persisted mock API: reads outcomes
src/pages/Impact.tsx - Community member → Knowledge Ground: shares knowledge
- Knowledge Ground → Persisted mock API: reads and writes posts
src/pages/KnowledgeGround.tsx - Solution blueprints → Blueprint and grant data: reads blueprints
src/pages/Blueprints.tsx - Grants → Blueprint and grant data: reads grants
src/pages/Grants.tsx - Voice helpline → Persisted mock API: uses helpline data
src/pages/VoiceHelpline.tsx - Authentication and onboarding → Persisted mock API: uses account state
src/pages/Auth.tsx - Authentication and onboarding → Supabase Auth: uses OTP client
src/pages/Auth.tsx - Supabase Auth → Supabase: verifies OTP
src/lib/supabase.ts - Student → Onboarding: sets up account
- Onboarding → Persisted mock API: updates profile
src/pages/Onboarding.tsx - Administration and audit → Persisted mock API: monitors pipeline
src/pages/AdminDashboard.tsx - Community dashboard → Persisted mock API: reads community state
src/pages/CommunityDashboard.tsx - Industry console → Persisted mock API: reads project state
src/pages/IndustryConsole.tsx - Profile → Persisted mock API: reads profile
src/pages/Profile.tsx - Notifications → Persisted mock API: reads notifications
src/pages/Notifications.tsx - Home → Persisted mock API: reads dashboard state
src/pages/Home.tsx - Application routes → Authentication and onboarding: routes to
src/App.tsx - Application routes → Report problem: routes to
src/App.tsx - Application routes → Discover problems: routes to
src/App.tsx - Application routes → Project workspace: routes to
src/App.tsx - Application routes → Translations: uses translations
src/App.tsx - Translations → Persisted mock API: reads language
src/i18n.ts - Application routes → Shared UI components: renders shared UI
src/App.tsx