# cachethq/cachet architecture

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

- Interactive diagram: https://gitdiagram.com/cachethq/cachet
- Repository: https://github.com/cachethq/cachet

## Overview

Cachet is a self-hosted status-page application, but this repository is primarily a Laravel shell around the Cachet Core and Dashboard providers. The visible request path is the public Laravel entry point into application bootstrap and web routing; provider registration supplies the Cachet packages. The local User model adapts Cachet’s user model for authentication and Filament access. Core status-page and dashboard behavior lives in dependencies and is not shown in the sampled source, so those internals and their detailed flows are left unspecified.

Main entry points: [`bootstrap/providers.php`](https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php) (Provider Registration), [`bootstrap/app.php`](https://github.com/cachethq/cachet/blob/3.x/bootstrap/app.php) (Application Bootstrap), [`public/index.php`](https://github.com/cachethq/cachet/blob/3.x/public/index.php) (HTTP Entry), [`app/Models/User.php`](https://github.com/cachethq/cachet/blob/3.x/app/Models/User.php) (User Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Laravel Runtime"]
  node_http_entry["HTTP Entry<br/>[index.php]"]
  node_application["Application Bootstrap<br/>[app.php]"]
  node_web_routes["Web Routes<br/>[web.php]"]
  node_provider_registration["Provider Registration<br/>[providers.php]"]
  node_app_provider["App Provider"]
  node_database_config["Database Config<br/>[database.php]"]
end

subgraph group_cachet["Cachet Platform"]
  node_cachet_core["Cachet Core<br/>[providers.php]"]
  node_cachet_dashboard["Cachet Dashboard<br/>[providers.php]"]
  node_cachet_settings["Status Page Settings<br/>[cachet.php]"]
end

subgraph group_identity["Identity"]
  node_user_model["User Model<br/>[User.php]"]
  node_auth_config["Authentication Config<br/>[auth.php]"]
end

node_visitor(("Visitor"))

node_visitor -->|"sends request"| node_http_entry
node_http_entry -->|"hands off"| node_application
node_application -->|"configures routing"| node_web_routes
node_application -->|"loads providers"| node_provider_registration
node_provider_registration -->|"registers"| node_app_provider
node_provider_registration -->|"registers"| node_cachet_core
node_provider_registration -->|"registers"| node_cachet_dashboard
node_cachet_settings -->|"selects model"| node_user_model
node_auth_config -->|"selects model"| node_user_model

click node_http_entry "https://github.com/cachethq/cachet/blob/3.x/public/index.php"
click node_application "https://github.com/cachethq/cachet/blob/3.x/bootstrap/app.php"
click node_web_routes "https://github.com/cachethq/cachet/blob/3.x/routes/web.php"
click node_provider_registration "https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php"
click node_app_provider "https://github.com/cachethq/cachet/blob/3.x/app/Providers/AppServiceProvider.php"
click node_cachet_core "https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php"
click node_cachet_dashboard "https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php"
click node_cachet_settings "https://github.com/cachethq/cachet/blob/3.x/config/cachet.php"
click node_user_model "https://github.com/cachethq/cachet/blob/3.x/app/Models/User.php"
click node_auth_config "https://github.com/cachethq/cachet/blob/3.x/config/auth.php"
click node_database_config "https://github.com/cachethq/cachet/blob/3.x/config/database.php"

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_http_entry,node_application,node_web_routes,node_provider_registration,node_app_provider,node_database_config toneBlue
class node_cachet_core,node_cachet_dashboard,node_cachet_settings toneAmber
class node_user_model,node_auth_config toneMint
class node_visitor toneIndigo
```

## Components

### Laravel Runtime

- [HTTP Entry](https://github.com/cachethq/cachet/blob/3.x/public/index.php): `public/index.php`
- [Application Bootstrap](https://github.com/cachethq/cachet/blob/3.x/bootstrap/app.php): `bootstrap/app.php`
- [Web Routes](https://github.com/cachethq/cachet/blob/3.x/routes/web.php): `routes/web.php`
- [Provider Registration](https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php): `bootstrap/providers.php`
- [App Provider](https://github.com/cachethq/cachet/blob/3.x/app/Providers/AppServiceProvider.php): `app/Providers/AppServiceProvider.php`
- [Database Config](https://github.com/cachethq/cachet/blob/3.x/config/database.php): `config/database.php`

### Cachet Platform

- [Cachet Core](https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php): `bootstrap/providers.php`
- [Cachet Dashboard](https://github.com/cachethq/cachet/blob/3.x/bootstrap/providers.php): `bootstrap/providers.php`
- [Status Page Settings](https://github.com/cachethq/cachet/blob/3.x/config/cachet.php): `config/cachet.php`

### Identity

- [User Model](https://github.com/cachethq/cachet/blob/3.x/app/Models/User.php): `app/Models/User.php`
- [Authentication Config](https://github.com/cachethq/cachet/blob/3.x/config/auth.php): `config/auth.php`

### Other components

- **Visitor**

## Connections

- Visitor → HTTP Entry: sends request (evidence: `public/index.php`)
- HTTP Entry → Application Bootstrap: hands off (evidence: `public/index.php`)
- Application Bootstrap → Web Routes: configures routing (evidence: `bootstrap/app.php`)
- Application Bootstrap → Provider Registration: loads providers (evidence: `bootstrap/app.php`)
- Provider Registration → App Provider: registers (evidence: `bootstrap/providers.php`)
- Provider Registration → Cachet Core: registers (evidence: `bootstrap/providers.php`)
- Provider Registration → Cachet Dashboard: registers (evidence: `bootstrap/providers.php`)
- Status Page Settings → User Model: selects model (evidence: `config/cachet.php`)
- Authentication Config → User Model: selects model (evidence: `config/auth.php`)
