# busy-app/busy-apps-catalog architecture

> Architecture diagram of the GitHub repository busy-app/busy-apps-catalog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/busy-app/busy-apps-catalog
- Repository: https://github.com/busy-app/busy-apps-catalog

## Overview

BUSY Bar Apps Catalog is a community app catalog and its repository’s automation for validating submissions, building packages, reporting checks, and publishing catalog updates. The main contributor workflow starts with a manifest in a pull request, proceeds through preparation and staged checks/build/package validation, then produces review feedback and publication. Separate tooling supports catalog maintenance and BUSY Bar reporting. The graph emphasizes those domain stages and their callers; some links rely on SOURCE INDEX references or README descriptions, so unsampled implementation details are not asserted.

Main entry points: [`tools/pipeline_check.py`](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_check.py) (Stage checks), [`tools/lib_github.py`](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_github.py) (GitHub adapter), [`tools/pipeline_build.py`](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_build.py) (Package build), [`tools/pipeline_prepare.py`](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_prepare.py) (PR preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_submission["Submission Checks"]
  node_prepare["PR preparation"]
  node_manifest_check["Manifest checks<br/>[check_manifest.py]"]
  node_scope["Change scope<br/>[validate_scope.py]"]
end

subgraph group_pipeline["Build Pipeline"]
  node_build["Package build<br/>[pipeline_build.py]"]
  node_fetch["Source fetch<br/>[lib_fetch.py]"]
  node_build_lib["Build helpers<br/>[lib_build.py]"]
  node_license["License checks<br/>[lib_license.py]"]
  node_png_check["PNG checks<br/>[check_png.py]"]
  node_package_check["Package checks<br/>[check_package.py]"]
  node_stage_check["Stage checks<br/>[pipeline_check.py]"]
  node_catalog_check["Catalog checks<br/>[check_catalog.py]"]
end

subgraph group_review["Review Automation"]
  node_report["Pipeline report<br/>[pipeline_report.py]"]
  node_comment["PR check comment<br/>[lib_comment.py]"]
  node_authorship["Authorship check<br/>[lib_authorship.py]"]
  node_review_cli["Review commands<br/>[review_cli.py]"]
  node_review_request["Review requests<br/>[review_request.py]"]
  node_runs["Pipeline run lookup"]
end

subgraph group_publishing["Catalog Publishing"]
  node_discover["Publication discovery"]
  node_upload["Catalog upload<br/>[publish_upload.py]"]
  node_catalog_data["Publication data"]
  node_remove["App removal<br/>[publish_remove.py]"]
  node_remove_helpers["Removal logic<br/>[lib_removal.py]"]
  node_publish_report["Publication report<br/>[publish_report.py]"]
end

subgraph group_shared["Shared Services"]
  node_registry["Check registry<br/>[check_registry.py]"]
  node_app_id["App ID rules<br/>[lib_app_id.py]"]
  node_tar["Archive helpers<br/>[lib_tar.py]"]
  node_media["Media helpers<br/>[lib_media.py]"]
  node_controls["Check controls<br/>[lib_controls.py]"]
  node_http["HTTP client<br/>[lib_http.py]"]
  node_github_adapter["GitHub adapter<br/>[lib_github.py]"]
end

node_author(("App contributor"))
node_manifest["App manifest"]
node_github{{"GitHub"}}
node_catalog_api{{"Catalog API"}}

node_author -->|"submits"| node_manifest
node_manifest -->|"starts PR checks"| node_prepare
node_prepare -->|"invokes"| node_manifest_check
node_prepare -->|"validates"| node_scope
node_prepare -->|"checks access"| node_authorship
node_manifest_check -->|"uses rules"| node_registry
node_manifest_check -->|"uses ID rules"| node_app_id
node_manifest_check -->|"fetches categories"| node_http
node_prepare -->|"checks removals"| node_remove_helpers
node_build -->|"fetches source"| node_fetch
node_build -->|"uses"| node_build_lib
node_build -->|"checks license"| node_license
node_build -->|"checks images"| node_png_check
node_build -->|"validates package"| node_package_check
node_package_check -->|"uses ID rules"| node_app_id
node_package_check -->|"reads archive"| node_tar
node_stage_check -->|"runs checks"| node_manifest_check
node_stage_check -->|"runs checks"| node_catalog_check
node_stage_check -->|"runs checks"| node_package_check
node_stage_check -->|"uses registry"| node_registry
node_stage_check -->|"uses license rules"| node_license
node_stage_check -->|"uses media helpers"| node_media
node_stage_check -->|"uses controls"| node_controls
node_stage_check -->|"reads archive"| node_tar
node_catalog_check -->|"requests data"| node_http
node_catalog_check -->|"reads catalog"| node_catalog_api
node_report -->|"formats findings"| node_registry
node_report -->|"renders feedback"| node_comment
node_report -->|"publishes report"| node_github_adapter
node_comment -->|"uses check definitions"| node_registry
node_comment -->|"uses controls"| node_controls
node_authorship -->|"queries access"| node_github_adapter
node_github_adapter -->|"sends requests"| node_http
node_github_adapter -->|"calls API"| node_github
node_review_cli -->|"dispatches"| node_review_request
node_review_cli -->|"uses"| node_github_adapter
node_review_cli -->|"uses"| node_comment
node_review_request -->|"finds checked run"| node_runs
node_review_request -->|"uses report data"| node_report
node_runs -->|"queries runs"| node_github_adapter
node_discover -->|"checks catalog"| node_catalog_check
node_discover -->|"checks authorship"| node_authorship
node_discover -->|"locates artifacts"| node_runs
node_upload -->|"uses publication data"| node_catalog_data
node_upload -->|"sends upload"| node_http
node_upload -->|"uses pipeline report"| node_report
node_catalog_data -->|"publishes catalog data"| node_catalog_api
node_remove -->|"uses removal logic"| node_remove_helpers

click node_prepare "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_prepare.py"
click node_manifest_check "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_manifest.py"
click node_scope "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/validate_scope.py"
click node_build "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_build.py"
click node_fetch "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_fetch.py"
click node_build_lib "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_build.py"
click node_license "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_license.py"
click node_png_check "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_png.py"
click node_package_check "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_package.py"
click node_stage_check "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_check.py"
click node_catalog_check "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_catalog.py"
click node_registry "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_registry.py"
click node_app_id "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_app_id.py"
click node_tar "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_tar.py"
click node_media "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_media.py"
click node_controls "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_controls.py"
click node_http "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_http.py"
click node_github_adapter "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_github.py"
click node_report "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_report.py"
click node_comment "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_comment.py"
click node_authorship "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_authorship.py"
click node_review_cli "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/review_cli.py"
click node_review_request "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/review_request.py"
click node_runs "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_pipeline_runs.py"
click node_discover "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_discover.py"
click node_upload "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_upload.py"
click node_catalog_data "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_publication_data.py"
click node_remove "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_remove.py"
click node_remove_helpers "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_removal.py"
click node_publish_report "https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_report.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_prepare,node_manifest_check,node_scope toneBlue
class node_build,node_fetch,node_build_lib,node_license,node_png_check,node_package_check,node_stage_check,node_catalog_check toneAmber
class node_report,node_comment,node_authorship,node_review_cli,node_review_request,node_runs,node_catalog_api toneMint
class node_discover,node_upload,node_catalog_data,node_remove,node_remove_helpers,node_publish_report toneRose
class node_registry,node_app_id,node_tar,node_media,node_controls,node_http,node_github_adapter,node_author,node_manifest,node_github toneIndigo
```

## Components

### Submission Checks

- [PR preparation](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_prepare.py): `tools/pipeline_prepare.py`
- [Manifest checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_manifest.py): `tools/check_manifest.py`
- [Change scope](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/validate_scope.py): `tools/validate_scope.py`

### Build Pipeline

- [Package build](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_build.py): `tools/pipeline_build.py`
- [Source fetch](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_fetch.py): `tools/lib_fetch.py`
- [Build helpers](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_build.py): `tools/lib_build.py`
- [License checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_license.py): `tools/lib_license.py`
- [PNG checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_png.py): `tools/check_png.py`
- [Package checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_package.py): `tools/check_package.py`
- [Stage checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_check.py): `tools/pipeline_check.py`
- [Catalog checks](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_catalog.py): `tools/check_catalog.py`

### Review Automation

- [Pipeline report](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/pipeline_report.py): `tools/pipeline_report.py`
- [PR check comment](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_comment.py): `tools/lib_comment.py`
- [Authorship check](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_authorship.py): `tools/lib_authorship.py`
- [Review commands](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/review_cli.py): `tools/review_cli.py`
- [Review requests](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/review_request.py): `tools/review_request.py`
- [Pipeline run lookup](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_pipeline_runs.py): `tools/lib_pipeline_runs.py`

### Catalog Publishing

- [Publication discovery](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_discover.py): `tools/publish_discover.py`
- [Catalog upload](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_upload.py): `tools/publish_upload.py`
- [Publication data](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_publication_data.py): `tools/lib_publication_data.py`
- [App removal](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_remove.py): `tools/publish_remove.py`
- [Removal logic](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_removal.py): `tools/lib_removal.py`
- [Publication report](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/publish_report.py): `tools/publish_report.py`

### Shared Services

- [Check registry](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/check_registry.py): `tools/check_registry.py`
- [App ID rules](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_app_id.py): `tools/lib_app_id.py`
- [Archive helpers](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_tar.py): `tools/lib_tar.py`
- [Media helpers](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_media.py): `tools/lib_media.py`
- [Check controls](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_controls.py): `tools/lib_controls.py`
- [HTTP client](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_http.py): `tools/lib_http.py`
- [GitHub adapter](https://github.com/busy-app/busy-apps-catalog/blob/main/tools/lib_github.py): `tools/lib_github.py`

### Other components

- **App contributor**
- **App manifest**
- **GitHub**
- **Catalog API**

## Connections

- App contributor → App manifest: submits
- App manifest → PR preparation: starts PR checks
- PR preparation → Manifest checks: invokes (evidence: `tools/pipeline_prepare.py`)
- PR preparation → Change scope: validates (evidence: `tools/pipeline_prepare.py`)
- PR preparation → Authorship check: checks access (evidence: `tools/pipeline_prepare.py`)
- Manifest checks → Check registry: uses rules (evidence: `tools/check_manifest.py`)
- Manifest checks → App ID rules: uses ID rules (evidence: `tools/check_manifest.py`)
- Manifest checks → HTTP client: fetches categories (evidence: `tools/check_manifest.py`)
- PR preparation → Removal logic: checks removals (evidence: `tools/pipeline_prepare.py`)
- Package build → Source fetch: fetches source (evidence: `tools/pipeline_build.py`)
- Package build → Build helpers: uses (evidence: `tools/pipeline_build.py`)
- Package build → License checks: checks license (evidence: `tools/pipeline_build.py`)
- Package build → PNG checks: checks images (evidence: `tools/pipeline_build.py`)
- Package build → Package checks: validates package (evidence: `tools/pipeline_build.py`)
- Package checks → App ID rules: uses ID rules (evidence: `tools/check_package.py`)
- Package checks → Archive helpers: reads archive (evidence: `tools/check_package.py`)
- Stage checks → Manifest checks: runs checks (evidence: `tools/pipeline_check.py`)
- Stage checks → Catalog checks: runs checks (evidence: `tools/pipeline_check.py`)
- Stage checks → Package checks: runs checks (evidence: `tools/pipeline_check.py`)
- Stage checks → Check registry: uses registry (evidence: `tools/pipeline_check.py`)
- Stage checks → License checks: uses license rules (evidence: `tools/pipeline_check.py`)
- Stage checks → Media helpers: uses media helpers (evidence: `tools/pipeline_check.py`)
- Stage checks → Check controls: uses controls (evidence: `tools/pipeline_check.py`)
- Stage checks → Archive helpers: reads archive (evidence: `tools/pipeline_check.py`)
- Catalog checks → HTTP client: requests data (evidence: `tools/check_catalog.py`)
- Catalog checks → Catalog API: reads catalog (evidence: `tools/check_catalog.py`)
- Pipeline report → Check registry: formats findings (evidence: `tools/pipeline_report.py`)
- Pipeline report → PR check comment: renders feedback (evidence: `tools/pipeline_report.py`)
- Pipeline report → GitHub adapter: publishes report (evidence: `tools/pipeline_report.py`)
- PR check comment → Check registry: uses check definitions (evidence: `tools/lib_comment.py`)
- PR check comment → Check controls: uses controls (evidence: `tools/lib_comment.py`)
- Authorship check → GitHub adapter: queries access (evidence: `tools/lib_authorship.py`)
- GitHub adapter → HTTP client: sends requests (evidence: `tools/lib_github.py`)
- GitHub adapter → GitHub: calls API (evidence: `tools/lib_github.py`)
- Review commands → Review requests: dispatches (evidence: `tools/review_cli.py`)
- Review commands → GitHub adapter: uses (evidence: `tools/review_cli.py`)
- Review commands → PR check comment: uses (evidence: `tools/review_cli.py`)
- Review requests → Pipeline run lookup: finds checked run (evidence: `tools/review_request.py`)
- Review requests → Pipeline report: uses report data (evidence: `tools/review_request.py`)
- Pipeline run lookup → GitHub adapter: queries runs (evidence: `tools/lib_pipeline_runs.py`)
- Publication discovery → Catalog checks: checks catalog (evidence: `tools/publish_discover.py`)
- Publication discovery → Authorship check: checks authorship (evidence: `tools/publish_discover.py`)
- Publication discovery → Pipeline run lookup: locates artifacts (evidence: `tools/publish_discover.py`)
- Catalog upload → Publication data: uses publication data (evidence: `tools/publish_upload.py`)
- Catalog upload → HTTP client: sends upload (evidence: `tools/publish_upload.py`)
- Catalog upload → Pipeline report: uses pipeline report (evidence: `tools/publish_upload.py`)
- Publication data → Catalog API: publishes catalog data (evidence: `tools/lib_publication_data.py`)
- App removal → Removal logic: uses removal logic
