# omarreact/meta-gray-label architecture

> Architecture diagram of the GitHub repository omarreact/meta-gray-label, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/omarreact/meta-gray-label
- Repository: https://github.com/omarreact/meta-gray-label

## Overview

Meta Grey Label is a forex-brokerage marketing site: its main user journey is browsing service and solution pages, then following calls to action or related content. The approved public site is static HTML; an optional WordPress theme adds a server-rendered legacy fallback, an opt-in native Gutenberg layout, and page importing. The graph also shows the documented content-to-native-page conversion capability. Relationships for unsampled page families are included only where the README documents them; build and verification tooling is otherwise omitted.

Main entry points: [`index.html`](https://github.com/omarreact/meta-gray-label/blob/main/index.html) (Static Pages), [`data/content.json`](https://github.com/omarreact/meta-gray-label/blob/main/data/content.json) (Canonical Content), [`functions.php`](https://github.com/omarreact/meta-gray-label/blob/main/functions.php) (Theme Hooks), [`inc/import-pages.php`](https://github.com/omarreact/meta-gray-label/blob/main/inc/import-pages.php) (Page Importer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Public Site"]
  node_static["Static Pages<br/>[index.html]"]
  node_services["Services<br/>[index.html]"]
  node_solutions["Solutions<br/>[index.html]"]
  node_platforms["Trading Platforms<br/>[index.html]"]
  node_insights["Insights<br/>[index.html]"]
  node_seo["SEO Metadata<br/>[sitemap.xml]"]
end

subgraph group_content["Content Sources"]
  node_contentjson["Canonical Content<br/>[content.json]"]
  node_templates["Page Templates<br/>[index.html]"]
  node_page_map["Route Map<br/>[page-map.json]"]
end

subgraph group_wordpress["WordPress Runtime"]
  node_theme["Theme Hooks<br/>[functions.php]"]
  node_renderer["Legacy Renderer<br/>[renderer.php]"]
  node_legacy_blocks["Fallback Blocks<br/>[block.json]"]
  node_importer["Page Importer<br/>[import-pages.php]"]
  node_wp_database[("WordPress Pages")]
end

subgraph group_native["Native Blocks"]
  node_native_template["Native Page Layout<br/>[page-native.html]"]
  node_native_parts["Native Header/Footer<br/>[header-native.html]"]
  node_native_builder["Native Content Builder<br/>[fse-pages.mjs]"]
  node_native_generator["Native Export<br/>[generate-fse.mjs]"]
  node_wp_packager["Theme Packager"]
  node_native_styles["Native Styles<br/>[fse.css]"]
end

node_visitor(("Site Visitor"))

node_visitor -->|"browses"| node_static
node_static -->|"links to"| node_services
node_static -->|"links to"| node_solutions
node_static -->|"links to"| node_platforms
node_static -->|"links to"| node_insights
node_contentjson -->|"provides fields"| node_templates
node_contentjson -->|"provides metadata"| node_seo
node_theme -->|"loads"| node_renderer
node_theme -->|"registers"| node_legacy_blocks
node_theme -->|"loads for WP-CLI"| node_importer
node_renderer -->|"reads"| node_contentjson
node_renderer -->|"renders"| node_templates
node_theme -->|"enqueues"| node_native_styles
node_importer -->|"reads"| node_contentjson
node_importer -->|"creates pages"| node_wp_database
node_importer -->|"selects native layout"| node_native_template
node_visitor -.->|"views published page"| node_wp_database
node_native_generator -->|"calls"| node_native_builder
node_wp_packager -->|"calls"| node_native_builder
node_native_builder -->|"converts content"| node_contentjson
node_native_builder -->|"generates parts"| node_native_parts

click node_static "https://github.com/omarreact/meta-gray-label/blob/main/index.html"
click node_services "https://github.com/omarreact/meta-gray-label/blob/main/services/index.html"
click node_solutions "https://github.com/omarreact/meta-gray-label/blob/main/solutions/index.html"
click node_platforms "https://github.com/omarreact/meta-gray-label/blob/main/trading-platforms/index.html"
click node_insights "https://github.com/omarreact/meta-gray-label/blob/main/insights/index.html"
click node_seo "https://github.com/omarreact/meta-gray-label/blob/main/sitemap.xml"
click node_contentjson "https://github.com/omarreact/meta-gray-label/blob/main/data/content.json"
click node_templates "https://github.com/omarreact/meta-gray-label/blob/main/templates/pages/index.html"
click node_page_map "https://github.com/omarreact/meta-gray-label/blob/main/data/page-map.json"
click node_theme "https://github.com/omarreact/meta-gray-label/blob/main/functions.php"
click node_renderer "https://github.com/omarreact/meta-gray-label/blob/main/inc/renderer.php"
click node_legacy_blocks "https://github.com/omarreact/meta-gray-label/blob/main/blocks/legacy-page/block.json"
click node_importer "https://github.com/omarreact/meta-gray-label/blob/main/inc/import-pages.php"
click node_native_template "https://github.com/omarreact/meta-gray-label/blob/main/templates/page-native.html"
click node_native_parts "https://github.com/omarreact/meta-gray-label/blob/main/parts/header-native.html"
click node_native_builder "https://github.com/omarreact/meta-gray-label/blob/main/scripts/fse-pages.mjs"
click node_native_generator "https://github.com/omarreact/meta-gray-label/blob/main/scripts/generate-fse.mjs"
click node_wp_packager "https://github.com/omarreact/meta-gray-label/blob/main/scripts/package-wordpress.mjs"
click node_native_styles "https://github.com/omarreact/meta-gray-label/blob/main/assets/css/fse.css"

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_static,node_services,node_solutions,node_platforms,node_insights,node_seo toneBlue
class node_contentjson,node_templates,node_page_map toneAmber
class node_theme,node_renderer,node_legacy_blocks,node_importer,node_wp_database toneMint
class node_native_template,node_native_parts,node_native_builder,node_native_generator,node_wp_packager,node_native_styles toneRose
class node_visitor toneIndigo
```

## Components

### Public Site

- [Static Pages](https://github.com/omarreact/meta-gray-label/blob/main/index.html): `index.html`
- [Services](https://github.com/omarreact/meta-gray-label/blob/main/services/index.html): `services/index.html`
- [Solutions](https://github.com/omarreact/meta-gray-label/blob/main/solutions/index.html): `solutions/index.html`
- [Trading Platforms](https://github.com/omarreact/meta-gray-label/blob/main/trading-platforms/index.html): `trading-platforms/index.html`
- [Insights](https://github.com/omarreact/meta-gray-label/blob/main/insights/index.html): `insights/index.html`
- [SEO Metadata](https://github.com/omarreact/meta-gray-label/blob/main/sitemap.xml): `sitemap.xml`

### Content Sources

- [Canonical Content](https://github.com/omarreact/meta-gray-label/blob/main/data/content.json): `data/content.json`
- [Page Templates](https://github.com/omarreact/meta-gray-label/blob/main/templates/pages/index.html): `templates/pages/index.html`
- [Route Map](https://github.com/omarreact/meta-gray-label/blob/main/data/page-map.json): `data/page-map.json`

### WordPress Runtime

- [Theme Hooks](https://github.com/omarreact/meta-gray-label/blob/main/functions.php): `functions.php`
- [Legacy Renderer](https://github.com/omarreact/meta-gray-label/blob/main/inc/renderer.php): `inc/renderer.php`
- [Fallback Blocks](https://github.com/omarreact/meta-gray-label/blob/main/blocks/legacy-page/block.json): `blocks/legacy-page/block.json`
- [Page Importer](https://github.com/omarreact/meta-gray-label/blob/main/inc/import-pages.php): `inc/import-pages.php`
- **WordPress Pages**

### Native Blocks

- [Native Page Layout](https://github.com/omarreact/meta-gray-label/blob/main/templates/page-native.html): `templates/page-native.html`
- [Native Header/Footer](https://github.com/omarreact/meta-gray-label/blob/main/parts/header-native.html): `parts/header-native.html`
- [Native Content Builder](https://github.com/omarreact/meta-gray-label/blob/main/scripts/fse-pages.mjs): `scripts/fse-pages.mjs`
- [Native Export](https://github.com/omarreact/meta-gray-label/blob/main/scripts/generate-fse.mjs): `scripts/generate-fse.mjs`
- [Theme Packager](https://github.com/omarreact/meta-gray-label/blob/main/scripts/package-wordpress.mjs): `scripts/package-wordpress.mjs`
- [Native Styles](https://github.com/omarreact/meta-gray-label/blob/main/assets/css/fse.css): `assets/css/fse.css`

### Other components

- **Site Visitor**

## Connections

- Site Visitor → Static Pages: browses (evidence: `README.md`)
- Static Pages → Services: links to (evidence: `README.md`)
- Static Pages → Solutions: links to (evidence: `README.md`)
- Static Pages → Trading Platforms: links to (evidence: `README.md`)
- Static Pages → Insights: links to (evidence: `README.md`)
- Canonical Content → Page Templates: provides fields (evidence: `README.md`)
- Canonical Content → SEO Metadata: provides metadata (evidence: `README.md`)
- Theme Hooks → Legacy Renderer: loads (evidence: `functions.php`)
- Theme Hooks → Fallback Blocks: registers (evidence: `functions.php`)
- Theme Hooks → Page Importer: loads for WP-CLI (evidence: `functions.php`)
- Legacy Renderer → Canonical Content: reads (evidence: `inc/renderer.php`)
- Legacy Renderer → Page Templates: renders (evidence: `inc/renderer.php`)
- Theme Hooks → Native Styles: enqueues (evidence: `functions.php`)
- Page Importer → Canonical Content: reads (evidence: `inc/import-pages.php`)
- Page Importer → WordPress Pages: creates pages (evidence: `inc/import-pages.php`)
- Page Importer → Native Page Layout: selects native layout (evidence: `README.md`)
- Site Visitor → WordPress Pages: views published page
- Native Export → Native Content Builder: calls (evidence: `scripts/generate-fse.mjs`)
- Theme Packager → Native Content Builder: calls (evidence: `scripts/package-wordpress.mjs`)
- Native Content Builder → Canonical Content: converts content (evidence: `README.md`)
- Native Content Builder → Native Header/Footer: generates parts (evidence: `README.md`)
