How addulasaikiran-ops/sportsconnet works
SportsConnect is a sports-networking app for athletes, coaches, clubs and associations. Its visible product journey is browsing profiles and opportunities, building a sporting identity, and connecting through social and messaging features; the README notes that feed and social controls are currently mock-state UI, while signup and login use server APIs. The graph separates the UI, API domain stages and shared server services. README capability descriptions support several API links; unsampled handlers and database migrations were not inspected, so their finer internal relationships are not inferred.
Main entry points: server.ts Supabase server client · http.ts API validation and errors · posts/route.ts Feed and post creation · login/route.ts Account authentication
Components 23
User experience
- SportsConnect workspace
components/sportsconnect-shell.tsx - Login and signup form
components/auth-form.tsx - Login and signup pages
app/login/page.tsx - Explore and athlete pages
app/discover/page.tsx - Community pages
app/messages/page.tsx
Identity and profiles
- Account authentication
app/api/auth/login/route.ts - Personal profile
app/api/profile/route.ts - Profile search and lookup
app/api/users/route.ts - Following profiles
app/api/users/[userId]/follow/route.ts
Community features
- Feed and post creation
app/api/posts/route.ts - Post reactions and comments
app/api/posts/[postId]/reactions/route.ts - Opportunity listings
app/api/opportunities/route.ts - Opportunity applications
app/api/opportunities/[opportunityId]/applications/route.ts - Direct conversations
app/api/conversations/route.ts - Private messages
app/api/conversations/[conversationId]/messages/route.ts - Notifications
app/api/notifications/route.ts - Avatar and post media
app/api/storage/upload/route.ts
Server services
- API validation and errors
lib/api/http.ts - Request rate limits
lib/api/rate-limit.ts - Supabase server client
lib/supabase/server.ts
Other components
- Sports community member
- Supabase Auth, database and storage
- Upstash Redis
Connections 23
- Sports community member → SportsConnect workspace: uses
README.md - Sports community member → Login and signup pages: signs in
README.md - Login and signup pages → Login and signup form: renders
app/login/page.tsx - Login and signup form → Account authentication: submits credentials
components/auth-form.tsx - Account authentication → API validation and errors: validates and handles errors
app/api/auth/login/route.ts - Account authentication → Supabase server client: creates auth session
README.md - Sports community member → Explore and athlete pages: explores
README.md - Sports community member → Community pages: connects
README.md - SportsConnect workspace → Login and signup pages: navigates
components/sportsconnect-shell.tsx - Personal profile → API validation and errors: uses
app/api/profile/route.ts - Profile search and lookup → Supabase server client: searches profiles
app/api/users/route.ts - Feed and post creation → Supabase server client: reads and writes posts
app/api/posts/route.ts - Feed and post creation → Request rate limits: checks limits
app/api/posts/route.ts - Feed and post creation → API validation and errors: uses
app/api/posts/route.ts - Opportunity listings → Supabase server client: reads and creates listings
app/api/opportunities/route.ts - Opportunity listings → API validation and errors: uses
app/api/opportunities/route.ts - Direct conversations → Supabase server client: starts conversations
app/api/conversations/route.ts - Private messages → Supabase server client: reads and sends messages
README.md - Notifications → Supabase server client: reads and updates
README.md - Avatar and post media → Supabase server client: uploads and attaches media
app/api/storage/upload/route.ts - Avatar and post media → Request rate limits: checks limits
app/api/storage/upload/route.ts - Supabase server client → Supabase Auth, database and storage: accesses services
lib/supabase/server.ts - Request rate limits → Upstash Redis: shares counters
lib/api/rate-limit.ts