How zahra-ahmd/kindred-fyp works
This repository appears to implement a social app centered on MBTI personality and interest-based connections, with a FastAPI service that predicts personality types from user posts. The main backend path fetches posts and predicts types; the client also contains onboarding, posting, discovery, profiles, messaging, and personality-history features. Several app routes were not sampled, so their interactions and persistence details are represented as subsystems without inferred call edges.
Main entry points: supabase.js Supabase client · RootLayout.jsx App shell · main.py Prediction API · personalityHistory.jsx Interest-based history
Components 22
Mobile app
- Sign-in and onboarding
my-app/app/(auth) - App shell
my-app/components/RootLayout.jsx - Auth state
my-app/contexts/AuthContext.js - Supabase client
my-app/lib/supabase.js - User data service
my-app/services/userService.js
Personality
- MBTI compatibility scores
my-app/utils/mbtiCompatibility.js - Personality insights
my-app/components/PersonalityInsightsSection.jsx - Interest-based history
my-app/helpers/personalityHistory.jsx - Interest trait mapping
my-app/helpers/mapping.js
Social features
- Create posts
my-app/app/(tabs)/add_post.jsx - Home feed
my-app/app/(tabs)/home.jsx - Explore people
my-app/app/(tabs)/explore.jsx - User recommendations
my-app/components/RecommendationsList.jsx - Profiles
my-app/app/profile - Messages and inbox
my-app/services/messageServices.jsx - Notifications
my-app/app/notifications.jsx
Prediction service
- Prediction API
backend/app/main.py - Fetch user posts
backend/files/supabase_utils.py - Post processing helper
backend/files/get_posts.py - MBTI prediction model
backend/files/make_prediction.py
Other components
- App user
- Supabase
Connections 15
- App user → Sign-in and onboarding: uses
- App user → Create posts: creates posts
- App user → Explore people: browses
- App shell → Auth state: uses
my-app/components/RootLayout.jsx - App shell → Supabase client: uses
my-app/components/RootLayout.jsx - App shell → User data service: uses
my-app/components/RootLayout.jsx - User data service → Supabase client: queries
my-app/services/userService.js - User recommendations → Supabase client: queries and stores
my-app/components/RecommendationsList.jsx - User recommendations → MBTI compatibility scores: scores matches
my-app/components/RecommendationsList.jsx - Interest-based history → Supabase client: reads and writes
my-app/helpers/personalityHistory.jsx - Interest-based history → Interest trait mapping: scores interests
my-app/helpers/personalityHistory.jsx - Prediction API → Fetch user posts: fetches posts
backend/app/main.py - Prediction API → MBTI prediction model: predicts types
backend/app/main.py - Fetch user posts → Supabase: reads posts
- Prediction API → App user: returns predictions