# middleware-labs/install.middleware.io architecture

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

- Interactive diagram: https://gitdiagram.com/middleware-labs/install.middleware.io
- Repository: https://github.com/middleware-labs/install.middleware.io

## Overview

This repository is a GitHub Pages-hosted catalog of Middleware agent installation assets, rather than an agent runtime. The user-facing path is browsing the hosted files and selecting installation assets; the repository also supplies OS installers, Kubernetes deployment manifests, language-specific instrumentation, collector configuration, and cloud integrations. The sampled PHP scripts implement installation and configuration workflows, while list.js fetches and renders paginated S3 listings. Most deployment assets were not sampled, so their internal interactions are not represented as verified calls.

Main entry points: [`list.js`](https://github.com/middleware-labs/install.middleware.io/blob/master/list.js) (Bucket Listing), [`apm/php/instrument.php`](https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/instrument.php) (PHP APM Installer), [`apm/php`](https://github.com/middleware-labs/install.middleware.io/tree/master/apm/php) (PHP Package Sources), [`apm/php/laravel-instrument.php`](https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/laravel-instrument.php) (Laravel Installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Hosted Catalog"]
  node_listing["Bucket Listing<br/>[list.js]"]
end

subgraph group_install["Agent Installation"]
  node_os_installers["OS Installers"]
  node_kube_installer["Kubernetes Installer"]
end

subgraph group_instrument["Language Instrumentation"]
  node_php_installer["PHP APM Installer<br/>[instrument.php]"]
  node_laravel_installer["Laravel Installer"]
  node_wordpress_installer["WordPress Installer<br/>[wp-instrument.php]"]
  node_dotnet_installer[".NET Instrumentation"]
  node_php_package_sources["PHP Package Sources"]
  node_dotnet_packages[".NET Packages"]
end

subgraph group_deploy["Deployment Configuration"]
  node_kube_agent["Kube Agent Manifests"]
  node_auto_manifests["Auto-Instrumentation Manifests"]
  node_auto_webhook["Language Detection Webhook"]
  node_otel_config["OpenTelemetry Config"]
  node_aws_integrations["AWS Integrations"]
  node_jmx_receiver["JMX Receiver<br/>[mw-jmx-metrics.jar]"]
end

node_user(("Installer User"))
node_s3[("S3 Bucket")]

node_user -->|"browses"| node_listing
node_listing -->|"queries pages"| node_s3
node_listing -->|"renders results"| node_listing
node_php_installer -->|"installs or removes"| node_php_installer
node_laravel_installer -.->|"installs packages"| node_php_package_sources
node_wordpress_installer -.->|"installs packages"| node_php_package_sources

click node_listing "https://github.com/middleware-labs/install.middleware.io/blob/master/list.js"
click node_os_installers "https://github.com/middleware-labs/install.middleware.io/tree/master/scripts"
click node_kube_installer "https://github.com/middleware-labs/install.middleware.io/tree/master/scripts/mw-kube"
click node_kube_agent "https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/mw-kube-agent"
click node_auto_manifests "https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/autoinstrumentation"
click node_auto_webhook "https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/mw-autoinstrumentation"
click node_otel_config "https://github.com/middleware-labs/install.middleware.io/tree/master/configyamls"
click node_aws_integrations "https://github.com/middleware-labs/install.middleware.io/tree/master/integrations/aws"
click node_php_installer "https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/instrument.php"
click node_laravel_installer "https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/laravel-instrument.php"
click node_wordpress_installer "https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/wp-instrument.php"
click node_dotnet_installer "https://github.com/middleware-labs/install.middleware.io/tree/master/apm/dotnet"
click node_php_package_sources "https://github.com/middleware-labs/install.middleware.io/tree/master/apm/php"
click node_dotnet_packages "https://github.com/middleware-labs/install.middleware.io/tree/master/apm/dotnet"
click node_jmx_receiver "https://github.com/middleware-labs/install.middleware.io/blob/master/jmx-receiver/mw-jmx-metrics.jar"

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_listing,node_user toneBlue
class node_os_installers,node_kube_installer,node_s3 toneAmber
class node_php_installer,node_laravel_installer,node_wordpress_installer,node_dotnet_installer,node_php_package_sources,node_dotnet_packages toneMint
class node_kube_agent,node_auto_manifests,node_auto_webhook,node_otel_config,node_aws_integrations,node_jmx_receiver toneRose
```

## Components

### Hosted Catalog

- [Bucket Listing](https://github.com/middleware-labs/install.middleware.io/blob/master/list.js): `list.js`

### Agent Installation

- [OS Installers](https://github.com/middleware-labs/install.middleware.io/tree/master/scripts): `scripts`
- [Kubernetes Installer](https://github.com/middleware-labs/install.middleware.io/tree/master/scripts/mw-kube): `scripts/mw-kube`

### Language Instrumentation

- [PHP APM Installer](https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/instrument.php): `apm/php/instrument.php`
- [Laravel Installer](https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/laravel-instrument.php): `apm/php/laravel-instrument.php`
- [WordPress Installer](https://github.com/middleware-labs/install.middleware.io/blob/master/apm/php/wp-instrument.php): `apm/php/wp-instrument.php`
- [.NET Instrumentation](https://github.com/middleware-labs/install.middleware.io/tree/master/apm/dotnet): `apm/dotnet`
- [PHP Package Sources](https://github.com/middleware-labs/install.middleware.io/tree/master/apm/php): `apm/php`
- [.NET Packages](https://github.com/middleware-labs/install.middleware.io/tree/master/apm/dotnet): `apm/dotnet`

### Deployment Configuration

- [Kube Agent Manifests](https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/mw-kube-agent): `manifests/mw-kube-agent`
- [Auto-Instrumentation Manifests](https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/autoinstrumentation): `manifests/autoinstrumentation`
- [Language Detection Webhook](https://github.com/middleware-labs/install.middleware.io/tree/master/manifests/mw-autoinstrumentation): `manifests/mw-autoinstrumentation`
- [OpenTelemetry Config](https://github.com/middleware-labs/install.middleware.io/tree/master/configyamls): `configyamls`
- [AWS Integrations](https://github.com/middleware-labs/install.middleware.io/tree/master/integrations/aws): `integrations/aws`
- [JMX Receiver](https://github.com/middleware-labs/install.middleware.io/blob/master/jmx-receiver/mw-jmx-metrics.jar): `jmx-receiver/mw-jmx-metrics.jar`

### Other components

- **Installer User**
- **S3 Bucket**

## Connections

- Installer User → Bucket Listing: browses (evidence: `README.md`)
- Bucket Listing → S3 Bucket: queries pages (evidence: `list.js`)
- Bucket Listing → Bucket Listing: renders results (evidence: `list.js`)
- PHP APM Installer → PHP APM Installer: installs or removes (evidence: `apm/php/instrument.php`)
- Laravel Installer → PHP Package Sources: installs packages
- WordPress Installer → PHP Package Sources: installs packages
