How team-cowork/cowork-server works
Cowork is a multi-service collaboration management platform. Its broad user workflow spans authentication and gateway access, then collaboration domains such as teams, channels, projects, and roadmaps; supporting services include chat, preferences, notifications, and voice. The tree shows these as separate deployable modules rather than one evidenced end-to-end call chain. The sampled roadmap implementation demonstrates access checks and repository reads; other links are left unverified where source was not sampled. The README identifies the product but does not document its runtime wiring.
Main entry points: TeamRoleService.kt Team role service · QueryRoadmapTreeServiceImpl.java Roadmap tree query · gateway API gateway · QueryChannelRolePoliciesServiceImpl.kt Channel policy query
Components 27
Access
- API gateway
cowork-gateway/src/main/kotlin/com/cowork/gateway - Authorization
cowork-authorization/internal
Collaboration
- Teams and roles
cowork-team/src/main/kotlin/com/cowork/team - Channels and policies
cowork-channel/src/main/kotlin/com/cowork/channel/domain - Preferences
cowork-preference/src/main/kotlin/com/cowork/preference - Chat and search
cowork-chat/src - Team role service
cowork-preference/src/main/kotlin/com/cowork/preference/service/TeamRoleService.kt - Preference events
cowork-preference/src/main/kotlin/com/cowork/preference/messaging/PreferenceEvents.kt - Preference outbox
cowork-preference/src/main/kotlin/com/cowork/preference/repository/PreferenceOutboxRepository.kt - Channel policy store
cowork-preference/src/main/kotlin/com/cowork/preference/repository/ChannelRolePolicyRepository.kt - Team role store
cowork-preference/src/main/kotlin/com/cowork/preference/repository/TeamRoleRepository.kt - Channel policy query
cowork-channel/src/main/kotlin/com/cowork/channel/domain/channelRolePolicy/service/impl/QueryChannelRolePoliciesServiceImpl.kt - Policy projection store
cowork-channel/src/main/kotlin/com/cowork/channel/domain/channelRolePolicy/projection/ChannelRolePolicyProjectionRepositories.kt
Work Management
- Projects and GitHub
cowork-project/src/main/kotlin/com/cowork/project/domain - Roadmaps
cowork-roadmap/src/main/java/com/cowork/roadmap/domain - Meeting notes
cowork-channel/src/main/kotlin/com/cowork/channel/domain/meetingNote - Shared accounts
cowork-channel/src/main/kotlin/com/cowork/channel/domain/sharedAccount - Roadmap tree query
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/roadmap/service/impl/QueryRoadmapTreeServiceImpl.java - Roadmap node store
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/node/repository/RoadmapNodeRepository.java - Node reference store
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/node/repository/RoadmapNodeReferenceRepository.java - Roadmap access guard
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/roadmap/service/RoadmapAccessGuard.java - Project response model
cowork-project/src/main/kotlin/com/cowork/project/domain/project/presentation/data/response/ProjectResDto.kt - Team project query
cowork-project/src/main/kotlin/com/cowork/project/domain/project/service/QueryProjectsByTeamIdService.kt
Collaboration Support
- Notifications
cowork-notification/internal - Voice sessions
cowork-voice/internal - Object storage
cowork-chat/src/storage/object-storage.service.ts
Other components
- Platform user
Connections 17
- Platform user → API gateway: uses
- API gateway → Authorization: authenticates
- Platform user → Teams and roles: manages teams
- Platform user → Channels and policies: uses channels
- Platform user → Projects and GitHub: manages work
- Platform user → Roadmaps: views plans
- Platform user → Chat and search: communicates
- Platform user → Meeting notes: records notes
- Roadmap tree query → Roadmap access guard: checks access
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/roadmap/service/impl/QueryRoadmapTreeServiceImpl.java - Roadmap tree query → Roadmap node store: reads nodes
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/roadmap/service/impl/QueryRoadmapTreeServiceImpl.java - Roadmap tree query → Node reference store: reads references
cowork-roadmap/src/main/java/com/cowork/roadmap/domain/roadmap/service/impl/QueryRoadmapTreeServiceImpl.java - Team project query → Project response model: returns
cowork-project/src/main/kotlin/com/cowork/project/domain/project/service/QueryProjectsByTeamIdService.kt - Team role service → Preference events: uses events
cowork-preference/src/main/kotlin/com/cowork/preference/service/TeamRoleService.kt - Team role service → Preference outbox: uses outbox
cowork-preference/src/main/kotlin/com/cowork/preference/service/TeamRoleService.kt - Team role service → Channel policy store: uses policies
cowork-preference/src/main/kotlin/com/cowork/preference/service/TeamRoleService.kt - Team role service → Team role store: uses roles
cowork-preference/src/main/kotlin/com/cowork/preference/service/TeamRoleService.kt - Channel policy query → Policy projection store: reads policies
cowork-channel/src/main/kotlin/com/cowork/channel/domain/channelRolePolicy/service/impl/QueryChannelRolePoliciesServiceImpl.kt