# phenaproxima/canvas-demo architecture

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

- Interactive diagram: https://gitdiagram.com/phenaproxima/canvas-demo
- Repository: https://github.com/phenaproxima/canvas-demo

## Overview

This repository packages a throwaway Drupal Canvas demo rather than implementing Canvas itself. The principal workflow is to install the Drupal site, enter Canvas, and explore sample pages assembled with the demo design system. Recipes provide starter configuration and content; the installer profile and its client-side progress-bar theme support Drupal CMS installation. The source excerpts show page data and installer UI, not the runtime wiring among Drupal, Canvas, and recipe-applied content, so those links are documented at the package level rather than inferred from unsampled code.

Main entry points: [`web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme`](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme) (Installer theme), [`web/profiles/drupal_cms_installer/xb-page.php`](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/xb-page.php) (Sample page data), [`recipes/canvas_demo/recipe.yml`](https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_demo/recipe.yml) (Canvas demo recipe), [`recipes/canvas_page/recipe.yml`](https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_page/recipe.yml) (Canvas page recipe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_demo["Canvas demo"]
  node_drupal["Drupal site"]
  node_canvas["Canvas builder"]
  node_design["Demo design system"]
end

subgraph group_content["Sample content"]
  node_canvas_recipe["Canvas demo recipe<br/>[recipe.yml]"]
  node_page_recipe["Canvas page recipe<br/>[recipe.yml]"]
  node_blocks_recipe["Demo block recipe<br/>[recipe.yml]"]
  node_page_data["Sample page data<br/>[xb-page.php]"]
end

subgraph group_installer["Installer UI"]
  node_installer_profile["Installer profile"]
  node_installer_theme["Installer theme"]
  node_progress_bar["Progress bar<br/>[progress.js]"]
end

node_editor(("Site editor"))

node_editor -->|"opens demo"| node_drupal
node_drupal -->|"provides access"| node_canvas
node_canvas -.->|"uses"| node_design
node_canvas -.->|"edits sample"| node_page_data
node_canvas_recipe -.->|"configures"| node_design
node_page_recipe -.->|"provides content"| node_page_data
node_blocks_recipe -.->|"provides blocks"| node_design
node_installer_profile -.->|"uses theme"| node_installer_theme
node_installer_theme -.->|"renders"| node_progress_bar

click node_canvas_recipe "https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_demo/recipe.yml"
click node_page_recipe "https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_page/recipe.yml"
click node_blocks_recipe "https://github.com/phenaproxima/canvas-demo/blob/main/recipes/starshot_demo_blocks/recipe.yml"
click node_page_data "https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/xb-page.php"
click node_installer_profile "https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/drupal_cms_installer.profile"
click node_installer_theme "https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme"
click node_progress_bar "https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/theme/js/progress.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_drupal,node_canvas,node_design toneBlue
class node_canvas_recipe,node_page_recipe,node_blocks_recipe,node_page_data toneAmber
class node_installer_profile,node_installer_theme,node_progress_bar toneMint
class node_editor toneIndigo
```

## Components

### Canvas demo

- **Drupal site**
- **Canvas builder**
- **Demo design system**

### Sample content

- [Canvas demo recipe](https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_demo/recipe.yml): `recipes/canvas_demo/recipe.yml`
- [Canvas page recipe](https://github.com/phenaproxima/canvas-demo/blob/main/recipes/canvas_page/recipe.yml): `recipes/canvas_page/recipe.yml`
- [Demo block recipe](https://github.com/phenaproxima/canvas-demo/blob/main/recipes/starshot_demo_blocks/recipe.yml): `recipes/starshot_demo_blocks/recipe.yml`
- [Sample page data](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/xb-page.php): `web/profiles/drupal_cms_installer/xb-page.php`

### Installer UI

- [Installer profile](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/drupal_cms_installer.profile): `web/profiles/drupal_cms_installer/drupal_cms_installer.profile`
- [Installer theme](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme): `web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme`
- [Progress bar](https://github.com/phenaproxima/canvas-demo/blob/main/web/profiles/drupal_cms_installer/theme/js/progress.js): `web/profiles/drupal_cms_installer/theme/js/progress.js`

### Other components

- **Site editor**

## Connections

- Site editor → Drupal site: opens demo (evidence: `README.md`)
- Drupal site → Canvas builder: provides access (evidence: `README.md`)
- Canvas builder → Demo design system: uses
- Canvas builder → Sample page data: edits sample
- Canvas demo recipe → Demo design system: configures
- Canvas page recipe → Sample page data: provides content
- Demo block recipe → Demo design system: provides blocks
- Installer profile → Installer theme: uses theme
- Installer theme → Progress bar: renders
