# base/node architecture

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

- Interactive diagram: https://gitdiagram.com/base/node
- Repository: https://github.com/base/node

## Overview

This archived repository packages a Base node for Docker Compose, combining the documented execution and consensus clients. Operators select a network configuration, supply Ethereum L1 RPC and beacon endpoints, and start the node. README-documented options include Flashblocks, follow mode, pruning, and snapshot-based sync. The tree provides no source excerpts, so runtime wiring and the roles of individual entrypoint or supervisor files cannot be verified; relationships below are limited to the README.

Main entry points: [`docker-compose.yml`](https://github.com/base/node/blob/main/docker-compose.yml) (Docker Compose), [`.env.mainnet`](https://github.com/base/node/blob/main/.env.mainnet) (Mainnet settings), [`.env.sepolia`](https://github.com/base/node/blob/main/.env.sepolia) (Sepolia settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operation["Node operation"]
  node_compose["Docker Compose<br/>[docker-compose.yml]"]
  node_consensus_entry["Consensus entrypoint"]
  node_execution_entry["Execution entrypoint"]
  node_supervisor["Process supervisor<br/>[supervisord.conf]"]
end

subgraph group_configuration["Network configuration"]
  node_mainnet["Mainnet settings<br/>[.env.mainnet]"]
  node_sepolia["Sepolia settings<br/>[.env.sepolia]"]
  node_environment["Environment settings<br/>[.env]"]
end

subgraph group_clients["Node clients"]
  node_execution["base-reth-node"]
  node_consensus["base-consensus"]
end

node_operator(("Node operator"))
node_l1_rpc["Ethereum L1 RPC"]
node_l1_beacon["L1 beacon endpoint"]
node_flashblocks["Flashblocks feed"]
node_follow_rpc["Source L2 RPC"]
node_snapshot["Node snapshot"]

node_operator -->|"selects network"| node_mainnet
node_operator -->|"selects network"| node_sepolia
node_operator -->|"provides endpoint"| node_l1_rpc
node_operator -->|"provides endpoint"| node_l1_beacon
node_operator -->|"starts node"| node_compose
node_mainnet -->|"configures"| node_compose
node_sepolia -->|"configures"| node_compose
node_compose -->|"runs client"| node_execution
node_compose -->|"runs client"| node_consensus
node_operator -.->|"configures optional"| node_flashblocks
node_operator -.->|"configures optional"| node_follow_rpc
node_operator -->|"restores from"| node_snapshot

click node_compose "https://github.com/base/node/blob/main/docker-compose.yml"
click node_consensus_entry "https://github.com/base/node/blob/main/consensus-entrypoint"
click node_execution_entry "https://github.com/base/node/blob/main/execution-entrypoint"
click node_supervisor "https://github.com/base/node/blob/main/supervisord.conf"
click node_mainnet "https://github.com/base/node/blob/main/.env.mainnet"
click node_sepolia "https://github.com/base/node/blob/main/.env.sepolia"
click node_environment "https://github.com/base/node/blob/main/.env"

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_compose,node_consensus_entry,node_execution_entry,node_supervisor toneBlue
class node_mainnet,node_sepolia,node_environment toneAmber
class node_execution,node_consensus toneMint
class node_operator,node_l1_rpc,node_l1_beacon,node_flashblocks,node_follow_rpc,node_snapshot toneIndigo
```

## Components

### Node operation

- [Docker Compose](https://github.com/base/node/blob/main/docker-compose.yml): `docker-compose.yml`
- [Consensus entrypoint](https://github.com/base/node/blob/main/consensus-entrypoint): `consensus-entrypoint`
- [Execution entrypoint](https://github.com/base/node/blob/main/execution-entrypoint): `execution-entrypoint`
- [Process supervisor](https://github.com/base/node/blob/main/supervisord.conf): `supervisord.conf`

### Network configuration

- [Mainnet settings](https://github.com/base/node/blob/main/.env.mainnet): `.env.mainnet`
- [Sepolia settings](https://github.com/base/node/blob/main/.env.sepolia): `.env.sepolia`
- [Environment settings](https://github.com/base/node/blob/main/.env): `.env`

### Node clients

- **base-reth-node**
- **base-consensus**

### Other components

- **Node operator**
- **Ethereum L1 RPC**
- **L1 beacon endpoint**
- **Flashblocks feed**
- **Source L2 RPC**
- **Node snapshot**

## Connections

- Node operator → Mainnet settings: selects network (evidence: `README.md`)
- Node operator → Sepolia settings: selects network (evidence: `README.md`)
- Node operator → Ethereum L1 RPC: provides endpoint (evidence: `README.md`)
- Node operator → L1 beacon endpoint: provides endpoint (evidence: `README.md`)
- Node operator → Docker Compose: starts node (evidence: `README.md`)
- Mainnet settings → Docker Compose: configures (evidence: `README.md`)
- Sepolia settings → Docker Compose: configures (evidence: `README.md`)
- Docker Compose → base-reth-node: runs client (evidence: `README.md`)
- Docker Compose → base-consensus: runs client (evidence: `README.md`)
- Node operator → Flashblocks feed: configures optional (evidence: `README.md`)
- Node operator → Source L2 RPC: configures optional (evidence: `README.md`)
- Node operator → Node snapshot: restores from (evidence: `README.md`)
