# rynorbu/aws-resilience-simulator architecture

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

- Interactive diagram: https://gitdiagram.com/rynorbu/aws-resilience-simulator
- Repository: https://github.com/rynorbu/aws-resilience-simulator

## Overview

AWS Architecture Lab is a browser-based AWS design and resilience teaching tool. A learner adds AWS services and boundaries to the canvas, configures them, then runs a request simulation through modeled service behavior, networking, and failure conditions. Results appear as a traced timeline and can be analyzed for resilience and security findings. Separate learning, cost, export, and challenge workflows extend the core design-to-result loop. The sampled source confirms UI composition, service catalog usage, pipeline delegation, and analysis detectors; some integrations are represented only at their documented subsystem paths.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Design Experience"]
  node_app["App Shell<br/>[App.tsx]"]
  node_palette["Service Palette<br/>[ServicePalette.tsx]"]
  node_canvas["Architecture Canvas"]
  node_inspector["Service Inspector"]
  node_simulation_controls["Simulation Controls"]
  node_timeline["Event Timeline<br/>[EventTimeline.tsx]"]
end

subgraph group_modeling["Architecture Modeling"]
  node_architecture_state["Architecture State"]
  node_service_catalog["AWS Service Catalog<br/>[serviceCatalog.ts]"]
  node_layout_engine["Layout and CIDR<br/>[cidrAllocator.ts]"]
  node_validation["Architecture Validation<br/>[index.ts]"]
end

subgraph group_runtime["Simulation Runtime"]
  node_request_simulator["Request Simulator"]
  node_pipeline["Request Pipeline<br/>[engine.ts]"]
  node_service_registry["Service Models<br/>[registry.ts]"]
  node_network_firewalls["Network Firewalls"]
  node_failure_engine["Failure Propagation<br/>[index.ts]"]
  node_trace_engine["Request Trace<br/>[index.ts]"]
end

subgraph group_learning["Analysis Learning"]
  node_analysis_engine["Architecture Analysis<br/>[rulesEngine.ts]"]
  node_analysis_detectors["Resilience Detectors<br/>[spofDetector.ts]"]
  node_labs["Labs and Challenges<br/>[runLabReference.ts]"]
  node_course_data["Course Reference Data<br/>[courseLabs.ts]"]
  node_cost_engine["Cost Calculator<br/>[costCalculator.ts]"]
  node_export_tools["Report Export<br/>[exportImage.ts]"]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_app
node_app -->|"provides"| node_architecture_state
node_app -->|"renders"| node_palette
node_app -->|"renders"| node_canvas
node_app -->|"renders"| node_inspector
node_app -->|"renders"| node_simulation_controls
node_app -->|"renders"| node_timeline
node_palette -->|"adds services"| node_architecture_state
node_canvas -->|"edits graph"| node_architecture_state
node_inspector -->|"configures nodes"| node_architecture_state
node_architecture_state -->|"resolves definitions"| node_service_catalog
node_architecture_state -->|"allocates CIDRs"| node_layout_engine
node_architecture_state -->|"validates design"| node_validation
node_simulation_controls -->|"starts simulation"| node_architecture_state
node_architecture_state -->|"runs request"| node_request_simulator
node_request_simulator -->|"executes path"| node_pipeline
node_pipeline -->|"resolves behavior"| node_service_registry
node_pipeline -->|"checks NACLs"| node_network_firewalls
node_pipeline -->|"records hops"| node_trace_engine
node_architecture_state -->|"models failures"| node_failure_engine
node_analysis_engine -->|"runs detectors"| node_analysis_detectors
node_course_data -->|"supplies labs"| node_labs
node_cost_engine -->|"reads architecture"| node_architecture_state
node_export_tools -->|"exports diagram"| node_architecture_state

