# sudharsan318560/aem-eds-training architecture

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

- Interactive diagram: https://gitdiagram.com/sudharsan318560/aem-eds-training
- Repository: https://github.com/sudharsan318560/aem-eds-training

## Overview

This is an Adobe Edge Delivery Services (AEM) starter for rendering authored web pages, not a standalone backend. The main workflow starts in the browser: scripts.js decorates the page, loads sections and blocks through aem.js, then loads shared header/footer content and defers consent checks. Distinct branches cover authored fragments, reusable header/footer fragments, dynamic widgets, and card/column block decoration. The excerpts show these runtime relationships; unsampled features and external content configuration are not inferred.

Main entry points: [`scripts/scripts.js`](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/scripts.js) (Page Bootstrap), [`blocks/fragment/fragment.js`](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/fragment/fragment.js) (Fragment Loading), [`scripts/aem.js`](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js) (AEM Runtime), [`blocks/header/header.js`](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/header/header.js) (Header Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page Runtime"]
  node_bootstrap["Page Bootstrap<br/>[scripts.js]"]
  node_runtime["AEM Runtime<br/>[aem.js]"]
  node_section["Section Loading<br/>[aem.js]"]
  node_blockdispatch["Block Dispatch<br/>[aem.js]"]
end

subgraph group_content["Content Loading"]
  node_fragment["Fragment Loading<br/>[fragment.js]"]
  node_header["Header Navigation<br/>[header.js]"]
  node_footer["Footer Content<br/>[footer.js]"]
end

subgraph group_blocks["Page Blocks"]
  node_widget["Dynamic Widgets<br/>[widget.js]"]
  node_cards["Cards Block<br/>[cards.js]"]
  node_columns["Columns Block<br/>[columns.js]"]
end

subgraph group_consent["Consent"]
  node_consentcheck["Consent Check<br/>[consent-check.js]"]
  node_consented["Consented Scripts<br/>[consented.js]"]
end

node_browser(("Browser"))
node_contentorigin["Authored Content"]

node_browser -->|"starts"| node_bootstrap
node_bootstrap -->|"calls"| node_runtime
node_bootstrap -->|"loads sections"| node_section
node_bootstrap -->|"decorates blocks"| node_blockdispatch
node_bootstrap -->|"auto-loads"| node_fragment
node_bootstrap -->|"loads header"| node_header
node_bootstrap -->|"loads footer"| node_footer
node_bootstrap -->|"imports later"| node_consentcheck
node_fragment -->|"fetches HTML"| node_contentorigin
node_fragment -->|"decorates content"| node_bootstrap
node_fragment -->|"loads sections"| node_section
node_header -->|"reads metadata"| node_runtime
node_header -->|"loads nav fragment"| node_fragment
node_footer -->|"reads metadata"| node_runtime
node_footer -->|"loads footer fragment"| node_fragment
node_blockdispatch -->|"imports block"| node_cards
node_blockdispatch -->|"imports block"| node_columns
node_blockdispatch -->|"imports block"| node_widget
node_cards -->|"creates pictures"| node_runtime
node_widget -->|"loads CSS"| node_runtime
node_consentcheck -->|"imports on consent"| node_consented

click node_bootstrap "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/scripts.js"
click node_runtime "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js"
click node_section "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js"
click node_blockdispatch "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js"
click node_fragment "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/fragment/fragment.js"
click node_header "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/header/header.js"
click node_footer "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/footer/footer.js"
click node_widget "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/widget/widget.js"
click node_cards "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/cards/cards.js"
click node_columns "https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/columns/columns.js"
click node_consentcheck "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/consent-check.js"
click node_consented "https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/consented.js"

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_bootstrap,node_runtime,node_section,node_blockdispatch,node_browser toneBlue
class node_fragment,node_header,node_footer toneAmber
class node_widget,node_cards,node_columns toneMint
class node_consentcheck,node_consented toneRose
class node_contentorigin toneIndigo
```

## Components

### Page Runtime

- [Page Bootstrap](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/scripts.js): `scripts/scripts.js`
- [AEM Runtime](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js): `scripts/aem.js`
- [Section Loading](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js): `scripts/aem.js`
- [Block Dispatch](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/aem.js): `scripts/aem.js`

### Content Loading

- [Fragment Loading](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/fragment/fragment.js): `blocks/fragment/fragment.js`
- [Header Navigation](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/header/header.js): `blocks/header/header.js`
- [Footer Content](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/footer/footer.js): `blocks/footer/footer.js`

### Page Blocks

- [Dynamic Widgets](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/widget/widget.js): `blocks/widget/widget.js`
- [Cards Block](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/cards/cards.js): `blocks/cards/cards.js`
- [Columns Block](https://github.com/sudharsan318560/aem-eds-training/blob/main/blocks/columns/columns.js): `blocks/columns/columns.js`

### Consent

- [Consent Check](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/consent-check.js): `scripts/consent-check.js`
- [Consented Scripts](https://github.com/sudharsan318560/aem-eds-training/blob/main/scripts/consented.js): `scripts/consented.js`

### Other components

- **Browser**
- **Authored Content**

## Connections

- Browser → Page Bootstrap: starts (evidence: `scripts/scripts.js`)
- Page Bootstrap → AEM Runtime: calls (evidence: `scripts/scripts.js`)
- Page Bootstrap → Section Loading: loads sections (evidence: `scripts/scripts.js`)
- Page Bootstrap → Block Dispatch: decorates blocks (evidence: `scripts/scripts.js`)
- Page Bootstrap → Fragment Loading: auto-loads (evidence: `scripts/scripts.js`)
- Page Bootstrap → Header Navigation: loads header (evidence: `scripts/scripts.js`)
- Page Bootstrap → Footer Content: loads footer (evidence: `scripts/scripts.js`)
- Page Bootstrap → Consent Check: imports later (evidence: `scripts/scripts.js`)
- Fragment Loading → Authored Content: fetches HTML (evidence: `blocks/fragment/fragment.js`)
- Fragment Loading → Page Bootstrap: decorates content (evidence: `blocks/fragment/fragment.js`)
- Fragment Loading → Section Loading: loads sections (evidence: `blocks/fragment/fragment.js`)
- Header Navigation → AEM Runtime: reads metadata (evidence: `blocks/header/header.js`)
- Header Navigation → Fragment Loading: loads nav fragment (evidence: `blocks/header/header.js`)
- Footer Content → AEM Runtime: reads metadata (evidence: `blocks/footer/footer.js`)
- Footer Content → Fragment Loading: loads footer fragment (evidence: `blocks/footer/footer.js`)
- Block Dispatch → Cards Block: imports block (evidence: `scripts/aem.js`)
- Block Dispatch → Columns Block: imports block (evidence: `scripts/aem.js`)
- Block Dispatch → Dynamic Widgets: imports block (evidence: `scripts/aem.js`)
- Cards Block → AEM Runtime: creates pictures (evidence: `blocks/cards/cards.js`)
- Dynamic Widgets → AEM Runtime: loads CSS (evidence: `blocks/widget/widget.js`)
- Consent Check → Consented Scripts: imports on consent (evidence: `scripts/consent-check.js`)
