# pipe-cd/pipecd architecture

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

- Interactive diagram: https://gitdiagram.com/pipe-cd/pipecd
- Repository: https://github.com/pipe-cd/pipecd

## Overview

PipeCD is a GitOps continuous-delivery platform: engineers or CI submit application changes and deployment operations, which PipeCD plans and runs through configured stages, then exposes deployment status and operational insights. It supports Kubernetes, Terraform, Cloud Run, Lambda, and ECS, plus deployment analysis, plan previews, notifications, and application management. The repository also contains a newer plugin-based piped implementation. Some internal connections below are documented capabilities rather than inspected call paths; those are marked dashed where source evidence is unavailable.

Main entry points: [`pkg/app/piped/controller/controller.go`](https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/controller.go) (Piped runtime), [`pkg/app/piped/executor`](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/executor) (Deployment stages), [`pkg/app/piped/planner`](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/planner) (Pipeline planning), [`cmd/controlplane/server.go`](https://github.com/pipe-cd/pipecd/blob/master/cmd/controlplane/server.go) (Control-plane server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control plane"]
  node_controlserver["Control-plane server<br/>[server.go]"]
  node_grpcapi["API services"]
  node_appconfig["Application config<br/>[application.go]"]
  node_appconfigv1["Plugin-era config<br/>[application.go]"]
end

subgraph group_delivery["Deployment runtime"]
  node_piped["Piped runtime<br/>[controller.go]"]
  node_pipedv1["Plugin runtime<br/>[controller.go]"]
  node_planner["Pipeline planning"]
  node_executor["Deployment stages"]
end

subgraph group_integrations["Platform integrations"]
  node_plugins{{"Deployment plugins"}}
  node_platform["Platform providers"]
end

subgraph group_operations["Operations and insights"]
  node_analysis["Deployment analysis"]
  node_planpreview["Plan preview"]
  node_notifier["Notifications"]
  node_insights["Delivery insights<br/>[application.go]"]
  node_state[("Deployment state")]
end

subgraph group_clients["User interfaces"]
  node_pipectl["pipectl commands"]
  node_web["Web console"]
end

node_engineer(("Engineer or CI"))

node_engineer -->|"runs commands"| node_pipectl
node_engineer -.->|"manages deployments"| node_web
node_pipectl -.->|"requests operations"| node_controlserver
node_controlserver -->|"configures APIs"| node_grpcapi
node_engineer -.->|"defines pipeline"| node_appconfig
node_engineer -.->|"defines pipeline"| node_appconfigv1
node_appconfig -->|"supplies stages"| node_planner
node_piped -.->|"plans deployments"| node_planner
node_planner -.->|"dispatches stages"| node_executor
node_pipedv1 -.->|"runs plugin stages"| node_plugins
node_executor -.->|"deploys applications"| node_platform
node_executor -.->|"analyzes impact"| node_analysis
node_engineer -.->|"previews changes"| node_planpreview
node_piped -.->|"sends notifications"| node_notifier
node_piped -.->|"tracks live state"| node_state
node_engineer -.->|"reviews delivery"| node_insights

click node_controlserver "https://github.com/pipe-cd/pipecd/blob/master/cmd/controlplane/server.go"
click node_grpcapi "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/server/grpcapi"
click node_appconfig "https://github.com/pipe-cd/pipecd/blob/master/pkg/config/application.go"
click node_appconfigv1 "https://github.com/pipe-cd/pipecd/blob/master/pkg/configv1/application.go"
click node_pipectl "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/pipectl/cmd"
click node_web "https://github.com/pipe-cd/pipecd/tree/master/web/src"
click node_piped "https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/controller.go"
click node_pipedv1 "https://github.com/pipe-cd/pipecd/blob/master/pkg/app/pipedv1/controller/controller.go"
click node_planner "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/planner"
click node_executor "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/executor"
click node_plugins "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/pipedv1/plugin"
click node_platform "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/platformprovider"
click node_analysis "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/executor/analysis"
click node_planpreview "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/planpreview"
click node_notifier "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/notifier"
click node_insights "https://github.com/pipe-cd/pipecd/blob/master/pkg/insight/application.go"
click node_state "https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/livestatestore"

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_controlserver,node_grpcapi,node_appconfig,node_appconfigv1 toneBlue
class node_piped,node_pipedv1,node_planner,node_executor toneAmber
class node_plugins,node_platform toneMint
class node_analysis,node_planpreview,node_notifier,node_insights,node_state toneRose
class node_pipectl,node_web,node_engineer toneIndigo
```

## Components

### Control plane

- [Control-plane server](https://github.com/pipe-cd/pipecd/blob/master/cmd/controlplane/server.go): `cmd/controlplane/server.go`
- [API services](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/server/grpcapi): `pkg/app/server/grpcapi`
- [Application config](https://github.com/pipe-cd/pipecd/blob/master/pkg/config/application.go): `pkg/config/application.go`
- [Plugin-era config](https://github.com/pipe-cd/pipecd/blob/master/pkg/configv1/application.go): `pkg/configv1/application.go`

### Deployment runtime

- [Piped runtime](https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/controller.go): `pkg/app/piped/controller/controller.go`
- [Plugin runtime](https://github.com/pipe-cd/pipecd/blob/master/pkg/app/pipedv1/controller/controller.go): `pkg/app/pipedv1/controller/controller.go`
- [Pipeline planning](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/planner): `pkg/app/piped/planner`
- [Deployment stages](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/executor): `pkg/app/piped/executor`

### Platform integrations

- [Deployment plugins](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/pipedv1/plugin): `pkg/app/pipedv1/plugin`
- [Platform providers](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/platformprovider): `pkg/app/piped/platformprovider`

### Operations and insights

- [Deployment analysis](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/executor/analysis): `pkg/app/piped/executor/analysis`
- [Plan preview](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/planpreview): `pkg/app/piped/planpreview`
- [Notifications](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/notifier): `pkg/app/piped/notifier`
- [Delivery insights](https://github.com/pipe-cd/pipecd/blob/master/pkg/insight/application.go): `pkg/insight/application.go`
- [Deployment state](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/piped/livestatestore): `pkg/app/piped/livestatestore`

### User interfaces

- [pipectl commands](https://github.com/pipe-cd/pipecd/tree/master/pkg/app/pipectl/cmd): `pkg/app/pipectl/cmd`
- [Web console](https://github.com/pipe-cd/pipecd/tree/master/web/src): `web/src`

### Other components

- **Engineer or CI**

## Connections

- Engineer or CI → pipectl commands: runs commands
- Engineer or CI → Web console: manages deployments
- pipectl commands → Control-plane server: requests operations
- Control-plane server → API services: configures APIs (evidence: `cmd/controlplane/server.go`)
- Engineer or CI → Application config: defines pipeline
- Engineer or CI → Plugin-era config: defines pipeline
- Application config → Pipeline planning: supplies stages (evidence: `pkg/app/piped/planner/kubernetes/pipeline.go`)
- Piped runtime → Pipeline planning: plans deployments
- Pipeline planning → Deployment stages: dispatches stages
- Plugin runtime → Deployment plugins: runs plugin stages
- Deployment stages → Platform providers: deploys applications
- Deployment stages → Deployment analysis: analyzes impact
- Engineer or CI → Plan preview: previews changes
- Piped runtime → Notifications: sends notifications
- Piped runtime → Deployment state: tracks live state
- Engineer or CI → Delivery insights: reviews delivery