click node_app "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/App.tsx"
click node_palette "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/palette/ServicePalette.tsx"
click node_canvas "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/canvas/ArchitectureCanvas.tsx"
click node_inspector "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/inspector/ServiceInspector.tsx"
click node_simulation_controls "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/simulation/SimulationControls.tsx"
click node_timeline "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/simulation/EventTimeline.tsx"
click node_architecture_state "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/context/ArchitectureContext.tsx"
click node_service_catalog "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/data/serviceCatalog.ts"
click node_layout_engine "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/layout/cidrAllocator.ts"
click node_validation "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/validation/index.ts"
click node_request_simulator "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/simulation/requestSimulator.ts"
click node_pipeline "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/pipeline/engine.ts"
click node_service_registry "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/service/registry.ts"
click node_network_firewalls "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/simulation/networkFirewalls.ts"
click node_failure_engine "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/failure/index.ts"
click node_trace_engine "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/trace/index.ts"
click node_analysis_engine "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/analysis/rulesEngine.ts"
click node_analysis_detectors "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/analysis/spofDetector.ts"
click node_labs "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/labs/runLabReference.ts"
click node_course_data "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/data/courseLabs.ts"
click node_cost_engine "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/cost/costCalculator.ts"
click node_export_tools "https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/utils/exportImage.ts"

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_app,node_palette,node_canvas,node_inspector,node_simulation_controls,node_timeline toneBlue
class node_architecture_state,node_service_catalog,node_layout_engine,node_validation toneAmber
class node_request_simulator,node_pipeline,node_service_registry,node_network_firewalls,node_failure_engine,node_trace_engine toneMint
class node_analysis_engine,node_analysis_detectors,node_labs,node_course_data,node_cost_engine,node_export_tools toneRose
class node_learner toneIndigo
```

## Components

### Design Experience

- [App Shell](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/App.tsx): `src/App.tsx`
- [Service Palette](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/palette/ServicePalette.tsx): `src/components/palette/ServicePalette.tsx`
- [Architecture Canvas](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/canvas/ArchitectureCanvas.tsx): `src/components/canvas/ArchitectureCanvas.tsx`
- [Service Inspector](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/inspector/ServiceInspector.tsx): `src/components/inspector/ServiceInspector.tsx`
- [Simulation Controls](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/simulation/SimulationControls.tsx): `src/components/simulation/SimulationControls.tsx`
- [Event Timeline](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/components/simulation/EventTimeline.tsx): `src/components/simulation/EventTimeline.tsx`

### Architecture Modeling

- [Architecture State](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/context/ArchitectureContext.tsx): `src/context/ArchitectureContext.tsx`
- [AWS Service Catalog](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/data/serviceCatalog.ts): `src/data/serviceCatalog.ts`
- [Layout and CIDR](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/layout/cidrAllocator.ts): `src/engine/layout/cidrAllocator.ts`
- [Architecture Validation](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/validation/index.ts): `src/engine/validation/index.ts`

### Simulation Runtime

- [Request Simulator](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/simulation/requestSimulator.ts): `src/engine/simulation/requestSimulator.ts`
- [Request Pipeline](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/pipeline/engine.ts): `src/engine/pipeline/engine.ts`
- [Service Models](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/service/registry.ts): `src/engine/service/registry.ts`
- [Network Firewalls](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/simulation/networkFirewalls.ts): `src/engine/simulation/networkFirewalls.ts`
- [Failure Propagation](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/failure/index.ts): `src/engine/failure/index.ts`
- [Request Trace](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/trace/index.ts): `src/engine/trace/index.ts`

### Analysis Learning

- [Architecture Analysis](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/analysis/rulesEngine.ts): `src/engine/analysis/rulesEngine.ts`
- [Resilience Detectors](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/analysis/spofDetector.ts): `src/engine/analysis/spofDetector.ts`
- [Labs and Challenges](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/labs/runLabReference.ts): `src/engine/labs/runLabReference.ts`
- [Course Reference Data](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/data/courseLabs.ts): `src/data/courseLabs.ts`
- [Cost Calculator](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/engine/cost/costCalculator.ts): `src/engine/cost/costCalculator.ts`
- [Report Export](https://github.com/rynorbu/aws-resilience-simulator/blob/main/src/utils/exportImage.ts): `src/utils/exportImage.ts`

### Other components

- **Learner**

## Connections

- Learner → App Shell: uses
- App Shell → Architecture State: provides
- App Shell → Service Palette: renders
- App Shell → Architecture Canvas: renders
- App Shell → Service Inspector: renders
- App Shell → Simulation Controls: renders
- App Shell → Event Timeline: renders
- Service Palette → Architecture State: adds services
- Architecture Canvas → Architecture State: edits graph
- Service Inspector → Architecture State: configures nodes
- Architecture State → AWS Service Catalog: resolves definitions
- Architecture State → Layout and CIDR: allocates CIDRs
- Architecture State → Architecture Validation: validates design
- Simulation Controls → Architecture State: starts simulation
- Architecture State → Request Simulator: runs request
- Request Simulator → Request Pipeline: executes path
- Request Pipeline → Service Models: resolves behavior
- Request Pipeline → Network Firewalls: checks NACLs
- Request Pipeline → Request Trace: records hops
- Architecture State → Failure Propagation: models failures
- Architecture Analysis → Resilience Detectors: runs detectors
- Course Reference Data → Labs and Challenges: supplies labs
- Cost Calculator → Architecture State: reads architecture
- Report Export → Architecture State: exports diagram
