How arpon-dev-stack/matrimony works
Metrimony is a matrimonial discovery and profile-management web app. Visitors browse featured profiles and stories, submit match filters, and can register or sign in; authenticated members view profiles and edit details and photos. The graph follows documented routes and excerpted calls. Several route layouts, profile components, and follow-related implementations were not sampled, so those connections are omitted rather than inferred.
Main entry points: bd.ts Supabase client · signUpAction.ts Registration action · signInAction.ts Auth actions · page.tsx Profile editor
Components 28
Public discovery
- Landing page
app/(main)/page.tsx - Search form
components/HomeSearchClient.tsx - Search route
app/(main)/search/page.tsx - Search results
components/ProfileData.tsx - Search hook
app/lib/useSearch.ts - Home profile feeds
app/lib/homeData.ts
Authentication
- Sign-in page
app/(auth)/signin/page.tsx - Sign-up page
app/(auth)/signup/page.tsx - Auth state
app/_store/AuthContext.tsx - Auth actions
app/actions/signInAction.ts - Registration action
app/actions/signUpAction.ts - Session actions
app/actions/refreshTokenAction.ts - Sign-out action
app/actions/signOutAction.ts - Token helpers
app/lib/tokenGenerator.ts - Auth helpers
app/lib/auth.ts
Profile services
- Profile routes
app/(service)/(profile) - Profile hook
app/lib/useUserProfile.ts - Profile queries
app/lib/profiles.ts - Profile editor
app/(service)/edit/page.tsx - Profile update action
app/actions/updateProfileAction.ts - Follow options
app/lib/userFollow.ts
Profile UI
- Profile edit UI
components/ui/EditProfile.tsx - Profile details UI
components/ui/UserDetails.tsx
Data and integrations
- Supabase client
app/lib/bd.ts - Supabase
- Cloudinary uploads
Other components
- Visitor
- Member
Connections 37
- Visitor → Landing page: browses
README.md - Landing page → Home profile feeds: loads featured content
app/(main)/page.tsx - Landing page → Search form: renders
app/(main)/page.tsx - Search form → Search route: navigates with filters
components/HomeSearchClient.tsx - Visitor → Sign-in page: signs in
README.md - Visitor → Sign-up page: registers
README.md - Sign-in page → Auth actions: invokes
app/(auth)/signin/page.tsx - Sign-up page → Registration action: invokes
app/(auth)/signup/page.tsx - Registration action → Auth actions: calls
app/actions/signUpAction.ts - Sign-in page → Auth state: sets session
app/(auth)/signin/page.tsx - Sign-up page → Auth state: sets session
app/(auth)/signup/page.tsx - Auth state → Session actions: refreshes session
app/_store/AuthContext.tsx - Auth state → Sign-out action: signs out
app/_store/AuthContext.tsx - Auth actions → Token helpers: uses
app/actions/signInAction.ts - Auth actions → Auth helpers: uses
app/actions/signInAction.ts - Registration action → Token helpers: uses
app/actions/signUpAction.ts - Registration action → Auth helpers: uses
app/actions/signUpAction.ts - Auth actions → Supabase client: reads and writes
app/actions/signInAction.ts - Registration action → Supabase client: reads and writes
app/actions/signUpAction.ts - Session actions → Supabase client: reads and writes
app/actions/refreshTokenAction.ts - Sign-out action → Supabase client: updates
app/actions/signOutAction.ts - Profile update action → Supabase client: updates
app/actions/updateProfileAction.ts - Supabase client → Supabase: connects to
README.md - Search route → Search results: renders
app/(main)/search/page.tsx - Search hook → Profile queries: queries profiles
app/lib/useSearch.ts - Profile queries → Supabase client: queries users
app/lib/profiles.ts - Home profile feeds → Profile queries: uses profile queries
app/lib/homeData.ts - Member → Profile routes: views profiles
README.md - Profile routes → Profile hook: loads profile
app/(service)/(profile)/profile/[id]/page.tsx - Profile hook → Profile queries: fetches profile
app/lib/useUserProfile.ts - Profile routes → Profile details UI: renders details
app/(service)/(profile)/profile/[id]/page.tsx - Member → Profile editor: manages profile
README.md - Profile editor → Profile update action: submits changes
app/(service)/edit/page.tsx - Profile editor → Profile edit UI: uses loading UI
app/(service)/edit/page.tsx - Profile update action → Supabase client: updates user data
app/actions/updateProfileAction.ts - Profile editor → Cloudinary uploads: uploads photos
app/(service)/edit/page.tsx - Search form → Follow options: uses filter options
components/HomeSearchClient.tsx