# laravel/go-framework architecture

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

- Interactive diagram: https://gitdiagram.com/laravel/go-framework
- Repository: https://github.com/laravel/go-framework

## Overview

Laravel for Go is a full-stack Go web framework. Its main request path begins with application routes and HTTP handling, then branches into validation, authentication, and rendered responses. The framework also provides persistence, sessions, caching, filesystems, search, background jobs, durable workflows, and real-time broadcasting. The graph retains these documented product capabilities and key internal layers. Relationship evidence is limited to README statements and the supplied source excerpts and index; links without direct evidence are omitted.

Main entry points: [`db/query.go`](https://github.com/laravel/go-framework/blob/0.x/db/query.go) (Database queries), [`routing/router.go`](https://github.com/laravel/go-framework/blob/0.x/routing/router.go) (Routing), [`web/web.go`](https://github.com/laravel/go-framework/blob/0.x/web/web.go) (HTTP handling), [`search/query.go`](https://github.com/laravel/go-framework/blob/0.x/search/query.go) (Search queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP and identity"]
  node_routing["Routing<br/>[router.go]"]
  node_web["HTTP handling<br/>[web.go]"]
  node_validation["Validation<br/>[validation.go]"]
  node_auth["Authentication<br/>[auth.go]"]
  node_inertia["Inertia pages<br/>[page.go]"]
end

subgraph group_data["Data and state"]
  node_orm["Model ORM<br/>[query.go]"]
  node_database[("Database queries<br/>[query.go]")]
  node_migrations["Schema migrations<br/>[migrate.go]"]
  node_sessions["Sessions<br/>[session.go]"]
  node_cache["Cache<br/>[database.go]"]
  node_storage["File storage<br/>[storage.go]"]
  node_search["Search queries<br/>[query.go]"]
end

subgraph group_async["Jobs and workflows"]
  node_queue["Job processing<br/>[worker.go]"]
  node_workflow["Durable workflows<br/>[database.go]"]
end

subgraph group_integrations["External integrations"]
  node_searchengine["Search engines<br/>[engine.go]"]
  node_meili["Meilisearch<br/>[meilisearch.go]"]
  node_broadcast["Broadcasting<br/>[broadcast.go]"]
  node_reverb["Realtime server<br/>[app.go]"]
  node_httpclient["Outgoing HTTP<br/>[client.go]"]
end

node_user(("HTTP client"))

node_user -->|"sends requests"| node_routing
node_routing -->|"routes handlers"| node_web
node_routing -->|"registers pages"| node_inertia
node_orm -->|"queries through"| node_database
node_search -->|"loads models"| node_database
node_search -->|"searches with"| node_searchengine
node_meili -->|"implements engine"| node_searchengine
node_sessions -->|"stores sessions"| node_database
node_cache -->|"uses queries"| node_database
node_workflow -->|"persists runs"| node_database
node_queue -->|"uses queries"| node_database
node_queue -->|"tracks errors"| node_cache
node_web -.->|"validates input"| node_validation
node_web -.->|"checks identity"| node_auth
node_routing -.->|"routes channels"| node_broadcast
node_broadcast -.->|"serves realtime"| node_reverb
node_storage -.->|"serves files"| node_user

click node_routing "https://github.com/laravel/go-framework/blob/0.x/routing/router.go"
click node_web "https://github.com/laravel/go-framework/blob/0.x/web/web.go"
click node_validation "https://github.com/laravel/go-framework/blob/0.x/validation/validation.go"
click node_auth "https://github.com/laravel/go-framework/blob/0.x/auth/auth.go"
click node_inertia "https://github.com/laravel/go-framework/blob/0.x/inertia/page.go"
click node_orm "https://github.com/laravel/go-framework/blob/0.x/model/query.go"
click node_database "https://github.com/laravel/go-framework/blob/0.x/db/query.go"
click node_migrations "https://github.com/laravel/go-framework/blob/0.x/db/migrate.go"
click node_sessions "https://github.com/laravel/go-framework/blob/0.x/session/session.go"
click node_cache "https://github.com/laravel/go-framework/blob/0.x/cache/database.go"
click node_storage "https://github.com/laravel/go-framework/blob/0.x/storage/storage.go"
click node_search "https://github.com/laravel/go-framework/blob/0.x/search/query.go"
click node_searchengine "https://github.com/laravel/go-framework/blob/0.x/search/engine.go"
click node_meili "https://github.com/laravel/go-framework/blob/0.x/search/meilisearch/meilisearch.go"
click node_queue "https://github.com/laravel/go-framework/blob/0.x/queue/worker.go"
click node_workflow "https://github.com/laravel/go-framework/blob/0.x/workflow/database.go"
click node_broadcast "https://github.com/laravel/go-framework/blob/0.x/broadcast/broadcast.go"
click node_reverb "https://github.com/laravel/go-framework/blob/0.x/internal/reverb/app.go"
click node_httpclient "https://github.com/laravel/go-framework/blob/0.x/httpclient/client.go"

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_routing,node_web,node_validation,node_auth,node_inertia,node_user toneBlue
class node_orm,node_database,node_migrations,node_sessions,node_cache,node_storage,node_search toneAmber
class node_queue,node_workflow toneMint
class node_searchengine,node_meili,node_broadcast,node_reverb,node_httpclient toneRose
```

## Components

### HTTP and identity

- [Routing](https://github.com/laravel/go-framework/blob/0.x/routing/router.go): `routing/router.go`
- [HTTP handling](https://github.com/laravel/go-framework/blob/0.x/web/web.go): `web/web.go`
- [Validation](https://github.com/laravel/go-framework/blob/0.x/validation/validation.go): `validation/validation.go`
- [Authentication](https://github.com/laravel/go-framework/blob/0.x/auth/auth.go): `auth/auth.go`
- [Inertia pages](https://github.com/laravel/go-framework/blob/0.x/inertia/page.go): `inertia/page.go`

### Data and state

- [Model ORM](https://github.com/laravel/go-framework/blob/0.x/model/query.go): `model/query.go`
- [Database queries](https://github.com/laravel/go-framework/blob/0.x/db/query.go): `db/query.go`
- [Schema migrations](https://github.com/laravel/go-framework/blob/0.x/db/migrate.go): `db/migrate.go`
- [Sessions](https://github.com/laravel/go-framework/blob/0.x/session/session.go): `session/session.go`
- [Cache](https://github.com/laravel/go-framework/blob/0.x/cache/database.go): `cache/database.go`
- [File storage](https://github.com/laravel/go-framework/blob/0.x/storage/storage.go): `storage/storage.go`
- [Search queries](https://github.com/laravel/go-framework/blob/0.x/search/query.go): `search/query.go`

### Jobs and workflows

- [Job processing](https://github.com/laravel/go-framework/blob/0.x/queue/worker.go): `queue/worker.go`
- [Durable workflows](https://github.com/laravel/go-framework/blob/0.x/workflow/database.go): `workflow/database.go`

### External integrations

- [Search engines](https://github.com/laravel/go-framework/blob/0.x/search/engine.go): `search/engine.go`
- [Meilisearch](https://github.com/laravel/go-framework/blob/0.x/search/meilisearch/meilisearch.go): `search/meilisearch/meilisearch.go`
- [Broadcasting](https://github.com/laravel/go-framework/blob/0.x/broadcast/broadcast.go): `broadcast/broadcast.go`
- [Realtime server](https://github.com/laravel/go-framework/blob/0.x/internal/reverb/app.go): `internal/reverb/app.go`
- [Outgoing HTTP](https://github.com/laravel/go-framework/blob/0.x/httpclient/client.go): `httpclient/client.go`

### Other components

- **HTTP client**

## Connections

- HTTP client → Routing: sends requests (evidence: `README.md`)
- Routing → HTTP handling: routes handlers (evidence: `routing/router.go`)
- Routing → Inertia pages: registers pages (evidence: `routing/router.go`)
- Model ORM → Database queries: queries through (evidence: `model/query.go`)
- Search queries → Database queries: loads models (evidence: `search/query.go`)
- Search queries → Search engines: searches with (evidence: `search/query.go`)
- Meilisearch → Search engines: implements engine (evidence: `search/meilisearch/meilisearch.go`)
- Sessions → Database queries: stores sessions
- Cache → Database queries: uses queries (evidence: `cache/database.go`)
- Durable workflows → Database queries: persists runs (evidence: `workflow/database.go`)
- Job processing → Database queries: uses queries (evidence: `queue/worker.go`)
- Job processing → Cache: tracks errors (evidence: `queue/worker.go`)
- HTTP handling → Validation: validates input
- HTTP handling → Authentication: checks identity
- Routing → Broadcasting: routes channels
- Broadcasting → Realtime server: serves realtime
- File storage → HTTP client: serves files
