# bush2021/chrome_installer architecture

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

- Interactive diagram: https://gitdiagram.com/bush2021/chrome_installer
- Repository: https://github.com/bush2021/chrome_installer

## Overview

This repository maintains a catalog of Chrome offline installers: a maintainer can refresh channel and architecture metadata from Google’s update service, producing a JSON index and Markdown catalog, then download selected stable installers and verify their SHA-256 hashes. The map focuses on those runtime workflows and their external dependencies. Source excerpts show the scripts’ calls and file reads/writes; workflow automation and release publication are not mapped.

Main entry points: [`download.py`](https://github.com/bush2021/chrome_installer/blob/main/download.py) (Download and verify), [`fetch.py`](https://github.com/bush2021/chrome_installer/blob/main/fetch.py) (Refresh metadata), [`data.json`](https://github.com/bush2021/chrome_installer/blob/main/data.json) (Metadata JSON), [`readme.md`](https://github.com/bush2021/chrome_installer/blob/main/readme.md) (Markdown catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_metadata["Metadata refresh"]
  node_fetch["Refresh metadata<br/>[fetch.py]"]
  node_update_service["Google update service"]
end

subgraph group_downloads["Installer downloads"]
  node_download["Download and verify<br/>[download.py]"]
  node_git_tags["Git tags"]
  node_google_cdn["Google download host"]
end

subgraph group_outputs["Catalog and artifacts"]
  node_metadata_store[("Metadata JSON<br/>[data.json]")]
  node_catalog["Markdown catalog<br/>[readme.md]"]
  node_installer["Installer file"]
end

node_maintainer(("Maintainer"))

node_maintainer -->|"runs"| node_fetch
node_fetch -->|"posts requests"| node_update_service
node_update_service -->|"returns XML"| node_fetch
node_fetch -->|"writes metadata"| node_metadata_store
node_fetch -->|"writes catalog"| node_catalog
node_maintainer -->|"runs"| node_download
node_download -->|"reads version tags"| node_git_tags
node_download -->|"reads metadata"| node_metadata_store
node_download -->|"downloads installer"| node_google_cdn
node_download -->|"writes verified file"| node_installer

click node_fetch "https://github.com/bush2021/chrome_installer/blob/main/fetch.py"
click node_metadata_store "https://github.com/bush2021/chrome_installer/blob/main/data.json"
click node_catalog "https://github.com/bush2021/chrome_installer/blob/main/readme.md"
click node_download "https://github.com/bush2021/chrome_installer/blob/main/download.py"

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_fetch,node_update_service toneBlue
class node_download,node_git_tags,node_google_cdn toneAmber
class node_metadata_store,node_catalog,node_installer toneMint
class node_maintainer toneIndigo
```

## Components

### Metadata refresh

- [Refresh metadata](https://github.com/bush2021/chrome_installer/blob/main/fetch.py): `fetch.py`
- **Google update service**

### Installer downloads

- [Download and verify](https://github.com/bush2021/chrome_installer/blob/main/download.py): `download.py`
- **Git tags**
- **Google download host**

### Catalog and artifacts

- [Metadata JSON](https://github.com/bush2021/chrome_installer/blob/main/data.json): `data.json`
- [Markdown catalog](https://github.com/bush2021/chrome_installer/blob/main/readme.md): `readme.md`
- **Installer file**

### Other components

- **Maintainer**

## Connections

- Maintainer → Refresh metadata: runs (evidence: `fetch.py`)
- Refresh metadata → Google update service: posts requests (evidence: `fetch.py`)
- Google update service → Refresh metadata: returns XML (evidence: `fetch.py`)
- Refresh metadata → Metadata JSON: writes metadata (evidence: `fetch.py`)
- Refresh metadata → Markdown catalog: writes catalog (evidence: `fetch.py`)
- Maintainer → Download and verify: runs (evidence: `download.py`)
- Download and verify → Git tags: reads version tags (evidence: `download.py`)
- Download and verify → Metadata JSON: reads metadata (evidence: `download.py`)
- Download and verify → Google download host: downloads installer (evidence: `download.py`)
- Download and verify → Installer file: writes verified file (evidence: `download.py`)
