# mattermost-community/focalboard architecture

> Architecture diagram of the GitHub repository mattermost-community/focalboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mattermost-community/focalboard
- Repository: https://github.com/mattermost-community/focalboard

## Overview

Focalboard is a self-hosted project and personal-work management product, delivered as a browser-based server or packaged desktop app. A user opens the web interface, accesses boards and work items through the server API, and can import existing work from several project tools. The graph preserves major documented capabilities and distinguishes UI, API, application services, persistence, and desktop hosting. Several importer and UI implementations are unsampled, so their internal call relationships are omitted; dashed edges indicate unverified integration.

Main entry points: [`server/app/app.go`](https://github.com/mattermost-community/focalboard/blob/main/server/app/app.go) (Application services), [`import`](https://github.com/mattermost-community/focalboard/tree/main/import) (Project importers), [`server/api/api.go`](https://github.com/mattermost-community/focalboard/blob/main/server/api/api.go) (HTTP API), [`server/server/server.go`](https://github.com/mattermost-community/focalboard/blob/main/server/server/server.go) (Personal server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["User interfaces"]
  node_webapp["Web application<br/>[app.tsx]"]
  node_webclient["API client<br/>[octoClient.ts]"]
  node_macdesktop["macOS host"]
  node_winhost["Windows host<br/>[App.xaml.cs]"]
  node_linuxhost["Linux host<br/>[main.go]"]
end

subgraph group_server["Server runtime"]
  node_server["Personal server<br/>[server.go]"]
  node_api["HTTP API<br/>[api.go]"]
  node_auth["Authentication API<br/>[auth.go]"]
  node_app["Application services<br/>[app.go]"]
  node_ws["Live updates<br/>[server.go]"]
  node_store[("SQL persistence<br/>[sqlstore.go]")]
end

subgraph group_domain["Work management"]
  node_boards["Boards and cards"]
  node_files["Files and attachments<br/>[files.go]"]
  node_sharing["Sharing and permissions<br/>[sharing.go]"]
  node_search["Search<br/>[search.go]"]
end

subgraph group_integrations["Imports and events"]
  node_notifications["Notifications<br/>[service.go]"]
  node_webhooks["Webhooks<br/>[webhook.go]"]
  node_importers["Project importers"]
  node_asana["Asana import<br/>[importAsana.ts]"]
  node_jira["Jira import<br/>[jiraImporter.ts]"]
  node_deck["Deck import<br/>[importDeck.ts]"]
  node_notion["Notion import<br/>[importNotion.ts]"]
  node_todoist["Todoist import<br/>[importTodoist.ts]"]
  node_trello["Trello import<br/>[importTrello.ts]"]
end

node_user(("User"))

node_user -->|"uses"| node_webapp
node_webapp -.->|"requests data"| node_webclient
node_webclient -->|"calls API"| node_api
node_api -.->|"delegates"| node_app
node_auth -->|"authenticates via"| node_app
node_app -->|"uses"| node_store
node_app -->|"uses"| node_ws
node_app -->|"uses"| node_notifications
node_app -->|"uses"| node_webhooks
node_app -.->|"provides"| node_boards
node_app -.->|"provides"| node_files
node_app -.->|"provides"| node_sharing
node_api -.->|"routes"| node_search
node_user -->|"uses"| node_macdesktop
node_user -->|"uses"| node_winhost
node_user -->|"uses"| node_linuxhost
node_macdesktop -.->|"hosts locally"| node_server
node_winhost -->|"starts locally"| node_server
node_linuxhost -.->|"hosts locally"| node_server
node_user -.->|"imports work"| node_importers
node_importers -.->|"supports"| node_asana
node_importers -.->|"supports"| node_jira
node_importers -.->|"supports"| node_deck
node_importers -.->|"supports"| node_notion
node_importers -.->|"supports"| node_todoist
node_importers -.->|"supports"| node_trello

click node_webapp "https://github.com/mattermost-community/focalboard/blob/main/webapp/src/app.tsx"
click node_webclient "https://github.com/mattermost-community/focalboard/blob/main/webapp/src/octoClient.ts"
click node_macdesktop "https://github.com/mattermost-community/focalboard/blob/main/mac/Focalboard/ViewController.swift"
click node_winhost "https://github.com/mattermost-community/focalboard/blob/main/win-wpf/Focalboard/App.xaml.cs"
click node_linuxhost "https://github.com/mattermost-community/focalboard/blob/main/linux/main.go"
click node_server "https://github.com/mattermost-community/focalboard/blob/main/server/server/server.go"
click node_api "https://github.com/mattermost-community/focalboard/blob/main/server/api/api.go"
click node_auth "https://github.com/mattermost-community/focalboard/blob/main/server/api/auth.go"
click node_app "https://github.com/mattermost-community/focalboard/blob/main/server/app/app.go"
click node_ws "https://github.com/mattermost-community/focalboard/blob/main/server/ws/server.go"
click node_store "https://github.com/mattermost-community/focalboard/blob/main/server/services/store/sqlstore/sqlstore.go"
click node_boards "https://github.com/mattermost-community/focalboard/blob/main/server/app/boards_and_blocks.go"
click node_files "https://github.com/mattermost-community/focalboard/blob/main/server/app/files.go"
click node_sharing "https://github.com/mattermost-community/focalboard/blob/main/server/app/sharing.go"
click node_search "https://github.com/mattermost-community/focalboard/blob/main/server/api/search.go"
click node_notifications "https://github.com/mattermost-community/focalboard/blob/main/server/services/notify/service.go"
click node_webhooks "https://github.com/mattermost-community/focalboard/blob/main/server/services/webhook/webhook.go"
click node_importers "https://github.com/mattermost-community/focalboard/tree/main/import"
click node_asana "https://github.com/mattermost-community/focalboard/blob/main/import/asana/importAsana.ts"
click node_jira "https://github.com/mattermost-community/focalboard/blob/main/import/jira/jiraImporter.ts"
click node_deck "https://github.com/mattermost-community/focalboard/blob/main/import/nextcloud-deck/importDeck.ts"
click node_notion "https://github.com/mattermost-community/focalboard/blob/main/import/notion/importNotion.ts"
click node_todoist "https://github.com/mattermost-community/focalboard/blob/main/import/todoist/importTodoist.ts"
click node_trello "https://github.com/mattermost-community/focalboard/blob/main/import/trello/importTrello.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webapp,node_webclient,node_macdesktop,node_winhost,node_linuxhost,node_user toneBlue
class node_server,node_api,node_auth,node_app,node_ws,node_store toneAmber
class node_boards,node_files,node_sharing,node_search toneMint
class node_notifications,node_webhooks,node_importers,node_asana,node_jira,node_deck,node_notion,node_todoist,node_trello toneRose
```

## Components

### User interfaces

- [Web application](https://github.com/mattermost-community/focalboard/blob/main/webapp/src/app.tsx): `webapp/src/app.tsx`
- [API client](https://github.com/mattermost-community/focalboard/blob/main/webapp/src/octoClient.ts): `webapp/src/octoClient.ts`
- [macOS host](https://github.com/mattermost-community/focalboard/blob/main/mac/Focalboard/ViewController.swift): `mac/Focalboard/ViewController.swift`
- [Windows host](https://github.com/mattermost-community/focalboard/blob/main/win-wpf/Focalboard/App.xaml.cs): `win-wpf/Focalboard/App.xaml.cs`
- [Linux host](https://github.com/mattermost-community/focalboard/blob/main/linux/main.go): `linux/main.go`

### Server runtime

- [Personal server](https://github.com/mattermost-community/focalboard/blob/main/server/server/server.go): `server/server/server.go`
- [HTTP API](https://github.com/mattermost-community/focalboard/blob/main/server/api/api.go): `server/api/api.go`
- [Authentication API](https://github.com/mattermost-community/focalboard/blob/main/server/api/auth.go): `server/api/auth.go`
- [Application services](https://github.com/mattermost-community/focalboard/blob/main/server/app/app.go): `server/app/app.go`
- [Live updates](https://github.com/mattermost-community/focalboard/blob/main/server/ws/server.go): `server/ws/server.go`
- [SQL persistence](https://github.com/mattermost-community/focalboard/blob/main/server/services/store/sqlstore/sqlstore.go): `server/services/store/sqlstore/sqlstore.go`

### Work management

- [Boards and cards](https://github.com/mattermost-community/focalboard/blob/main/server/app/boards_and_blocks.go): `server/app/boards_and_blocks.go`
- [Files and attachments](https://github.com/mattermost-community/focalboard/blob/main/server/app/files.go): `server/app/files.go`
- [Sharing and permissions](https://github.com/mattermost-community/focalboard/blob/main/server/app/sharing.go): `server/app/sharing.go`
- [Search](https://github.com/mattermost-community/focalboard/blob/main/server/api/search.go): `server/api/search.go`

### Imports and events

- [Notifications](https://github.com/mattermost-community/focalboard/blob/main/server/services/notify/service.go): `server/services/notify/service.go`
- [Webhooks](https://github.com/mattermost-community/focalboard/blob/main/server/services/webhook/webhook.go): `server/services/webhook/webhook.go`
- [Project importers](https://github.com/mattermost-community/focalboard/tree/main/import): `import`
- [Asana import](https://github.com/mattermost-community/focalboard/blob/main/import/asana/importAsana.ts): `import/asana/importAsana.ts`
- [Jira import](https://github.com/mattermost-community/focalboard/blob/main/import/jira/jiraImporter.ts): `import/jira/jiraImporter.ts`
- [Deck import](https://github.com/mattermost-community/focalboard/blob/main/import/nextcloud-deck/importDeck.ts): `import/nextcloud-deck/importDeck.ts`
- [Notion import](https://github.com/mattermost-community/focalboard/blob/main/import/notion/importNotion.ts): `import/notion/importNotion.ts`
- [Todoist import](https://github.com/mattermost-community/focalboard/blob/main/import/todoist/importTodoist.ts): `import/todoist/importTodoist.ts`
- [Trello import](https://github.com/mattermost-community/focalboard/blob/main/import/trello/importTrello.ts): `import/trello/importTrello.ts`

### Other components

- **User**

## Connections

- User → Web application: uses (evidence: `README.md`)
- Web application → API client: requests data
- API client → HTTP API: calls API
- HTTP API → Application services: delegates
- Authentication API → Application services: authenticates via (evidence: `server/api/auth.go`)
- Application services → SQL persistence: uses (evidence: `server/app/app.go`)
- Application services → Live updates: uses (evidence: `server/app/app.go`)
- Application services → Notifications: uses (evidence: `server/app/app.go`)
- Application services → Webhooks: uses (evidence: `server/app/app.go`)
- Application services → Boards and cards: provides
- Application services → Files and attachments: provides
- Application services → Sharing and permissions: provides
- HTTP API → Search: routes
- User → macOS host: uses (evidence: `README.md`)
- User → Windows host: uses (evidence: `README.md`)
- User → Linux host: uses (evidence: `README.md`)
- macOS host → Personal server: hosts locally
- Windows host → Personal server: starts locally (evidence: `win-wpf/Focalboard/App.xaml.cs`)
- Linux host → Personal server: hosts locally
- User → Project importers: imports work
- Project importers → Asana import: supports
- Project importers → Jira import: supports
- Project importers → Deck import: supports
- Project importers → Notion import: supports
- Project importers → Todoist import: supports
- Project importers → Trello import: supports
