# thevpc/the-pyramid-architecture architecture

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

- Interactive diagram: https://gitdiagram.com/thevpc/the-pyramid-architecture
- Repository: https://github.com/thevpc/the-pyramid-architecture

## Overview

The repository presents the Pyramid Architecture: a modular architecture pattern, with a PetStore reference implementation. The documented product workflow is architectural adoption: consult the whitepaper, use the adoption checklist, and examine the reference implementation. The README also highlights module-boundary enforcement, modulith-to-microservices migration, swappable infrastructure, and AI-agent integration. No source excerpts were provided, so implementation-level relationships are omitted; links shown are documented by the README.

Main entry points: [`whitepaper.md`](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md) (Architecture whitepaper), [`docs/adoption-guide.md`](https://github.com/thevpc/the-pyramid-architecture/blob/main/docs/adoption-guide.md) (Adoption checklist), [`examples/petstore`](https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore) (PetStore reference)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_architecture["Architecture"]
  node_whitepaper["Architecture whitepaper<br/>[whitepaper.md]"]
  node_boundaries["Module boundaries<br/>[whitepaper.md]"]
  node_migration["Modulith migration<br/>[whitepaper.md]"]
  node_infrastructure["Swappable infrastructure<br/>[whitepaper.md]"]
  node_ai["AI-agent integration<br/>[whitepaper.md]"]
end

subgraph group_adoption["Adoption"]
  node_checklist["Adoption checklist<br/>[adoption-guide.md]"]
end

subgraph group_reference["Reference implementation"]
  node_petstore["PetStore reference"]
  node_monolith["Monolith example"]
  node_microservices["Microservices example"]
  node_core["Shared core modules"]
end

node_architect(("Engineering team"))

node_architect -->|"consults"| node_whitepaper
node_architect -->|"uses"| node_checklist
node_architect -->|"examines"| node_petstore
node_whitepaper -->|"describes"| node_boundaries
node_whitepaper -->|"describes"| node_migration
node_whitepaper -->|"describes"| node_infrastructure
node_whitepaper -->|"describes"| node_ai

click node_whitepaper "https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md"
click node_boundaries "https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md"
click node_migration "https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md"
click node_infrastructure "https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md"
click node_ai "https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md"
click node_checklist "https://github.com/thevpc/the-pyramid-architecture/blob/main/docs/adoption-guide.md"
click node_petstore "https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore"
click node_monolith "https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/apps/monolith"
click node_microservices "https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/apps/microservices"
click node_core "https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/core"

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_whitepaper,node_boundaries,node_migration,node_infrastructure,node_ai toneBlue
class node_checklist toneAmber
class node_petstore,node_monolith,node_microservices,node_core toneMint
class node_architect toneIndigo
```

## Components

### Architecture

- [Architecture whitepaper](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md): `whitepaper.md`
- [Module boundaries](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md): `whitepaper.md`
- [Modulith migration](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md): `whitepaper.md`
- [Swappable infrastructure](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md): `whitepaper.md`
- [AI-agent integration](https://github.com/thevpc/the-pyramid-architecture/blob/main/whitepaper.md): `whitepaper.md`

### Adoption

- [Adoption checklist](https://github.com/thevpc/the-pyramid-architecture/blob/main/docs/adoption-guide.md): `docs/adoption-guide.md`

### Reference implementation

- [PetStore reference](https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore): `examples/petstore`
- [Monolith example](https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/apps/monolith): `examples/petstore/apps/monolith`
- [Microservices example](https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/apps/microservices): `examples/petstore/apps/microservices`
- [Shared core modules](https://github.com/thevpc/the-pyramid-architecture/tree/main/examples/petstore/core): `examples/petstore/core`

### Other components

- **Engineering team**

## Connections

- Engineering team → Architecture whitepaper: consults (evidence: `README.md`)
- Engineering team → Adoption checklist: uses (evidence: `README.md`)
- Engineering team → PetStore reference: examines (evidence: `README.md`)
- Architecture whitepaper → Module boundaries: describes (evidence: `README.md`)
- Architecture whitepaper → Modulith migration: describes (evidence: `README.md`)
- Architecture whitepaper → Swappable infrastructure: describes (evidence: `README.md`)
- Architecture whitepaper → AI-agent integration: describes (evidence: `README.md`)
