How velakurthy-bharath-chary/synctask-supabase works
SyncTask is a collaborative project and task manager. Users register or sign in, open or join projects, manage Kanban tasks, and view analytics; task changes are recorded and broadcast to project collaborators, with live events also feeding the notification bell. The graph follows the documented React-to-FastAPI product shape and sampled task, project, auth-service, and WebSocket behavior. Several router and page implementations were not sampled, so uncertain page-to-endpoint wiring is omitted.
Main entry points: main.py API application · App.jsx App routes · database.py PostgreSQL · tasks.py Task routes
Components 20
React application
- App routes
frontend/src/App.jsx - Auth context
frontend/src/context/AuthContext.jsx - Project views
frontend/src/pages/ProjectView.jsx - Project dashboard
frontend/src/pages/Dashboard.jsx - Analytics view
frontend/src/pages/Analytics.jsx - Live events and bell
frontend/src/context/WebSocketContext.jsx
FastAPI endpoints
- API application
backend/app/main.py - Auth routes
backend/app/routers/auth.py - Project routes
backend/app/routers/projects.py - Task routes
backend/app/routers/tasks.py - Analytics routes
backend/app/routers/analytics.py - WebSocket route
backend/app/routers/websocket.py
Domain services
- Authentication
backend/app/services/auth_service.py - Project membership
backend/app/services/project_service.py - Task and activity
backend/app/services/task_service.py - Analytics calculations
backend/app/services/analytics_service.py - JWT security
backend/app/core/security.py
Data and realtime
- PostgreSQL
backend/app/database.py - Project connection rooms
backend/app/core/ws_manager.py
Other components
- Collaborator
Connections 25
- Collaborator → App routes: uses
- App routes → Auth context: provides auth
- App routes → Project dashboard: routes to
- App routes → Project views: routes to
- App routes → Analytics view: routes to
- Project views → Live events and bell: uses live events
- Collaborator → API application: requests
- API application → Auth routes: registers
- API application → Project routes: registers
- API application → Task routes: registers
- API application → Analytics routes: registers
- API application → WebSocket route: registers
- Auth routes → Authentication: delegates auth
- Project routes → Project membership: delegates projects
- Task routes → Task and activity: delegates tasks
- Analytics routes → Analytics calculations: delegates analysis
- Authentication → JWT security: uses tokens
- Authentication → PostgreSQL: reads and writes
- Project membership → PostgreSQL: reads and writes
- Task and activity → PostgreSQL: reads and writes
- Analytics calculations → PostgreSQL: reads
- Task routes → Project connection rooms: broadcasts task events
- WebSocket route → Project connection rooms: manages connections
- Live events and bell → WebSocket route: opens project socket
- Project connection rooms → Live events and bell: sends events