How prashanth73/social-dining-engine works
Social Proof Dining Engine is represented here by its React Native mobile client; the documented API, storage, and ingestion services are not present in the supplied file tree, so their internals cannot be mapped. The user flow runs from OTP onboarding through privacy/card setup to dual-feed discovery and restaurant detail. Contact matching hashes phone numbers on-device before syncing. The API client makes HTTP requests, but the server-side handling of those requests is outside the available source.
Main entry points: RootNavigator.tsx Flow navigation · api.service.ts HTTP API client · AuthOnboardingScreen.tsx OTP onboarding · App.tsx App entry
Components 12
Mobile app flow
- App entry
apps/mobile/App.tsx - Flow navigation
apps/mobile/src/navigation/RootNavigator.tsx - OTP onboarding
apps/mobile/src/screens/AuthOnboardingScreen.tsx - Privacy and cards
apps/mobile/src/screens/PrivacyAndCardLinkScreen.tsx - Dual discovery feed
apps/mobile/src/screens/DualDiscoveryFeedScreen.tsx - Restaurant detail
apps/mobile/src/screens/RestaurantDetailScreen.tsx
Privacy and contacts
- Contact permissions
apps/mobile/src/services/contactPermission.service.ts - On-device hashing
apps/mobile/src/utils/clientCrypto.ts
Client services
- Shared contracts
apps/mobile/src/shared/index.ts - HTTP API client
apps/mobile/src/services/api.service.ts
Other components
- Diner
- Backend API
Connections 14
- Diner → App entry: starts app
apps/mobile/App.tsx - App entry → Flow navigation: renders
apps/mobile/App.tsx - Flow navigation → OTP onboarding: shows
apps/mobile/src/navigation/RootNavigator.tsx - Flow navigation → Privacy and cards: routes to
apps/mobile/src/navigation/RootNavigator.tsx - Flow navigation → Dual discovery feed: routes to
apps/mobile/src/navigation/RootNavigator.tsx - Flow navigation → Restaurant detail: routes to
apps/mobile/src/navigation/RootNavigator.tsx - OTP onboarding → Contact permissions: requests contacts
apps/mobile/src/screens/AuthOnboardingScreen.tsx - Contact permissions → On-device hashing: hashes locally
apps/mobile/src/services/contactPermission.service.ts - On-device hashing → Shared contracts: normalizes numbers
apps/mobile/src/utils/clientCrypto.ts - OTP onboarding → HTTP API client: requests auth
apps/mobile/src/screens/AuthOnboardingScreen.tsx - Privacy and cards → HTTP API client: requests card operations
apps/mobile/src/screens/PrivacyAndCardLinkScreen.tsx - Dual discovery feed → HTTP API client: loads feed data
apps/mobile/src/screens/DualDiscoveryFeedScreen.tsx - Restaurant detail → HTTP API client: uses client
apps/mobile/src/screens/RestaurantDetailScreen.tsx - HTTP API client → Backend API: sends HTTP requests
apps/mobile/src/services/api.service.ts