How shubhamshevkar2000-maker/lifepass_ai_repoforge works
LifePass AI is a two-sided, consent-driven record and verification platform: citizens manage records and respond to institutions’ access requests, while institutions manage applications. The mobile app also guides citizens from a natural-language goal through requirements, record matching, and consent; the AI service provides document intelligence and task interpretation. The tree and excerpts support several client and AI call paths, but not most Edge Function internals or their database operations, so those connections are omitted. Major capabilities are represented without assuming unsampled wiring.
Main entry points: App.tsx Mobile app router · main.py AI API · InstitutionDashboardFoundation.tsx Institution workspace · consentService.ts Consent service
Components 34
Citizen mobile
- Mobile app router
apps/mobile/App.tsx - Citizen authentication
apps/mobile/src/context/AuthContext.tsx - Record vault
apps/mobile/src/screens/MyRecordsScreen.tsx - Record upload
apps/mobile/src/screens/UploadRecordScreen.tsx - Record service
apps/mobile/src/services/recordService.ts - Goal entry
apps/mobile/src/screens/AiTaskEntryScreen.tsx - Task interpretation
apps/mobile/src/screens/InterpretedTaskScreen.tsx - AI requirement client
apps/mobile/src/services/aiRequirementService.ts - Matching results
apps/mobile/src/screens/MatchingResultsScreen.tsx - Sharing review
apps/mobile/src/screens/ReviewShareScreen.tsx - Consent decision
apps/mobile/src/screens/ConsentScreen.tsx - Consent service
apps/mobile/src/services/consentService.ts - Access requests
apps/mobile/src/screens/RequestsScreen.tsx
Institution portal
- Institution app
apps/web/src/App.tsx - Institution authentication
apps/web/src/context/InstitutionAuthContext.tsx - Institution workspace
apps/web/src/components/InstitutionDashboardFoundation.tsx - Application review
apps/web/src/components/ApplicationDetailWorkspace.tsx - Request creation
apps/web/src/components/CreateRequestView.tsx - Institution service
apps/web/src/services/institutionService.ts
AI intelligence
- AI API
services/ai/app/main.py - Document processing
services/ai/app/document/pipeline.py - Life-stage context engine
services/ai/app/context/engine.py - Groq client
services/ai/app/context/llm_client.py - Record retrieval
services/ai/app/retrieval - Readiness explanation
services/ai/app/context/explanation.py - AI contracts
services/ai/app/schemas
Backend functions
- Supabase services
supabase/functions - Consent decision function
supabase/functions/consent_decision/index.ts - Request functions
supabase/functions/requests/index.ts - Record function
supabase/functions/records/index.ts - Matching function
supabase/functions/matching_evaluate/index.ts
Shared contracts
- Shared TypeScript contracts
packages/shared/src/index.ts
Other components
- Citizen
- Institution user
Connections 26
- Mobile app router → Citizen authentication: uses
apps/mobile/App.tsx - Mobile app router → Goal entry: routes to
apps/mobile/App.tsx - Mobile app router → Record vault: routes to
apps/mobile/App.tsx - Mobile app router → Record upload: routes to
apps/mobile/App.tsx - Mobile app router → Task interpretation: routes to
apps/mobile/App.tsx - Goal entry → AI requirement client: uses
apps/mobile/src/screens/AiTaskEntryScreen.tsx - Task interpretation → AI requirement client: fetches requirements
apps/mobile/src/screens/InterpretedTaskScreen.tsx - Record vault → Record service: uses
apps/mobile/src/services/recordService.ts - Consent decision → Consent service: uses
apps/mobile/src/screens/ConsentScreen.tsx - Consent service → Consent decision function: invokes
apps/mobile/src/services/consentService.ts - Institution app → Institution authentication: provides
apps/web/src/App.tsx - Institution app → Institution workspace: routes to
apps/web/src/App.tsx - Institution workspace → Application review: workspace includes
- Institution workspace → Request creation: workspace includes
- Institution workspace → Institution service: uses
- AI API → Document processing: calls
services/ai/app/main.py - AI API → Life-stage context engine: calls
services/ai/app/main.py - AI API → Readiness explanation: calls
services/ai/app/main.py - AI API → Record retrieval: calls
services/ai/app/main.py - Life-stage context engine → Groq client: uses
services/ai/app/context/engine.py - AI API → AI contracts: uses
services/ai/app/main.py - Citizen authentication → Shared TypeScript contracts: uses
apps/mobile/src/context/AuthContext.tsx - Institution authentication → Shared TypeScript contracts: uses
apps/web/src/context/InstitutionAuthContext.tsx - Consent service → Shared TypeScript contracts: uses
apps/mobile/src/services/consentService.ts - Citizen → Mobile app router: uses
- Institution user → Institution app: uses