How goviind04/mattermost works
Mattermost is a self-hosted collaboration platform. The principal workflow is a user interacting through a web or native client, sending requests to the server API, and receiving collaboration features such as messaging and workflow automation; the server is documented as Go-based and PostgreSQL-backed. The graph also preserves documented voice, screen-sharing, AI, and integration capabilities. Source excerpts directly show server startup and search-engine behavior, plus a cloud-preview UI flow; other subsystem connections are limited to README-level evidence rather than assumed internal calls.
Main entry points: app Application core · src Web client · api4 HTTP API · searchengine.go Search broker
Components 20
User clients
- Web client
webapp/channels/src - Client API
webapp/platform/client/src/client4.ts - Native clients
- Cloud preview
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx - Preview content
webapp/channels/src/components/cloud_preview_modal/preview_modal_content_controller.tsx
Server runtime
- Server command
server/cmd/mattermost/commands/server.go - HTTP API
server/channels/api4 - Application core
server/channels/app
Collaboration features
- Messaging
server/channels/app/channel.go - Posts and drafts
server/channels/app/post.go - Workflow automation
server/channels/app/slashcommands - Voice and sharing
server/channels/app - AI integration
webapp/channels/src/components/common/hooks/useGetLLMServices.ts
Platform services
- PostgreSQL
server/config/database.go - Search broker
server/platform/services/searchengine/searchengine.go - Elasticsearch
server/enterprise/elasticsearch - Configuration
server/config/client.go
Integrations
- Plugin API
server/public/plugin/client_rpc_generated.go - Webhooks
server/channels/api4/webhook.go
Other components
- Collaborator
Connections 20
- Collaborator → Web client: uses
README.md - Collaborator → Native clients: uses
README.md - Web client → Client API: requests through
- Client API → HTTP API: calls
- Server command → HTTP API: initializes
server/cmd/mattermost/commands/server.go - Server command → Application core: starts
server/cmd/mattermost/commands/server.go - HTTP API → Application core: serves requests
- Application core → PostgreSQL: persists data
README.md - Application core → Messaging: provides
- Application core → Posts and drafts: provides
- Application core → Workflow automation: provides
README.md - Application core → Voice and sharing: provides
README.md - Web client → AI integration: integrates
README.md - Application core → Search broker: uses
server/channels/app/searchengine.go - Search broker → Elasticsearch: registers and queries
server/platform/services/searchengine/searchengine.go - Configuration → Search broker: configures
- Application core → Plugin API: exposes
README.md - HTTP API → Webhooks: supports
README.md - Web client → Cloud preview: shows
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx - Cloud preview → Preview content: loads controller
webapp/channels/src/components/cloud_preview_modal/cloud_preview_modal_controller.tsx