How pentest200/vibzo works
Commonroom is a web messaging and calling application. Its principal workflow is account authentication, finding or creating a conversation, sending durable messages and attachments, and keeping browser state synchronized; separate branches provide safety, avatars, calls, and background processing. The graph distinguishes API routing, domain services, browser state, and persistence. Several runtime modules are unsampled, so their internal call paths are omitted rather than inferred.
Main entry points: app.ts HTTP API · messaging/service.ts Messaging service · mongo.ts Mongo persistence · sync/service.ts Synchronization service
Components 23
Web client
- Chat interface
apps/web/src/conversation-app.tsx - Authentication UI
apps/web/src/auth-app.tsx - API client
apps/web/src/api.ts - Sync engine
apps/web/src/sync-engine.ts - Local sync store
apps/web/src/sync-db.ts
API and realtime
- HTTP API
apps/api/src/app.ts - Auth routes
apps/api/src/auth.ts - Conversation routes
apps/api/src/conversations.ts - Message routes
apps/api/src/messages.ts - Sync routes
apps/api/src/sync.ts - Realtime gateway
apps/gateway/src/app.ts
Messaging domain
- Account service
packages/domain/src/auth/service.ts - Conversation service
packages/domain/src/conversations/service.ts - Messaging service
packages/domain/src/messaging/service.ts - Synchronization service
packages/domain/src/sync/service.ts
Media and safety
- Attachment service
packages/domain/src/attachments/service.ts - Avatar service
packages/domain/src/avatars/service.ts - Safety service
packages/domain/src/safety/service.ts - Calling service
packages/domain/src/calls/service.ts
Persistence and workers
- Mongo persistence
packages/domain/src/mongo.ts - Background worker
apps/worker/src/main.ts - Media processor
infra/processor/server.mjs
Other components
- Member
Connections 31
- Member → Chat interface: uses chats
- Member → Authentication UI: signs in
- Authentication UI → API client: requests auth
apps/web/src/auth-app.tsx - Authentication UI → Chat interface: sets auth state
- Chat interface → API client: calls API
- Sync engine → API client: fetches updates
apps/web/src/sync-engine.ts - Sync engine → Local sync store: persists pending state
apps/web/src/sync-engine.ts - HTTP API → Auth routes: registers routes
apps/api/src/app.ts - HTTP API → Conversation routes: registers routes
apps/api/src/app.ts - HTTP API → Message routes: registers routes
apps/api/src/app.ts - HTTP API → Sync routes: registers routes
apps/api/src/app.ts - API client → HTTP API: HTTP requests
- Auth routes → Account service: uses account domain
apps/api/src/auth.ts - Conversation routes → Conversation service: uses conversation domain
- Message routes → Messaging service: uses messaging domain
- Sync routes → Synchronization service: uses sync domain
- Messaging service → Attachment service: associates files
packages/domain/src/messaging/service.ts - Messaging service → Conversation service: authorizes conversation
packages/domain/src/messaging/service.ts - Synchronization service → Messaging service: reads delivery state
packages/domain/src/sync/service.ts - Attachment service → Mongo persistence: stores metadata
- Account service → Mongo persistence: stores accounts
packages/domain/src/auth/service.ts - Conversation service → Mongo persistence: stores memberships
- Messaging service → Mongo persistence: commits messages
- Synchronization service → Mongo persistence: stores sync state
- Background worker → Attachment service: processes attachment jobs
- Background worker → Calling service: runs call jobs
- Attachment service → Media processor: requests scanning
- HTTP API → Safety service: routes safety actions
apps/api/src/app.ts - HTTP API → Avatar service: routes avatar actions
apps/api/src/app.ts - HTTP API → Calling service: routes call actions
apps/api/src/app.ts - Realtime gateway → Synchronization service: checks sync readiness
apps/gateway/src/app.ts