How cseengineerasif/upay_ai-hackathon works
Recursion Pay is a Bangladesh-focused MFS super-app. Users register or sign in, navigate core wallet and payment services, and receive transaction risk checks and safety guidance; the app also offers distinct voice, family, community savings, escrow, and finance tools. The README documents broader search/maps, audio, and utility capabilities. Source excerpts and the index establish the main app/store, risk flow, and several integrations; unsampled feature links are left unasserted.
Main entry points: App.tsx App and navigation · useAppStore.ts App state · server.ts Risk API · ChildWalletScreen.tsx Child wallet
Components 26
App experience
- App and navigation
src/App.tsx - Registration
src/components/auth/RegistrationFlow.tsx - Home and services
src/components/home/HomeScreen.tsx - App state
src/store/useAppStore.ts
Payments and safety
- Payment flow
src/components/mfs/PaymentFlowModal.tsx - Risk scoring
functions/riskEngine.ts - Risk explanation
functions/llmExplain.ts - Scam checking
functions/scamChecker.ts - Dialect voice pay
src/components/voice/DialectVoiceScreen.tsx - Audio and finance assistant
src/components/safety/VoiceConversationModal.tsx - Grounded search
src/components/safety/SearchGroundingModal.tsx
Financial tools
- Account records
src/utils/accountManager.ts - Child wallet
src/components/childwallet/ChildWalletScreen.tsx - Child wallet rules
src/utils/childWalletManager.ts - Savings groups
src/components/somiti/SomitiDetailModal.tsx - Somiti ledger
src/utils/somitiManager.ts - TrustPay escrow
src/components/trustpay/TrustPayScreen.tsx - TrustPay orders
src/utils/trustPayManager.ts - Payment mandates
src/utils/mandateWalletEngine.ts - Payslip audit
src/components/payslip/PayslipWageScreen.tsx - Liquidity forecasts
src/components/liquidity/LiquidityNetworkScreen.tsx - Bundle optimizer
src/components/bundle/BundleOptimizerScreen.tsx
AI and backend
- Risk API
server.ts - Firebase auth and data
src/services/firebase.ts - Google GenAI
Other components
- Customer
Connections 32
- Customer → App and navigation: uses
src/App.tsx - App and navigation → Registration: renders
src/App.tsx - App and navigation → Home and services: renders
src/App.tsx - App and navigation → App state: reads state
src/App.tsx - Home and services → App state: reads state
src/components/home/HomeScreen.tsx - Registration → App state: registers via
src/components/auth/RegistrationFlow.tsx - App state → Account records: loads records
src/store/useAppStore.ts - App state → Firebase auth and data: authenticates via
src/store/useAppStore.ts - App and navigation → Payment flow: opens flow
src/App.tsx - Payment flow → Risk API: requests assessment
- Risk API → Risk scoring: scores transaction
server.ts - Risk API → Risk explanation: requests explanation
server.ts - Risk explanation → Google GenAI: generates text
functions/llmExplain.ts - Risk API → Scam checking: uses checker
server.ts - App and navigation → Dialect voice pay: renders feature
src/App.tsx - App and navigation → Audio and finance assistant: opens feature
src/App.tsx - App and navigation → Grounded search: renders feature
src/App.tsx - Grounded search → App state: reads state
src/components/safety/SearchGroundingModal.tsx - App and navigation → Child wallet: renders feature
src/App.tsx - Child wallet → App state: uses state
src/components/childwallet/ChildWalletScreen.tsx - Child wallet → Child wallet rules: delegates to
src/components/childwallet/ChildWalletScreen.tsx - App and navigation → Savings groups: opens feature
src/App.tsx - Savings groups → App state: uses state
src/components/somiti/SomitiDetailModal.tsx - Savings groups → Somiti ledger: delegates to
src/components/somiti/SomitiDetailModal.tsx - App and navigation → TrustPay escrow: opens feature
src/App.tsx - TrustPay escrow → App state: uses state
src/components/trustpay/TrustPayScreen.tsx - TrustPay escrow → TrustPay orders: delegates to
src/components/trustpay/TrustPayScreen.tsx - Payment mandates → Google GenAI: parses instruction
- App and navigation → Payslip audit: offers feature
- App and navigation → Liquidity forecasts: offers feature
- App and navigation → Bundle optimizer: offers feature
- Risk API → Google GenAI: uses models