# 8497785/ups-unified-site-eds-foundation architecture

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

- Interactive diagram: https://gitdiagram.com/8497785/ups-unified-site-eds-foundation
- Repository: https://github.com/8497785/ups-unified-site-eds-foundation

## Overview

This is an AEM Edge Delivery Services site project: authored page content is decorated and loaded in the browser, with blocks adding navigation, listings, media, and leadership content. A shared query index supports content discovery, while selected blocks fetch GraphQL data or embed video services. The tree also contains content-import and migration utilities, but the generic README does not describe their workflows; they are represented as a separate capability without inferred call chains. Relationships involving unsampled modules are omitted where the shown evidence does not establish them.

Main entry points: [`scripts/aem.js`](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/aem.js) (Block and section loader), [`scripts/query-index.js`](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/query-index.js) (Query index service), [`blocks/fragment/fragment.js`](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/fragment/fragment.js) (Fragment loader), [`blocks/content-list/content-list.js`](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/content-list/content-list.js) (Content listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Page runtime"]
  node_page["Page decoration<br/>[scripts.js]"]
  node_aem["Block and section loader<br/>[aem.js]"]
  node_config["Service configuration<br/>[config.js]"]
end

subgraph group_blocks["Page components"]
  node_header["Header navigation<br/>[header.js]"]
  node_fragment["Fragment loader<br/>[fragment.js]"]
  node_footer["Footer<br/>[footer.js]"]
  node_contentlist["Content listings<br/>[content-list.js]"]
  node_related["Related articles"]
  node_button["Buttons<br/>[button.js]"]
  node_breadcrumb["Breadcrumbs<br/>[breadcrumb.js]"]
  node_tabs["Navigation tabs<br/>[navigation-tabs.js]"]
  node_leadershiplist["Leadership listing"]
  node_leadershipdetail["Leadership profile"]
  node_leadershipcf["Leadership CF listing"]
  node_video["Video embeds<br/>[video.js]"]
  node_hero["Hero components<br/>[hero.js]"]
  node_herofeatured["Featured hero<br/>[hero-featured.js]"]
  node_herostats["Statistics hero<br/>[hero-stats.js]"]
  node_cards["Card components<br/>[cards.js]"]
  node_cardsstory["Story cards<br/>[cards-story.js]"]
  node_columns["Columns layout<br/>[columns.js]"]
  node_columnsmedia["Media columns<br/>[columns-media.js]"]
  node_articleheader["Article header<br/>[article-header.js]"]
  node_headline["Headline<br/>[headline.js]"]
  node_title["Title<br/>[title.js]"]
  node_download["Downloads<br/>[downloads.js]"]
  node_social["Social sharing<br/>[social-share.js]"]
  node_table["Tables<br/>[table.js]"]
  node_teaser["Three-column teaser"]
end

subgraph group_data["Content data"]
  node_query["Query index service<br/>[query-index.js]"]
  node_indexstore[("Locale query index")]
  node_graphql(("AEM GraphQL"))
  node_dynamicmedia(("Dynamic Media"))
end

subgraph group_migration["Content migration"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens page"| node_page
node_page -->|"decorates sections"| node_aem
node_aem -->|"loads block"| node_header
node_header -->|"loads navigation"| node_fragment
node_fragment -->|"decorates fragment"| node_page
node_fragment -->|"loads sections"| node_aem
node_footer -->|"loads fragment"| node_fragment
node_contentlist -->|"gets entries"| node_query
node_related -->|"gets entries"| node_query
node_query -->|"fetches index"| node_indexstore
node_contentlist -->|"creates button"| node_button
node_contentlist -->|"loads CSS"| node_aem
node_related -->|"loads CSS and pictures"| node_aem
node_breadcrumb -->|"reads index"| node_query
node_tabs -->|"loads index"| node_query
node_leadershiplist -->|"builds GraphQL URL"| node_config
node_leadershipdetail -->|"builds GraphQL URL"| node_config
node_leadershiplist -->|"fetches profiles"| node_graphql
node_leadershipdetail -->|"fetches profile"| node_graphql
node_leadershiplist -->|"loads portraits"| node_dynamicmedia
node_leadershipdetail -->|"loads portrait"| node_dynamicmedia
node_video -->|"reads video config"| node_config

click node_page "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/scripts.js"
click node_aem "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/aem.js"
click node_config "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/config.js"
click node_query "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/query-index.js"
click node_header "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/header/header.js"
click node_fragment "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/fragment/fragment.js"
click node_footer "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/footer/footer.js"
click node_contentlist "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/content-list/content-list.js"
click node_related "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/related-articles/related-articles.js"
click node_button "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/button/button.js"
click node_breadcrumb "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/breadcrumb/breadcrumb.js"
click node_tabs "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/navigation-tabs/navigation-tabs.js"
click node_leadershiplist "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-listing/leadership-listing.js"
click node_leadershipdetail "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-details/leadership-details.js"
click node_leadershipcf "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-list-cf/leadership-list-cf.js"
click node_video "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/video/video.js"
click node_hero "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero/hero.js"
click node_herofeatured "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero-featured/hero-featured.js"
click node_herostats "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero-stats/hero-stats.js"
click node_cards "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/cards/cards.js"
click node_cardsstory "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/cards-story/cards-story.js"
click node_columns "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/columns/columns.js"
click node_columnsmedia "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/columns-media/columns-media.js"
click node_articleheader "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/article-header/article-header.js"
click node_headline "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/headline/headline.js"
click node_title "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/title/title.js"
click node_download "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/downloads/downloads.js"
click node_social "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/social-share/social-share.js"
click node_table "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/table/table.js"
click node_teaser "https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/three-column-teaser/three-column-teaser.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_aem,node_config toneBlue
class node_header,node_fragment,node_footer,node_contentlist,node_related,node_button,node_breadcrumb,node_tabs,node_leadershiplist,node_leadershipdetail,node_leadershipcf,node_video,node_hero,node_herofeatured,node_herostats,node_cards,node_cardsstory,node_columns,node_columnsmedia,node_articleheader,node_headline,node_title,node_download,node_social,node_table,node_teaser toneAmber
class node_query,node_indexstore,node_graphql,node_dynamicmedia toneMint
class node_visitor toneIndigo
```

## Components

### Page runtime

- [Page decoration](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/scripts.js): `scripts/scripts.js`
- [Block and section loader](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/aem.js): `scripts/aem.js`
- [Service configuration](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/config.js): `scripts/config.js`

### Page components

- [Header navigation](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/header/header.js): `blocks/header/header.js`
- [Fragment loader](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/fragment/fragment.js): `blocks/fragment/fragment.js`
- [Footer](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/footer/footer.js): `blocks/footer/footer.js`
- [Content listings](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/content-list/content-list.js): `blocks/content-list/content-list.js`
- [Related articles](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/related-articles/related-articles.js): `blocks/related-articles/related-articles.js`
- [Buttons](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/button/button.js): `blocks/button/button.js`
- [Breadcrumbs](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/breadcrumb/breadcrumb.js): `blocks/breadcrumb/breadcrumb.js`
- [Navigation tabs](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/navigation-tabs/navigation-tabs.js): `blocks/navigation-tabs/navigation-tabs.js`
- [Leadership listing](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-listing/leadership-listing.js): `blocks/leadership-listing/leadership-listing.js`
- [Leadership profile](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-details/leadership-details.js): `blocks/leadership-details/leadership-details.js`
- [Leadership CF listing](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/leadership-list-cf/leadership-list-cf.js): `blocks/leadership-list-cf/leadership-list-cf.js`
- [Video embeds](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/video/video.js): `blocks/video/video.js`
- [Hero components](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero/hero.js): `blocks/hero/hero.js`
- [Featured hero](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero-featured/hero-featured.js): `blocks/hero-featured/hero-featured.js`
- [Statistics hero](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/hero-stats/hero-stats.js): `blocks/hero-stats/hero-stats.js`
- [Card components](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/cards/cards.js): `blocks/cards/cards.js`
- [Story cards](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/cards-story/cards-story.js): `blocks/cards-story/cards-story.js`
- [Columns layout](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/columns/columns.js): `blocks/columns/columns.js`
- [Media columns](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/columns-media/columns-media.js): `blocks/columns-media/columns-media.js`
- [Article header](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/article-header/article-header.js): `blocks/article-header/article-header.js`
- [Headline](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/headline/headline.js): `blocks/headline/headline.js`
- [Title](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/title/title.js): `blocks/title/title.js`
- [Downloads](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/downloads/downloads.js): `blocks/downloads/downloads.js`
- [Social sharing](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/social-share/social-share.js): `blocks/social-share/social-share.js`
- [Tables](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/table/table.js): `blocks/table/table.js`
- [Three-column teaser](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/blocks/three-column-teaser/three-column-teaser.js): `blocks/three-column-teaser/three-column-teaser.js`

### Content data

- [Query index service](https://github.com/8497785/ups-unified-site-eds-foundation/blob/main/scripts/query-index.js): `scripts/query-index.js`
- **Locale query index**
- **AEM GraphQL**
- **Dynamic Media**

### Other components

- **Site visitor**

## Connections

- Site visitor → Page decoration: opens page (evidence: `scripts/scripts.js`)
- Page decoration → Block and section loader: decorates sections (evidence: `scripts/scripts.js`)
- Block and section loader → Header navigation: loads block (evidence: `scripts/aem.js`)
- Header navigation → Fragment loader: loads navigation (evidence: `blocks/header/header.js`)
- Fragment loader → Page decoration: decorates fragment (evidence: `blocks/fragment/fragment.js`)
- Fragment loader → Block and section loader: loads sections (evidence: `blocks/fragment/fragment.js`)
- Footer → Fragment loader: loads fragment (evidence: `blocks/footer/footer.js`)
- Content listings → Query index service: gets entries (evidence: `blocks/content-list/content-list.js`)
- Related articles → Query index service: gets entries (evidence: `blocks/related-articles/related-articles.js`)
- Query index service → Locale query index: fetches index (evidence: `scripts/query-index.js`)
- Content listings → Buttons: creates button (evidence: `blocks/content-list/content-list.js`)
- Content listings → Block and section loader: loads CSS (evidence: `blocks/content-list/content-list.js`)
- Related articles → Block and section loader: loads CSS and pictures (evidence: `blocks/related-articles/related-articles.js`)
- Breadcrumbs → Query index service: reads index (evidence: `blocks/breadcrumb/breadcrumb.js`)
- Navigation tabs → Query index service: loads index (evidence: `blocks/navigation-tabs/navigation-tabs.js`)
- Leadership listing → Service configuration: builds GraphQL URL (evidence: `blocks/leadership-listing/leadership-listing.js`)
- Leadership profile → Service configuration: builds GraphQL URL (evidence: `blocks/leadership-details/leadership-details.js`)
- Leadership listing → AEM GraphQL: fetches profiles (evidence: `blocks/leadership-listing/leadership-listing.js`)
- Leadership profile → AEM GraphQL: fetches profile (evidence: `blocks/leadership-details/leadership-details.js`)
- Leadership listing → Dynamic Media: loads portraits (evidence: `blocks/leadership-listing/leadership-listing.js`)
- Leadership profile → Dynamic Media: loads portrait (evidence: `blocks/leadership-details/leadership-details.js`)
- Video embeds → Service configuration: reads video config (evidence: `blocks/video/video.js`)
