How sri-raj-2222/share_sphere works
ShareSphere is a peer-to-peer learning and collaboration product: users create skill profiles, find exchange partners or tutors, coordinate sessions and projects, then record completion and reviews. It also offers live broadcast classes and project collaboration, with administrative moderation. The frontend routes domain experiences; an Express/Socket.IO server handles API and real-time behavior, using local JSON-backed data and Supabase. Server and page excerpts are partial, so links to unsampled features are limited to routing and documented product capabilities.
Main entry points: App.tsx App routes · server.js API and events · Chat.tsx Exchange rooms · auth-context.tsx Authentication
Components 25
Identity and discovery
- Sign in
src/pages/SignIn.tsx - Authentication
src/contexts/auth-context.tsx - Skill onboarding
src/pages/Onboarding.tsx - Profiles
src/pages/Profile.tsx - Tutor discovery
src/pages/TutorDiscovery.tsx
Skill exchange
- Skill matches
src/pages/AvailableMatches.tsx - Direct exchange
src/pages/DirectExchange.tsx - Match requests
src/pages/Requests.tsx - Exchange rooms
src/pages/Chat.tsx - Activity and reviews
src/pages/MyActivity.tsx
Projects and live learning
- Project listings
src/pages/WorkFeed.tsx - Post project
src/pages/WorkPost.tsx - Project detail
src/pages/WorkDetail.tsx - Project workspace
src/pages/WorkRoom.tsx - Live classes
src/pages/BroadcastClass.tsx - Class chat
src/pages/BroadcastChat.tsx
Platform services
- App routes
src/App.tsx - Supabase
src/lib/supabase.ts - Realtime events
src/contexts/socket-context.tsx - API and events
server/server.js - Local data store
server/localDb.js - Administration
src/pages/admin/AdminDashboard.tsx - Reports and moderation
src/pages/admin/ReportsPanel.tsx - User management
src/pages/admin/UserManagement.tsx
Other components
- Learner
Connections 38
- Learner → App routes: opens
- App routes → Sign in: routes
- App routes → Skill onboarding: routes
- App routes → Profiles: routes
- App routes → Tutor discovery: routes
- App routes → Skill matches: routes
- App routes → Direct exchange: routes
- App routes → Exchange rooms: routes
- App routes → Project listings: routes
- App routes → Post project: routes
- App routes → Project detail: routes
- App routes → Project workspace: routes
- App routes → Live classes: routes
- App routes → Class chat: routes
- App routes → Administration: routes
- Sign in → Authentication: authenticates
- Authentication → Supabase: reads and writes
- Authentication → API and events: checks bans
- Skill onboarding → Profiles: sets up skills
- Skill matches → Match requests: starts requests
- Direct exchange → Match requests: starts requests
- Match requests → API and events: uses API
- Exchange rooms → API and events: uses API
- Exchange rooms → Realtime events: receives events
- Realtime events → API and events: connects
- API and events → Local data store: reads and writes
- API and events → Supabase: uses client
- Exchange rooms → Activity and reviews: records outcomes
- Post project → API and events: uses API
- Project listings → API and events: uses API
- Project detail → API and events: uses API
- Project workspace → API and events: uses API
- Live classes → API and events: manages sessions
- Class chat → API and events: uses API
- Administration → Reports and moderation: routes to
- Administration → User management: routes to
- Reports and moderation → API and events: uses API
- User management → API and events: uses API