# weileizeng/open-source-covid-19 architecture

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

- Interactive diagram: https://gitdiagram.com/weileizeng/open-source-covid-19
- Repository: https://github.com/weileizeng/open-source-covid-19

## Overview

This is a Jekyll navigation site cataloging open-source COVID-19 projects, with global, regional, and China-focused views. Visitors browse categorized project listings and summaries; contributors recommend projects through issues or pull requests. The repository also includes scripts for refreshing GitHub statistics, badges, tags, and contributor highlights. Relationships among unsampled page templates and data files are limited to documented site capabilities; the scripts’ shown API and file operations provide stronger evidence for the refresh flow.

Main entry points: [`README.md`](https://github.com/weileizeng/open-source-covid-19/blob/master/README.md) (Navigation site), [`src/counting.py`](https://github.com/weileizeng/open-source-covid-19/blob/master/src/counting.py) (Statistics refresh), [`_includes/projects.md`](https://github.com/weileizeng/open-source-covid-19/blob/master/_includes/projects.md) (Project listings), [`_data`](https://github.com/weileizeng/open-source-covid-19/tree/master/_data) (Catalog records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Project directory"]
  node_site["Navigation site<br/>[README.md]"]
  node_global["Global projects<br/>[index.md]"]
  node_regions["Regional projects<br/>[areas.md]"]
  node_china["China projects<br/>[china.md]"]
  node_tags_page["Tag listings<br/>[tags.md]"]
  node_project_views["Project listings<br/>[projects.md]"]
  node_repo_view["Repository details<br/>[repo.md]"]
  node_search_page["Project search<br/>[search.md]"]
end

subgraph group_data["Catalog data"]
  node_catalog[("Catalog records")]
  node_tag_records[("Tag records<br/>[tags_projects.yml]")]
  node_summaries[("Page summaries")]
  node_search_records[("Search results<br/>[github_search.yml]")]
end

subgraph group_refresh["Catalog refresh"]
  node_stats_refresh["Statistics refresh<br/>[counting.py]"]
  node_badge_refresh["Badge refresh<br/>[shields.py]"]
  node_tag_refresh["Tag generation<br/>[tags.py]"]
end

subgraph group_discovery["Discovery tools"]
  node_repo_search["Repository search<br/>[search_repo.py]"]
  node_hero_search["Contributor lookup<br/>[heroes.py]"]
  node_heroes["Contributor highlights<br/>[list_heroes.json]"]
  node_collection["Project collection"]
end

node_visitor(("Site visitor"))
node_contributor(("Contributor"))
node_github["GitHub API"]
node_shields["Shields service"]

node_visitor -->|"browses"| node_site
node_site -->|"offers view"| node_global
node_site -->|"offers view"| node_regions
node_site -->|"offers view"| node_china
node_global -.->|"renders listings"| node_project_views
node_regions -.->|"renders listings"| node_project_views
node_china -.->|"renders listings"| node_project_views
node_project_views -.->|"uses details"| node_repo_view
node_site -.->|"offers tags"| node_tags_page
node_site -.->|"offers search"| node_search_page
node_contributor -->|"recommends projects"| node_site
node_stats_refresh -->|"reads records"| node_catalog
node_stats_refresh -->|"fetches statistics"| node_github
node_stats_refresh -->|"writes summaries"| node_summaries
node_stats_refresh -->|"downloads badges"| node_shields
node_badge_refresh -->|"reads records"| node_catalog
node_badge_refresh -->|"downloads badges"| node_shields
node_tag_refresh -->|"reads records"| node_catalog
node_tag_refresh -->|"writes tags"| node_tag_records
node_repo_search -->|"searches repositories"| node_github
node_repo_search -->|"writes results"| node_search_records
node_hero_search -->|"fetches contributors"| node_github
node_hero_search -->|"writes highlights"| node_heroes

click node_site "https://github.com/weileizeng/open-source-covid-19/blob/master/README.md"
click node_global "https://github.com/weileizeng/open-source-covid-19/blob/master/index.md"
click node_regions "https://github.com/weileizeng/open-source-covid-19/blob/master/areas.md"
click node_china "https://github.com/weileizeng/open-source-covid-19/blob/master/china.md"
click node_tags_page "https://github.com/weileizeng/open-source-covid-19/blob/master/tags.md"
click node_project_views "https://github.com/weileizeng/open-source-covid-19/blob/master/_includes/projects.md"
click node_repo_view "https://github.com/weileizeng/open-source-covid-19/blob/master/_includes/repo.md"
click node_search_page "https://github.com/weileizeng/open-source-covid-19/blob/master/search.md"
click node_catalog "https://github.com/weileizeng/open-source-covid-19/tree/master/_data"
click node_tag_records "https://github.com/weileizeng/open-source-covid-19/blob/master/_data/tags_projects.yml"
click node_summaries "https://github.com/weileizeng/open-source-covid-19/blob/master/_data/summary_global.json"
click node_search_records "https://github.com/weileizeng/open-source-covid-19/blob/master/_data/github_search.yml"
click node_stats_refresh "https://github.com/weileizeng/open-source-covid-19/blob/master/src/counting.py"
click node_badge_refresh "https://github.com/weileizeng/open-source-covid-19/blob/master/src/shields.py"
click node_tag_refresh "https://github.com/weileizeng/open-source-covid-19/blob/master/src/tags.py"
click node_repo_search "https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/search_repo.py"
click node_hero_search "https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/heroes.py"
click node_heroes "https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/list_heroes.json"
click node_collection "https://github.com/weileizeng/open-source-covid-19/blob/master/src/repo-collection.csv"

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_site,node_global,node_regions,node_china,node_tags_page,node_project_views,node_repo_view,node_search_page toneBlue
class node_catalog,node_tag_records,node_summaries,node_search_records toneAmber
class node_stats_refresh,node_badge_refresh,node_tag_refresh,node_github toneMint
class node_repo_search,node_hero_search,node_heroes,node_collection toneRose
class node_visitor,node_contributor,node_shields toneIndigo
```

## Components

### Project directory

- [Navigation site](https://github.com/weileizeng/open-source-covid-19/blob/master/README.md): `README.md`
- [Global projects](https://github.com/weileizeng/open-source-covid-19/blob/master/index.md): `index.md`
- [Regional projects](https://github.com/weileizeng/open-source-covid-19/blob/master/areas.md): `areas.md`
- [China projects](https://github.com/weileizeng/open-source-covid-19/blob/master/china.md): `china.md`
- [Tag listings](https://github.com/weileizeng/open-source-covid-19/blob/master/tags.md): `tags.md`
- [Project listings](https://github.com/weileizeng/open-source-covid-19/blob/master/_includes/projects.md): `_includes/projects.md`
- [Repository details](https://github.com/weileizeng/open-source-covid-19/blob/master/_includes/repo.md): `_includes/repo.md`
- [Project search](https://github.com/weileizeng/open-source-covid-19/blob/master/search.md): `search.md`

### Catalog data

- [Catalog records](https://github.com/weileizeng/open-source-covid-19/tree/master/_data): `_data`
- [Tag records](https://github.com/weileizeng/open-source-covid-19/blob/master/_data/tags_projects.yml): `_data/tags_projects.yml`
- [Page summaries](https://github.com/weileizeng/open-source-covid-19/blob/master/_data/summary_global.json): `_data/summary_global.json`
- [Search results](https://github.com/weileizeng/open-source-covid-19/blob/master/_data/github_search.yml): `_data/github_search.yml`

### Catalog refresh

- [Statistics refresh](https://github.com/weileizeng/open-source-covid-19/blob/master/src/counting.py): `src/counting.py`
- [Badge refresh](https://github.com/weileizeng/open-source-covid-19/blob/master/src/shields.py): `src/shields.py`
- [Tag generation](https://github.com/weileizeng/open-source-covid-19/blob/master/src/tags.py): `src/tags.py`

### Discovery tools

- [Repository search](https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/search_repo.py): `src/heroes/search_repo.py`
- [Contributor lookup](https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/heroes.py): `src/heroes/heroes.py`
- [Contributor highlights](https://github.com/weileizeng/open-source-covid-19/blob/master/src/heroes/list_heroes.json): `src/heroes/list_heroes.json`
- [Project collection](https://github.com/weileizeng/open-source-covid-19/blob/master/src/repo-collection.csv): `src/repo-collection.csv`

### Other components

- **Site visitor**
- **Contributor**
- **GitHub API**
- **Shields service**

## Connections

- Site visitor → Navigation site: browses (evidence: `README.md`)
- Navigation site → Global projects: offers view (evidence: `README.md`)
- Navigation site → Regional projects: offers view (evidence: `README.md`)
- Navigation site → China projects: offers view (evidence: `README.md`)
- Global projects → Project listings: renders listings
- Regional projects → Project listings: renders listings
- China projects → Project listings: renders listings
- Project listings → Repository details: uses details
- Navigation site → Tag listings: offers tags
- Navigation site → Project search: offers search
- Contributor → Navigation site: recommends projects (evidence: `README.md`)
- Statistics refresh → Catalog records: reads records (evidence: `src/counting.py`)
- Statistics refresh → GitHub API: fetches statistics (evidence: `src/counting.py`)
- Statistics refresh → Page summaries: writes summaries (evidence: `src/counting.py`)
- Statistics refresh → Shields service: downloads badges (evidence: `src/counting.py`)
- Badge refresh → Catalog records: reads records (evidence: `src/shields.py`)
- Badge refresh → Shields service: downloads badges (evidence: `src/shields.py`)
- Tag generation → Catalog records: reads records (evidence: `src/tags.py`)
- Tag generation → Tag records: writes tags (evidence: `src/tags.py`)
- Repository search → GitHub API: searches repositories (evidence: `src/heroes/search_repo.py`)
- Repository search → Search results: writes results (evidence: `src/heroes/search_repo.py`)
- Contributor lookup → GitHub API: fetches contributors (evidence: `src/heroes/heroes.py`)
- Contributor lookup → Contributor highlights: writes highlights (evidence: `src/heroes/heroes.py`)
