How rdprost/mattermost works
Mattermost is a self-hosted collaboration platform. A user works in a web or native client, which communicates with the Go server to use collaboration features such as channels, messaging, integrations, and search; the server persists data in PostgreSQL. The graph also preserves documented voice, screen-sharing, and AI capabilities, but the supplied excerpts do not expose their implementation paths or runtime wiring. Relationships are limited to startup calls visible in excerpts and capabilities stated in the README; several feature nodes therefore have no asserted call edges.
Main entry points: server.go Application server · api4 HTTP API · src Web client · cloud_preview_modal_controller.tsx Cloud preview
Components 25
Client experience
- Web client
webapp/channels/src - Client API
webapp/platform/client/src/client4.ts - App contracts
webapp/platform/types/src/apps.ts - Cloud preview
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx - Preview content UI
webapp/channels/src/components/cloud_preview_modal/preview_modal_content_controller.tsx - Preview content data
webapp/channels/src/components/cloud_preview_modal/preview_modal_content_data.ts - Preview content hook
webapp/channels/src/hooks/useGetCloudPreviewModalContent.ts
Server runtime
- Server command
server/cmd/mattermost/commands/server.go - Application server
server/channels/app/server.go - HTTP API
server/channels/api4 - Configuration
server/config - PostgreSQL
Collaboration features
- Channels and posts
server/channels/app/channel.go - Identity and access
server/channels/app/authentication.go - Files and media
server/channels/app/file.go - Notifications
server/channels/app/notification.go - Voice and sharing
- Workflow automation
server/channels/app/plugin.go - AI integration
Platform services
- Background jobs
server/channels/jobs/server.go - Search service
server/platform/services/searchengine/searchengine.go - Remote clusters
server/platform/services/remotecluster/service.go - Shared channels
server/platform/services/sharedchannel/service.go - Plugin RPC
server/public/plugin/client_rpc_generated.go
Other components
- Collaborator
Connections 20
- Collaborator → Web client: uses
README.md - Web client → Client API: requests
- Client API → HTTP API: calls API
- Server command → Application server: creates
server/cmd/mattermost/commands/server.go - Server command → HTTP API: initializes
server/cmd/mattermost/commands/server.go - Application server → PostgreSQL: persists data
- HTTP API → Channels and posts: serves requests
- HTTP API → Identity and access: serves requests
- HTTP API → Files and media: serves requests
- Application server → Background jobs: runs jobs
- Application server → Search service: configures
- Application server → Remote clusters: uses service
- Application server → Shared channels: uses service
- Workflow automation → Plugin RPC: uses RPC
- Web client → App contracts: uses contracts
- Cloud preview → Preview content hook: fetches content
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx - Cloud preview → Preview content UI: opens modal
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx - Preview content UI → Preview content data: renders content
webapp/channels/src/components/cloud_preview_modal/preview_modal_content_controller.tsx - Collaborator → Voice and sharing: uses
README.md - Collaborator → AI integration: uses
README.md