# jamestrichmond/wekan architecture

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

- Interactive diagram: https://gitdiagram.com/jamestrichmond/wekan
- Repository: https://github.com/jamestrichmond/wekan

## Overview

WeKan is a collaborative kanban application. Its main workflow is users organizing work on boards: they view swimlanes, lists and cards, update card details, and use board views to inspect progress. Import/export, automation, attachments and administration extend that workflow. The graph also includes search, durable webhook delivery, backup and Sandstorm support. README statements establish the product capabilities; sampled source confirms selected implementation layers and integrations. Many runtime connections are not shown in the excerpts, so uncertain links are omitted or marked dashed.

Main entry points: [`models/boards.js`](https://github.com/jamestrichmond/wekan/blob/main/models/boards.js) (Board data model), [`client/components/boards`](https://github.com/jamestrichmond/wekan/tree/main/client/components/boards) (Board views), [`client/components/cards`](https://github.com/jamestrichmond/wekan/tree/main/client/components/cards) (Card interface), [`client/main.js`](https://github.com/jamestrichmond/wekan/blob/main/client/main.js) (Client application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_work["Kanban workflow"]
  node_client["Client application<br/>[main.js]"]
  node_boardviews["Board views"]
  node_cards["Card interface"]
  node_boarddata[("Board data model<br/>[boards.js]")]
end

subgraph group_capabilities["Product capabilities"]
  node_importui["Import interface"]
  node_importpipeline["Import pipeline<br/>[importPipeline.js]"]
  node_rules["Rules automation"]
  node_search["Search queries<br/>[query-classes.js]"]
  node_attachmentui["Attachment interface<br/>[attachments.js]"]
end

subgraph group_operations["Server operations"]
  node_attachmentstorage[("Attachment storage")]
  node_webhooks["Webhook delivery<br/>[storedWebhooks.js]"]
  node_backup["Continuous backup<br/>[manager.js]"]
end

subgraph group_integrations["Platform integrations"]
  node_sandstormclient["Sandstorm bridge<br/>[bridgeClient.mjs]"]
  node_capnpschemas["Cap’n Proto schemas"]
end

node_user(("Board user"))
node_sandstorm{{"Sandstorm platform"}}

node_user -->|"uses"| node_client
node_client -->|"presents"| node_boardviews
node_boardviews -->|"shows boards"| node_boarddata
node_boardviews -->|"opens cards"| node_cards
node_cards -.->|"updates work"| node_boarddata
node_user -->|"imports boards"| node_importui
node_importui -.->|"submits import"| node_importpipeline
node_user -->|"configures rules"| node_rules
node_user -->|"searches boards"| node_search
node_cards -->|"manages files"| node_attachmentui
node_attachmentui -.->|"stores files"| node_attachmentstorage
node_boarddata -.->|"triggers delivery"| node_webhooks
node_backup -.->|"backs up data"| node_boarddata
node_sandstorm -->|"provides RPC"| node_sandstormclient
node_sandstormclient -->|"uses schemas"| node_capnpschemas

click node_client "https://github.com/jamestrichmond/wekan/blob/main/client/main.js"
click node_boardviews "https://github.com/jamestrichmond/wekan/tree/main/client/components/boards"
click node_cards "https://github.com/jamestrichmond/wekan/tree/main/client/components/cards"
click node_boarddata "https://github.com/jamestrichmond/wekan/blob/main/models/boards.js"
click node_importui "https://github.com/jamestrichmond/wekan/tree/main/client/components/import"
click node_importpipeline "https://github.com/jamestrichmond/wekan/blob/main/models/lib/importPipeline.js"
click node_rules "https://github.com/jamestrichmond/wekan/tree/main/client/components/rules"
click node_search "https://github.com/jamestrichmond/wekan/blob/main/config/query-classes.js"
click node_attachmentui "https://github.com/jamestrichmond/wekan/blob/main/client/components/cards/attachments.js"
click node_attachmentstorage "https://github.com/jamestrichmond/wekan/blob/main/server/models/attachmentStorageSettings.js"
click node_webhooks "https://github.com/jamestrichmond/wekan/blob/main/server/notifications/storedWebhooks.js"
click node_backup "https://github.com/jamestrichmond/wekan/blob/main/server/lib/continuousBackup/manager.js"
click node_sandstormclient "https://github.com/jamestrichmond/wekan/blob/main/imports/sandstorm/bridgeClient.mjs"
click node_capnpschemas "https://github.com/jamestrichmond/wekan/tree/main/imports/sandstorm/capnp"

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_client,node_boardviews,node_cards,node_boarddata,node_user toneBlue
class node_importui,node_importpipeline,node_rules,node_search,node_attachmentui toneAmber
class node_attachmentstorage,node_webhooks,node_backup toneMint
class node_sandstormclient,node_capnpschemas toneRose
class node_sandstorm toneIndigo
```

## Components

### Kanban workflow

- [Client application](https://github.com/jamestrichmond/wekan/blob/main/client/main.js): `client/main.js`
- [Board views](https://github.com/jamestrichmond/wekan/tree/main/client/components/boards): `client/components/boards`
- [Card interface](https://github.com/jamestrichmond/wekan/tree/main/client/components/cards): `client/components/cards`
- [Board data model](https://github.com/jamestrichmond/wekan/blob/main/models/boards.js): `models/boards.js`

### Product capabilities

- [Import interface](https://github.com/jamestrichmond/wekan/tree/main/client/components/import): `client/components/import`
- [Import pipeline](https://github.com/jamestrichmond/wekan/blob/main/models/lib/importPipeline.js): `models/lib/importPipeline.js`
- [Rules automation](https://github.com/jamestrichmond/wekan/tree/main/client/components/rules): `client/components/rules`
- [Search queries](https://github.com/jamestrichmond/wekan/blob/main/config/query-classes.js): `config/query-classes.js`
- [Attachment interface](https://github.com/jamestrichmond/wekan/blob/main/client/components/cards/attachments.js): `client/components/cards/attachments.js`

### Server operations

- [Attachment storage](https://github.com/jamestrichmond/wekan/blob/main/server/models/attachmentStorageSettings.js): `server/models/attachmentStorageSettings.js`
- [Webhook delivery](https://github.com/jamestrichmond/wekan/blob/main/server/notifications/storedWebhooks.js): `server/notifications/storedWebhooks.js`
- [Continuous backup](https://github.com/jamestrichmond/wekan/blob/main/server/lib/continuousBackup/manager.js): `server/lib/continuousBackup/manager.js`

### Platform integrations

- [Sandstorm bridge](https://github.com/jamestrichmond/wekan/blob/main/imports/sandstorm/bridgeClient.mjs): `imports/sandstorm/bridgeClient.mjs`
- [Cap’n Proto schemas](https://github.com/jamestrichmond/wekan/tree/main/imports/sandstorm/capnp): `imports/sandstorm/capnp`

### Other components

- **Board user**
- **Sandstorm platform**

## Connections

- Board user → Client application: uses (evidence: `README.md`)
- Client application → Board views: presents (evidence: `README.md`)
- Board views → Board data model: shows boards (evidence: `README.md`)
- Board views → Card interface: opens cards (evidence: `README.md`)
- Card interface → Board data model: updates work
- Board user → Import interface: imports boards (evidence: `README.md`)
- Import interface → Import pipeline: submits import
- Board user → Rules automation: configures rules (evidence: `README.md`)
- Board user → Search queries: searches boards (evidence: `README.md`)
- Card interface → Attachment interface: manages files (evidence: `README.md`)
- Attachment interface → Attachment storage: stores files
- Board data model → Webhook delivery: triggers delivery
- Continuous backup → Board data model: backs up data
- Sandstorm platform → Sandstorm bridge: provides RPC (evidence: `imports/sandstorm/bridgeClient.mjs`)
- Sandstorm bridge → Cap’n Proto schemas: uses schemas (evidence: `imports/sandstorm/bridgeClient.mjs`)
