# pydio/cells architecture

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

- Interactive diagram: https://gitdiagram.com/pydio/cells
- Repository: https://github.com/pydio/cells

## Overview

Pydio Cells is an organizational file-sharing platform built as a Go microservice system. Its principal workflow is a user request to the web interface, through authentication and file/tree operations, to stored or searched content. The repository also exposes identity and sharing APIs, OAuth, version history, synchronization/indexing, service discovery/configuration, and scheduled jobs. The graph includes the runtime manager and storage integrations as internal layers. Some subsystems are represented from the file tree and SOURCE INDEX rather than inspected implementations; their connections are omitted when evidence does not establish them.

Main entry points: [`frontend/web/public-handler.go`](https://github.com/pydio/cells/blob/v5-dev/frontend/web/public-handler.go) (Web Frontend), [`common/nodes/abstract/virtual-nodes-manager.go`](https://github.com/pydio/cells/blob/v5-dev/common/nodes/abstract/virtual-nodes-manager.go) (Virtual Nodes), [`gateway/data/hooks/auth-handler.go`](https://github.com/pydio/cells/blob/v5-dev/gateway/data/hooks/auth-handler.go) (Request Authentication), [`idm/user/rest/handler.go`](https://github.com/pydio/cells/blob/v5-dev/idm/user/rest/handler.go) (User API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["User Access"]
  node_web["Web Frontend<br/>[public-handler.go]"]
  node_auth["Request Authentication<br/>[auth-handler.go]"]
  node_websocket["WebSocket Gateway<br/>[ws-handler.go]"]
  node_grpcgateway["Tree gRPC Gateway<br/>[handler.go]"]
end

subgraph group_content["Files and Content"]
  node_virtualnodes["Virtual Nodes"]
  node_search["File Search<br/>[handler.go]"]
  node_index["Source Indexing<br/>[handler.go]"]
  node_versions["Version History<br/>[handler.go]"]
  node_s3["S3 Data Source<br/>[client-s3.go]"]
end

subgraph group_identity["Identity and Sharing"]
  node_oauth["OAuth Service<br/>[handler.go]"]
  node_users["User API<br/>[handler.go]"]
  node_usermeta["User Metadata<br/>[client.go]"]
  node_sharing["Sharing ACLs<br/>[client-acls.go]"]
end

subgraph group_platform["Runtime Platform"]
  node_configapi["Configuration API<br/>[api-services.go]"]
  node_discovery["Service Discovery<br/>[service.go]"]
  node_runtime["Runtime Manager<br/>[manager.go]"]
end

subgraph group_operations["Background Operations"]
  node_jobs["Job API<br/>[handler.go]"]
  node_actions["Job Actions<br/>[manager.go]"]
end

node_user(("User"))

node_user -->|"uses"| node_web
node_web -.->|"routes requests"| node_auth
node_auth -.->|"forwards requests"| node_websocket
node_web -->|"uses node handlers"| node_virtualnodes
node_web -->|"loads share data"| node_sharing
node_search -->|"uses share services"| node_sharing
node_virtualnodes -->|"uses identity clients"| node_usermeta
node_virtualnodes -.->|"resolves data sources"| node_s3
node_index -.->|"indexes source data"| node_s3
node_versions -->|"uses tree clients"| node_virtualnodes
node_oauth -.->|"authenticates users"| node_users
node_users -.->|"uses metadata"| node_usermeta
node_configapi -->|"uses registry"| node_discovery
node_discovery -->|"uses runtime services"| node_runtime
node_runtime -.->|"initializes services"| node_configapi
node_jobs -.->|"dispatches actions"| node_actions

click node_web "https://github.com/pydio/cells/blob/v5-dev/frontend/web/public-handler.go"
click node_auth "https://github.com/pydio/cells/blob/v5-dev/gateway/data/hooks/auth-handler.go"
click node_websocket "https://github.com/pydio/cells/blob/v5-dev/gateway/websocket/ws-handler.go"
click node_grpcgateway "https://github.com/pydio/cells/blob/v5-dev/gateway/grpc/handler.go"
click node_virtualnodes "https://github.com/pydio/cells/blob/v5-dev/common/nodes/abstract/virtual-nodes-manager.go"
click node_search "https://github.com/pydio/cells/blob/v5-dev/data/search/rest/handler.go"
click node_index "https://github.com/pydio/cells/blob/v5-dev/data/source/index/grpc/handler.go"
click node_versions "https://github.com/pydio/cells/blob/v5-dev/data/versions/grpc/handler.go"
click node_s3 "https://github.com/pydio/cells/blob/v5-dev/common/sync/endpoints/s3/client-s3.go"
click node_oauth "https://github.com/pydio/cells/blob/v5-dev/idm/oauth/grpc/handler.go"
click node_users "https://github.com/pydio/cells/blob/v5-dev/idm/user/rest/handler.go"
click node_usermeta "https://github.com/pydio/cells/blob/v5-dev/idm/meta/client.go"
click node_sharing "https://github.com/pydio/cells/blob/v5-dev/idm/share/client-acls.go"
click node_configapi "https://github.com/pydio/cells/blob/v5-dev/discovery/config/rest/api-services.go"
click node_discovery "https://github.com/pydio/cells/blob/v5-dev/discovery/registry/service/service.go"
click node_runtime "https://github.com/pydio/cells/blob/v5-dev/common/runtime/manager/manager.go"
click node_jobs "https://github.com/pydio/cells/blob/v5-dev/scheduler/jobs/grpc/handler.go"
click node_actions "https://github.com/pydio/cells/blob/v5-dev/scheduler/actions/manager.go"

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_web,node_auth,node_websocket,node_grpcgateway,node_user toneBlue
class node_virtualnodes,node_search,node_index,node_versions,node_s3 toneAmber
class node_oauth,node_users,node_usermeta,node_sharing toneMint
class node_configapi,node_discovery,node_runtime toneRose
class node_jobs,node_actions toneIndigo
```

## Components

### User Access

- [Web Frontend](https://github.com/pydio/cells/blob/v5-dev/frontend/web/public-handler.go): `frontend/web/public-handler.go`
- [Request Authentication](https://github.com/pydio/cells/blob/v5-dev/gateway/data/hooks/auth-handler.go): `gateway/data/hooks/auth-handler.go`
- [WebSocket Gateway](https://github.com/pydio/cells/blob/v5-dev/gateway/websocket/ws-handler.go): `gateway/websocket/ws-handler.go`
- [Tree gRPC Gateway](https://github.com/pydio/cells/blob/v5-dev/gateway/grpc/handler.go): `gateway/grpc/handler.go`

### Files and Content

- [Virtual Nodes](https://github.com/pydio/cells/blob/v5-dev/common/nodes/abstract/virtual-nodes-manager.go): `common/nodes/abstract/virtual-nodes-manager.go`
- [File Search](https://github.com/pydio/cells/blob/v5-dev/data/search/rest/handler.go): `data/search/rest/handler.go`
- [Source Indexing](https://github.com/pydio/cells/blob/v5-dev/data/source/index/grpc/handler.go): `data/source/index/grpc/handler.go`
- [Version History](https://github.com/pydio/cells/blob/v5-dev/data/versions/grpc/handler.go): `data/versions/grpc/handler.go`
- [S3 Data Source](https://github.com/pydio/cells/blob/v5-dev/common/sync/endpoints/s3/client-s3.go): `common/sync/endpoints/s3/client-s3.go`

### Identity and Sharing

- [OAuth Service](https://github.com/pydio/cells/blob/v5-dev/idm/oauth/grpc/handler.go): `idm/oauth/grpc/handler.go`
- [User API](https://github.com/pydio/cells/blob/v5-dev/idm/user/rest/handler.go): `idm/user/rest/handler.go`
- [User Metadata](https://github.com/pydio/cells/blob/v5-dev/idm/meta/client.go): `idm/meta/client.go`
- [Sharing ACLs](https://github.com/pydio/cells/blob/v5-dev/idm/share/client-acls.go): `idm/share/client-acls.go`

### Runtime Platform

- [Configuration API](https://github.com/pydio/cells/blob/v5-dev/discovery/config/rest/api-services.go): `discovery/config/rest/api-services.go`
- [Service Discovery](https://github.com/pydio/cells/blob/v5-dev/discovery/registry/service/service.go): `discovery/registry/service/service.go`
- [Runtime Manager](https://github.com/pydio/cells/blob/v5-dev/common/runtime/manager/manager.go): `common/runtime/manager/manager.go`

### Background Operations

- [Job API](https://github.com/pydio/cells/blob/v5-dev/scheduler/jobs/grpc/handler.go): `scheduler/jobs/grpc/handler.go`
- [Job Actions](https://github.com/pydio/cells/blob/v5-dev/scheduler/actions/manager.go): `scheduler/actions/manager.go`

### Other components

- **User**

## Connections

- User → Web Frontend: uses
- Web Frontend → Request Authentication: routes requests
- Request Authentication → WebSocket Gateway: forwards requests
- Web Frontend → Virtual Nodes: uses node handlers (evidence: `frontend/web/public-handler.go`)
- Web Frontend → Sharing ACLs: loads share data (evidence: `frontend/web/public-handler.go`)
- File Search → Sharing ACLs: uses share services (evidence: `data/search/rest/handler.go`)
- Virtual Nodes → User Metadata: uses identity clients (evidence: `common/nodes/abstract/virtual-nodes-manager.go`)
- Virtual Nodes → S3 Data Source: resolves data sources
- Source Indexing → S3 Data Source: indexes source data
- Version History → Virtual Nodes: uses tree clients (evidence: `data/versions/grpc/handler.go`)
- OAuth Service → User API: authenticates users
- User API → User Metadata: uses metadata
- Configuration API → Service Discovery: uses registry (evidence: `discovery/config/rest/api-services.go`)
- Service Discovery → Runtime Manager: uses runtime services (evidence: `discovery/registry/service/service.go`)
- Runtime Manager → Configuration API: initializes services
- Job API → Job Actions: dispatches actions
