How nznazmul/cha-adda works
CHA ADDA is a mobile-first adult dating and matchmaking application. Members register, complete an age-checked profile, discover and swipe on candidates, form mutual matches, and chat; profile, safety, subscription, and location features support that journey. Moderators use a separate dashboard for metrics, user and photo review, reports, verification, settings, and audit history. The sampled source confirms key discovery, matching, authentication, and data-access calls; other major capabilities and their links are retained where the README documents them. Several route and service implementations were not sampled, so their detailed wiring is not asserted.
Main entry points: matching-service.ts Matching engine · auth-context.tsx Auth context · dev-store.ts Local dev store · page.tsx Profile onboarding
Components 22
Member experience
- Register and login
app/register/page.tsx - Profile onboarding
app/onboarding/page.tsx - Profile management
app/profile/page.tsx - Member verification
lib/services/verification-service.ts
Discovery and matching
- Swipe discovery
app/discover/page.tsx - Likes and matches
app/likes/page.tsx - Match list
app/matches/page.tsx - Matching engine
lib/services/matching-service.ts - Location distance
lib/services/geo-service.ts - Discovery preferences
lib/services/preferences-service.ts
Conversation and safety
- Live conversation
app/chat/[matchId]/page.tsx - Chat service
lib/services/chat-service.ts - Message encryption
lib/security/e2ee.ts - Safety and reports
lib/services/safety-service.ts
Administration
- Admin dashboard
app/admin/page.tsx - Admin operations
lib/services/admin-service.ts - Admin API
app/api/admin/users/route.ts
Platform services
- Auth context
components/providers/auth-context.tsx - Local dev store
lib/services/dev-store.ts - Supabase platform
- Domain data types
types/database.ts
Other components
- Member
Connections 30
- Member → Register and login: registers
- Register and login → Auth context: authenticates
app/register/page.tsx - Member → Profile onboarding: creates profile
- Profile onboarding → Auth context: uses session
app/onboarding/page.tsx - Member → Swipe discovery: swipes candidates
- Swipe discovery → Matching engine: loads candidates
app/discover/page.tsx - Swipe discovery → Discovery preferences: saves filters
app/discover/page.tsx - Matching engine → Location distance: calculates distance
lib/services/matching-service.ts - Matching engine → Discovery preferences: loads preferences
lib/services/matching-service.ts - Matching engine → Local dev store: uses local fallback
lib/services/matching-service.ts - Matching engine → Supabase platform: records swipes
- Likes and matches → Matching engine: loads likes
app/likes/page.tsx - Match list → Matching engine: loads matches
app/matches/page.tsx - Member → Live conversation: opens match chat
- Live conversation → Chat service: sends messages
app/chat/[matchId]/page.tsx - Chat service → Message encryption: encrypts messages
lib/services/chat-service.ts - Chat service → Supabase platform: uses realtime
- Live conversation → Safety and reports: invokes safety actions
app/chat/[matchId]/page.tsx - Profile management → Member verification: requests verification
app/profile/page.tsx - Member → Profile management: edits profile
- Member → Admin dashboard: moderates
- Admin dashboard → Admin operations: manages accounts
- Admin dashboard → Admin API: loads admin data
- Admin API → Local dev store: uses local fallback
app/api/admin/users/route.ts - Admin API → Supabase platform: queries platform data
- Auth context → Local dev store: loads local user
components/providers/auth-context.tsx - Auth context → Supabase platform: checks session
components/providers/auth-context.tsx - Profile onboarding → Supabase platform: stores profile
- Profile management → Local dev store: persists profile
app/profile/page.tsx - Matching engine → Domain data types: uses domain types
lib/services/matching-service.ts