# vufind-org/vufind architecture

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

- Interactive diagram: https://gitdiagram.com/vufind-org/vufind
- Repository: https://github.com/vufind-org/vufind

## Overview

VuFind is a library discovery environment: patrons search collections and explore records, with related account and catalog services. The tree also shows record harvesting/import and indexing, plus search backends and theme assets. The graph preserves these major areas, but the excerpts do not establish all runtime wiring, so uncertain relationships are omitted rather than inferred.

Main entry points: [`public/index.php`](https://github.com/vufind-org/vufind/blob/dev/public/index.php) (Web application), [`module/VuFind/src/VuFind/Auth/Manager.php`](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Auth/Manager.php) (Authentication), [`import/index_java/src/org/vufind/index/DatabaseManager.java`](https://github.com/vufind-org/vufind/blob/dev/import/index_java/src/org/vufind/index/DatabaseManager.java) (Index utilities), [`module/VuFind/src/VuFind/Action/Search/ResultsAction.php`](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Search/ResultsAction.php) (Search actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery"]
  node_webapp["Web application<br/>[index.php]"]
  node_search_actions["Search actions<br/>[ResultsAction.php]"]
  node_search_service["Search service<br/>[Service.php]"]
  node_solr_backend["Solr backend<br/>[SearchHandler.php]"]
  node_search_api["Search API<br/>[SearchAction.php]"]
end

subgraph group_records["Records and catalog"]
  node_record_actions["Record actions<br/>[HomeAction.php]"]
  node_record_cache[("Record cache<br/>[Cache.php]")]
  node_ils_connection["ILS connection<br/>[Connection.php]"]
  node_storage_action["Retrieval action"]
  node_storage_helper["Retrieval helper"]
end

subgraph group_accounts["Accounts"]
  node_auth_manager["Authentication<br/>[Manager.php]"]
  node_user_entity[("User account")]
  node_audit_service["Audit events"]
end

subgraph group_ingest["Collection ingest"]
  node_harvest["Harvest tools<br/>[harvest_oai.php]"]
  node_import["Import tools<br/>[import-xsl.php]"]
  node_index_java["Index utilities"]
end

subgraph group_platform["Platform and themes"]
  node_asset_pipeline["Asset pipeline<br/>[AssetPipeline.php]"]
  node_asset_manager["Asset manager<br/>[AssetManager.php]"]
  node_theme_info["Theme information<br/>[ThemeInfo.php]"]
  node_config_manager["Configuration"]
  node_change_tracker["Change tracking"]
end

node_patron(("Patron"))

node_patron -.->|"uses"| node_webapp
node_webapp -.->|"routes to"| node_search_actions
node_search_actions -.->|"invokes"| node_search_service
node_search_service -.->|"dispatches"| node_solr_backend
node_webapp -.->|"exposes"| node_search_api
node_storage_action -->|"uses"| node_storage_helper
node_storage_helper -->|"calls"| node_ils_connection
node_auth_manager -->|"loads"| node_user_entity
node_auth_manager -->|"records events"| node_audit_service
node_asset_manager -->|"uses"| node_asset_pipeline
node_asset_pipeline -->|"uses"| node_theme_info
node_index_java -.->|"uses"| node_config_manager
node_index_java -.->|"tracks changes"| node_change_tracker

click node_webapp "https://github.com/vufind-org/vufind/blob/dev/public/index.php"
click node_search_actions "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Search/ResultsAction.php"
click node_search_service "https://github.com/vufind-org/vufind/blob/dev/module/VuFindSearch/src/VuFindSearch/Service.php"
click node_solr_backend "https://github.com/vufind-org/vufind/blob/dev/module/VuFindSearch/src/VuFindSearch/Backend/Solr/SearchHandler.php"
click node_search_api "https://github.com/vufind-org/vufind/blob/dev/module/VuFindApi/src/VuFindApi/Action/SearchApi/SearchAction.php"
click node_record_actions "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Record/HomeAction.php"
click node_record_cache "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Record/Cache.php"
click node_ils_connection "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/ILS/Connection.php"
click node_storage_action "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Record/StorageRetrievalRequestAction.php"
click node_storage_helper "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/ActionHelper/StorageRetrievalRequestsHelper.php"
click node_auth_manager "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Auth/Manager.php"
click node_user_entity "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php"
click node_audit_service "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.php"
click node_harvest "https://github.com/vufind-org/vufind/blob/dev/harvest/harvest_oai.php"
click node_import "https://github.com/vufind-org/vufind/blob/dev/import/import-xsl.php"
click node_index_java "https://github.com/vufind-org/vufind/blob/dev/import/index_java/src/org/vufind/index/DatabaseManager.java"
click node_asset_pipeline "https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/AssetPipeline.php"
click node_asset_manager "https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetManager.php"
click node_theme_info "https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/ThemeInfo.php"
click node_config_manager "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Config/ConfigManagerInterface.php"
click node_change_tracker "https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.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_webapp,node_search_actions,node_search_service,node_solr_backend,node_search_api toneBlue
class node_record_actions,node_record_cache,node_ils_connection,node_storage_action,node_storage_helper toneAmber
class node_auth_manager,node_user_entity,node_audit_service toneMint
class node_harvest,node_import,node_index_java toneRose
class node_asset_pipeline,node_asset_manager,node_theme_info,node_config_manager,node_change_tracker,node_patron toneIndigo
```

## Components

### Discovery

- [Web application](https://github.com/vufind-org/vufind/blob/dev/public/index.php): `public/index.php`
- [Search actions](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Search/ResultsAction.php): `module/VuFind/src/VuFind/Action/Search/ResultsAction.php`
- [Search service](https://github.com/vufind-org/vufind/blob/dev/module/VuFindSearch/src/VuFindSearch/Service.php): `module/VuFindSearch/src/VuFindSearch/Service.php`
- [Solr backend](https://github.com/vufind-org/vufind/blob/dev/module/VuFindSearch/src/VuFindSearch/Backend/Solr/SearchHandler.php): `module/VuFindSearch/src/VuFindSearch/Backend/Solr/SearchHandler.php`
- [Search API](https://github.com/vufind-org/vufind/blob/dev/module/VuFindApi/src/VuFindApi/Action/SearchApi/SearchAction.php): `module/VuFindApi/src/VuFindApi/Action/SearchApi/SearchAction.php`

### Records and catalog

- [Record actions](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Record/HomeAction.php): `module/VuFind/src/VuFind/Action/Record/HomeAction.php`
- [Record cache](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Record/Cache.php): `module/VuFind/src/VuFind/Record/Cache.php`
- [ILS connection](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/ILS/Connection.php): `module/VuFind/src/VuFind/ILS/Connection.php`
- [Retrieval action](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Action/Record/StorageRetrievalRequestAction.php): `module/VuFind/src/VuFind/Action/Record/StorageRetrievalRequestAction.php`
- [Retrieval helper](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/ActionHelper/StorageRetrievalRequestsHelper.php): `module/VuFind/src/VuFind/ActionHelper/StorageRetrievalRequestsHelper.php`

### Accounts

- [Authentication](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Auth/Manager.php): `module/VuFind/src/VuFind/Auth/Manager.php`
- [User account](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php): `module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php`
- [Audit events](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.php): `module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.php`

### Collection ingest

- [Harvest tools](https://github.com/vufind-org/vufind/blob/dev/harvest/harvest_oai.php): `harvest/harvest_oai.php`
- [Import tools](https://github.com/vufind-org/vufind/blob/dev/import/import-xsl.php): `import/import-xsl.php`
- [Index utilities](https://github.com/vufind-org/vufind/blob/dev/import/index_java/src/org/vufind/index/DatabaseManager.java): `import/index_java/src/org/vufind/index/DatabaseManager.java`

### Platform and themes

- [Asset pipeline](https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/AssetPipeline.php): `module/VuFindTheme/src/VuFindTheme/AssetPipeline.php`
- [Asset manager](https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetManager.php): `module/VuFindTheme/src/VuFindTheme/View/Helper/AssetManager.php`
- [Theme information](https://github.com/vufind-org/vufind/blob/dev/module/VuFindTheme/src/VuFindTheme/ThemeInfo.php): `module/VuFindTheme/src/VuFindTheme/ThemeInfo.php`
- [Configuration](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Config/ConfigManagerInterface.php): `module/VuFind/src/VuFind/Config/ConfigManagerInterface.php`
- [Change tracking](https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.php): `module/VuFind/src/VuFind/Db/Service/AuditEventServiceInterface.php`

### Other components

- **Patron**

## Connections

- Patron → Web application: uses
- Web application → Search actions: routes to
- Search actions → Search service: invokes
- Search service → Solr backend: dispatches
- Web application → Search API: exposes
- Retrieval action → Retrieval helper: uses (evidence: `module/VuFind/src/VuFind/Action/Record/StorageRetrievalRequestAction.php`)
- Retrieval helper → ILS connection: calls (evidence: `module/VuFind/src/VuFind/ActionHelper/StorageRetrievalRequestsHelper.php`)
- Authentication → User account: loads (evidence: `module/VuFind/src/VuFind/Auth/Manager.php`)
- Authentication → Audit events: records events (evidence: `module/VuFind/src/VuFind/Auth/Manager.php`)
- Asset manager → Asset pipeline: uses (evidence: `module/VuFindTheme/src/VuFindTheme/View/Helper/AssetManager.php`)
- Asset pipeline → Theme information: uses (evidence: `module/VuFindTheme/src/VuFindTheme/AssetPipeline.php`)
- Index utilities → Configuration: uses
- Index utilities → Change tracking: tracks changes
