How dheerajrai-dev/syncroom works
SyncRoom is a collaborative room and ephemeral-chat application. Users authenticate, create or join rooms, pass through locked-room approval when required, and then collaborate through live messaging and participant updates; account holders can also review dashboards and room history. The backend separates HTTP endpoints, business services, persistence, and WebSocket runtime state. README capabilities such as TTL cleanup and host migration are represented, though their internal call paths were not sampled; uncertain links are dashed or omitted.
Main entry points: room_repository.py Room repository · router.tsx Page routing · router.py Room WebSocket handler · auth.py Auth endpoints
Components 23
Web Client
- Page routing
frontend/src/app/router.tsx - Room lifecycle screens
frontend/src/pages - Account screens
frontend/src/pages - Dashboard and history
frontend/src/pages
HTTP and Services
- Auth endpoints
app/api/v1/auth.py - Account authentication
app/services/auth_service.py - Token and password security
app/core/auth.py - Room endpoints
app/api/v1/rooms.py - Profile endpoints
app/api/v1/users.py - Dashboard endpoints
app/api/v1/dashboard.py - Dashboard and transcripts
app/services/dashboard_service.py - Room lifecycle logic
app/services/room_service.py - TTL cleanup
app/services/ttl_sweep_service.py - Host migration
app/services/migration_service.py
Realtime Rooms
- Room WebSocket handler
app/websockets/router.py - Connections and chat state
app/core/storage.py
Persistence
- Room repository
app/db/room_repository.py - Participant repository
app/db/participant_repository.py - Message repository
app/db/message_repository.py - User model
app/models/user.py - Room model
app/models/room.py
Other components
- Room user
- PostgreSQL
Connections 25
- Room user → Page routing: uses
frontend/src/app/router.tsx - Page routing → Room lifecycle screens: routes to
frontend/src/app/router.tsx - Page routing → Account screens: routes to
frontend/src/app/router.tsx - Page routing → Dashboard and history: routes to
frontend/src/app/router.tsx - Room lifecycle screens → Room endpoints: requests room actions
- Account screens → Auth endpoints: authenticates
- Dashboard and history → Dashboard endpoints: requests history
- Auth endpoints → Account authentication: calls
app/api/v1/auth.py - Auth endpoints → Token and password security: issues tokens
app/api/v1/auth.py - Account authentication → Token and password security: hashes passwords
app/services/auth_service.py - Account authentication → User model: creates and checks
app/services/auth_service.py - Room endpoints → Room lifecycle logic: delegates room logic
- Dashboard endpoints → Dashboard and transcripts: delegates
- Dashboard and transcripts → PostgreSQL: reads room history
README.md - Room lifecycle logic → Room repository: persists room state
- TTL cleanup → Room repository: expires rooms
README.md - Host migration → Room repository: updates host state
README.md - Room WebSocket handler → Room repository: loads room
app/websockets/router.py - Room WebSocket handler → Participant repository: loads participants
app/websockets/router.py - Room WebSocket handler → Connections and chat state: manages live sessions
app/websockets/router.py - Connections and chat state → Room repository: deletes room row
app/core/storage.py - Room repository → Room model: queries and updates
app/db/room_repository.py - Participant repository → PostgreSQL: reads and writes participants
README.md - Message repository → PostgreSQL: stores transcripts
README.md - Room repository → PostgreSQL: persists rooms
README.md