# sakthim1507/aem-eds-vtnf architecture

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

- Interactive diagram: https://gitdiagram.com/sakthim1507/aem-eds-vtnf
- Repository: https://github.com/sakthim1507/aem-eds-vtnf

## Overview

This repository is an Adobe AEM/Edge Delivery Services starter site: its browser runtime turns authored page markup into a decorated, lazy-loaded experience. The main workflow runs through page setup and decoration, block dispatch, then deferred section and shell loading. Blocks provide navigation, footer, content layouts, forms, events, video, and dynamically loaded widgets. Consent-gated scripts are a separate optional branch. The README identifies AEM CLI/proxy-based local development and preview/live environments, but the sampled runtime does not establish a specific content-fetching service workflow; unsampled block behavior is represented by its source directories.

Main entry points: [`scripts/aem.js`](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/aem.js) (AEM runtime utilities), [`scripts/scripts.js`](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/scripts.js) (Page loader), [`blocks/fragment/fragment.js`](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/fragment/fragment.js) (Content fragments), [`blocks/header/header.js`](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/header/header.js) (Header navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Page runtime"]
  node_page["Page markup"]
  node_page_loader["Page loader<br/>[scripts.js]"]
  node_aem_runtime["AEM runtime utilities<br/>[aem.js]"]
  node_page_decoration["Page decoration<br/>[scripts.js]"]
end

subgraph group_shell["Page shell"]
  node_header["Header navigation<br/>[header.js]"]
  node_footer["Footer<br/>[footer.js]"]
end

subgraph group_blocks["Content blocks"]
  node_fragment["Content fragments<br/>[fragment.js]"]
  node_cards["Cards<br/>[cards.js]"]
  node_card["Card<br/>[card.js]"]
  node_carousel["Carousel<br/>[carousel.js]"]
  node_columns["Columns<br/>[columns.js]"]
  node_explore_cards["Explore cards<br/>[explore-cards.js]"]
  node_events["Events<br/>[events.js]"]
  node_custom_form["Custom form<br/>[custom-form.js]"]
  node_hero["Hero<br/>[hero.js]"]
  node_task["Task<br/>[task.js]"]
  node_teaser["Teaser<br/>[teaser.js]"]
  node_test_teaser["Test teaser<br/>[test-teaser.js]"]
end

subgraph group_integrations["Media and consent"]
  node_consent_check["Consent check<br/>[consent-check.js]"]
  node_consented_scripts["Consented scripts<br/>[consented.js]"]
  node_video["Video player<br/>[video.js]"]
  node_widget["Widget loader<br/>[widget.js]"]
end

node_visitor(("Site visitor"))
node_video_hosts["YouTube and Vimeo"]

node_visitor -->|"views"| node_page
node_page -.->|"loads runtime"| node_page_loader
node_page_loader -->|"uses utilities"| node_aem_runtime
node_page_loader -->|"decorates page"| node_page_decoration
node_page_decoration -->|"uses helpers"| node_aem_runtime
node_aem_runtime -->|"dispatches blocks"| node_cards
node_aem_runtime -.->|"loads header"| node_header
node_aem_runtime -.->|"loads footer"| node_footer
node_page_loader -->|"loads header"| node_header
node_page_loader -->|"loads footer"| node_footer
node_page_loader -->|"imports later"| node_consent_check
node_consent_check -->|"imports on consent"| node_consented_scripts
node_header -->|"reads metadata"| node_aem_runtime
node_header -->|"loads nav fragment"| node_fragment
node_footer -->|"reads metadata"| node_aem_runtime
node_footer -->|"loads footer fragment"| node_fragment
node_fragment -->|"decorates fragment"| node_page_decoration
node_fragment -->|"loads sections"| node_aem_runtime
node_page_decoration -->|"auto-loads references"| node_fragment
node_cards -->|"optimizes images"| node_aem_runtime
node_widget -->|"loads styles"| node_aem_runtime
node_video -->|"embeds hosted video"| node_video_hosts

click node_page_loader "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/scripts.js"
click node_aem_runtime "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/aem.js"
click node_page_decoration "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/scripts.js"
click node_consent_check "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/consent-check.js"
click node_consented_scripts "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/consented.js"
click node_header "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/header/header.js"
click node_footer "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/footer/footer.js"
click node_fragment "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/fragment/fragment.js"
click node_cards "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/cards/cards.js"
click node_card "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/card/card.js"
click node_carousel "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/carousel/carousel.js"
click node_columns "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/columns/columns.js"
click node_explore_cards "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/explore-cards/explore-cards.js"
click node_events "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/events/events.js"
click node_custom_form "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/custom-form/custom-form.js"
click node_hero "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/hero/hero.js"
click node_task "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/task/task.js"
click node_teaser "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/teaser/teaser.js"
click node_test_teaser "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/test-teaser/test-teaser.js"
click node_video "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/video/video.js"
click node_widget "https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/widget/widget.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_page,node_page_loader,node_aem_runtime,node_page_decoration toneBlue
class node_header,node_footer toneAmber
class node_fragment,node_cards,node_card,node_carousel,node_columns,node_explore_cards,node_events,node_custom_form,node_hero,node_task,node_teaser,node_test_teaser toneMint
class node_consent_check,node_consented_scripts,node_video,node_widget toneRose
class node_visitor,node_video_hosts toneIndigo
```

## Components

### Page runtime

- **Page markup**
- [Page loader](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/scripts.js): `scripts/scripts.js`
- [AEM runtime utilities](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/aem.js): `scripts/aem.js`
- [Page decoration](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/scripts.js): `scripts/scripts.js`

### Page shell

- [Header navigation](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/header/header.js): `blocks/header/header.js`
- [Footer](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/footer/footer.js): `blocks/footer/footer.js`

### Content blocks

- [Content fragments](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/fragment/fragment.js): `blocks/fragment/fragment.js`
- [Cards](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/cards/cards.js): `blocks/cards/cards.js`
- [Card](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/card/card.js): `blocks/card/card.js`
- [Carousel](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/carousel/carousel.js): `blocks/carousel/carousel.js`
- [Columns](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/columns/columns.js): `blocks/columns/columns.js`
- [Explore cards](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/explore-cards/explore-cards.js): `blocks/explore-cards/explore-cards.js`
- [Events](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/events/events.js): `blocks/events/events.js`
- [Custom form](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/custom-form/custom-form.js): `blocks/custom-form/custom-form.js`
- [Hero](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/hero/hero.js): `blocks/hero/hero.js`
- [Task](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/task/task.js): `blocks/task/task.js`
- [Teaser](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/teaser/teaser.js): `blocks/teaser/teaser.js`
- [Test teaser](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/test-teaser/test-teaser.js): `blocks/test-teaser/test-teaser.js`

### Media and consent

- [Consent check](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/consent-check.js): `scripts/consent-check.js`
- [Consented scripts](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/scripts/consented.js): `scripts/consented.js`
- [Video player](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/video/video.js): `blocks/video/video.js`
- [Widget loader](https://github.com/sakthim1507/aem-eds-vtnf/blob/main/blocks/widget/widget.js): `blocks/widget/widget.js`

### Other components

- **Site visitor**
- **YouTube and Vimeo**

## Connections

- Site visitor → Page markup: views (evidence: `README.md`)
- Page markup → Page loader: loads runtime
- Page loader → AEM runtime utilities: uses utilities (evidence: `scripts/scripts.js`)
- Page loader → Page decoration: decorates page (evidence: `scripts/scripts.js`)
- Page decoration → AEM runtime utilities: uses helpers (evidence: `scripts/scripts.js`)
- AEM runtime utilities → Cards: dispatches blocks (evidence: `scripts/aem.js`)
- AEM runtime utilities → Header navigation: loads header (evidence: `blocks/header/header.js`)
- AEM runtime utilities → Footer: loads footer (evidence: `blocks/footer/footer.js`)
- Page loader → Header navigation: loads header (evidence: `scripts/scripts.js`)
- Page loader → Footer: loads footer (evidence: `scripts/scripts.js`)
- Page loader → Consent check: imports later (evidence: `scripts/scripts.js`)
- Consent check → Consented scripts: imports on consent (evidence: `scripts/consent-check.js`)
- Header navigation → AEM runtime utilities: reads metadata (evidence: `blocks/header/header.js`)
- Header navigation → Content fragments: loads nav fragment (evidence: `blocks/header/header.js`)
- Footer → AEM runtime utilities: reads metadata (evidence: `blocks/footer/footer.js`)
- Footer → Content fragments: loads footer fragment (evidence: `blocks/footer/footer.js`)
- Content fragments → Page decoration: decorates fragment (evidence: `blocks/fragment/fragment.js`)
- Content fragments → AEM runtime utilities: loads sections (evidence: `blocks/fragment/fragment.js`)
- Page decoration → Content fragments: auto-loads references (evidence: `scripts/scripts.js`)
- Cards → AEM runtime utilities: optimizes images (evidence: `blocks/cards/cards.js`)
- Widget loader → AEM runtime utilities: loads styles (evidence: `blocks/widget/widget.js`)
- Video player → YouTube and Vimeo: embeds hosted video (evidence: `blocks/video/video.js`)
