How saikrishn181/student-voice works
Krantind is a student community and support platform. Its main workflow is account creation and profile setup, followed by browsing a personalized campus feed, publishing posts with optional media, and engaging through support, comments, follows, and messaging. Separate areas provide search, notifications, profile/settings management, and administration of verification and moderation. The source index shows the principal page-to-store and store-to-Supabase links; several feature-page implementations were not sampled, so their internal call relationships are omitted.
Main entry points: usePostStore.ts Posts and comments · useAuthStore.ts Authentication state · page.tsx Campus feed · useUserStore.ts Profile cache
Components 26
Community experience
- Campus feed
app/feed/page.tsx - Post composer
app/post/create/page.tsx - Post detail
app/post/[id]/page.tsx - Search and explore
app/search/page.tsx
Accounts and profiles
- Login and signup
app/signup/page.tsx - Profiles
app/profile/[id]/page.tsx - Account settings
app/settings/page.tsx - Authentication state
lib/store/useAuthStore.ts - Profile cache
lib/store/useUserStore.ts
Engagement features
- Direct and group chat
app/messages/[id]/page.tsx - Notifications
app/notifications/page.tsx - Admin verification
app/admin/verifications/page.tsx - Post interactions
components/feature/PostCard.tsx - Media uploader
components/feature/MediaUploader.tsx - Posts and comments
lib/store/usePostStore.ts - Chat state
lib/store/useChatStore.ts - Notification state
lib/store/useNotificationStore.ts - Search state
lib/store/useSearchStore.ts
Data and moderation
- Feed ranking
lib/recommendation.ts - Content moderation
lib/moderation.ts - Row mapping
lib/mappers.ts - Media storage helper
lib/supabase/storage.ts - Supabase client
lib/supabase/client.ts
Other components
- Student
- Supabase data services
- Supabase media bucket
Connections 38
- Student → Login and signup: creates account
app/signup/page.tsx - Student → Campus feed: browses posts
app/feed/page.tsx - Student → Post composer: creates post
app/post/create/page.tsx - Campus feed → Posts and comments: loads posts
app/feed/page.tsx - Campus feed → Authentication state: reads session
app/feed/page.tsx - Campus feed → Profile cache: loads profiles
app/feed/page.tsx - Campus feed → Feed ranking: ranks feed
app/feed/page.tsx - Campus feed → Post interactions: renders cards
app/feed/page.tsx - Post composer → Posts and comments: submits post
app/post/create/page.tsx - Post composer → Media uploader: selects media
app/post/create/page.tsx - Post composer → Media storage helper: uploads media
app/post/create/page.tsx - Post composer → Content moderation: checks content
app/post/create/page.tsx - Search and explore → Search state: uses search state
app/search/page.tsx - Search and explore → Posts and comments: loads results
app/search/page.tsx - Search and explore → Authentication state: reads session
app/search/page.tsx - Login and signup → Authentication state: authenticates
app/signup/page.tsx - Profiles → Authentication state: reads session
- Profiles → Posts and comments: loads posts
- Account settings → Authentication state: manages account
app/settings/page.tsx - Account settings → Posts and comments: manages posts
app/settings/page.tsx - Account settings → Notification state: manages alerts
app/settings/page.tsx - Direct and group chat → Chat state: loads conversations
app/messages/[id]/page.tsx - Direct and group chat → Profile cache: loads profiles
app/messages/[id]/page.tsx - Notifications → Notification state: loads alerts
- Admin verification → Authentication state: checks session
app/admin/verifications/page.tsx - Admin verification → Content moderation: reviews users
app/admin/verifications/page.tsx - Posts and comments → Supabase client: queries data
lib/store/usePostStore.ts - Posts and comments → Content moderation: checks violations
lib/store/usePostStore.ts - Posts and comments → Media storage helper: uses media storage
lib/store/usePostStore.ts - Posts and comments → Profile cache: seeds profiles
lib/store/usePostStore.ts - Authentication state → Supabase client: uses auth
lib/store/useAuthStore.ts - Authentication state → Profile cache: updates profile cache
lib/store/useAuthStore.ts - Chat state → Supabase client: queries chat
lib/store/useChatStore.ts - Profile cache → Supabase client: queries profiles
lib/store/useUserStore.ts - Profile cache → Row mapping: maps profile rows
lib/store/useUserStore.ts - Supabase client → Supabase data services: connects to
lib/supabase/client.ts - Media storage helper → Supabase client: creates client
lib/supabase/storage.ts - Media storage helper → Supabase media bucket: uploads objects
lib/supabase/storage.ts