# wordpress/openverse architecture

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

- Interactive diagram: https://gitdiagram.com/wordpress/openverse
- Repository: https://github.com/wordpress/openverse

## Overview

Openverse is a search engine for openly licensed media. Its main user journey is searching or browsing the public frontend, which uses the Django API to return media results; the catalog collects provider metadata, and the ingestion server refreshes that data for API use. The repository also includes API capabilities for media types, OAuth, and moderation, plus catalog reingestion and Elasticsearch index refresh workflows. Several links below are based on README descriptions; unsampled implementation details are not assumed.

Main entry points: [`catalog/dags/providers/provider_reingestion_workflows.py`](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_reingestion_workflows.py) (Provider reingestion), [`frontend/src/app.vue`](https://github.com/wordpress/openverse/blob/main/frontend/src/app.vue) (Search experience), [`catalog/dags/providers/provider_api_scripts/provider_data_ingester.py`](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/provider_data_ingester.py) (Provider ingester), [`api/api/controllers/search_controller.py`](https://github.com/wordpress/openverse/blob/main/api/api/controllers/search_controller.py) (Search endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Public frontend"]
  node_web["Search experience<br/>[app.vue]"]
  node_query["Query transforms"]
  node_frontend_api["API client<br/>[api-service.ts]"]
end

subgraph group_api["Search API"]
  node_api_search["Search endpoints"]
  node_media_views["Media views<br/>[media_views.py]"]
  node_audio_views["Audio views<br/>[audio_views.py]"]
  node_image_views["Image views<br/>[image_views.py]"]
  node_oauth["OAuth access<br/>[oauth2_views.py]"]
  node_moderation["Moderation<br/>[moderation.py]"]
end

subgraph group_catalog["Catalog ingestion"]
  node_provider_workflows["Provider workflows"]
  node_provider_reingest["Provider reingestion"]
  node_provider_ingester["Provider ingester"]
  node_provider_details["Provider details"]
  node_media_storage[("Media storage<br/>[media.py]")]
  node_flickr["Flickr provider<br/>[flickr.py]"]
  node_metmuseum["Museum provider"]
  node_wikimedia["Wikimedia provider"]
end

subgraph group_refresh["Data refresh"]
  node_ingestion_server["Ingestion server"]
  node_refresh_workflows["Index refresh<br/>[dag_factory.py]"]
  node_elasticsearch[("Elasticsearch<br/>[elasticsearch.py]")]
end

node_visitor(("Media seeker"))

node_visitor -->|"searches"| node_web
node_web -.->|"formats queries"| node_query
node_web -.->|"requests results"| node_frontend_api
node_frontend_api -->|"queries API"| node_api_search
node_api_search -.->|"searches index"| node_elasticsearch
node_provider_workflows -.->|"runs ingestion"| node_provider_ingester
node_provider_reingest -->|"configures"| node_flickr
node_provider_reingest -->|"configures"| node_metmuseum
node_provider_reingest -->|"configures"| node_wikimedia
node_provider_ingester -->|"uses provider data"| node_provider_details
node_provider_ingester -->|"stores records"| node_media_storage
node_media_storage -->|"refreshes API data"| node_ingestion_server
node_ingestion_server -->|"refreshes API data"| node_api_search
node_refresh_workflows -->|"triggers refresh"| node_ingestion_server
node_refresh_workflows -.->|"refreshes index"| node_elasticsearch

click node_web "https://github.com/wordpress/openverse/blob/main/frontend/src/app.vue"
click node_query "https://github.com/wordpress/openverse/blob/main/frontend/shared/utils/search-query-transform.ts"
click node_frontend_api "https://github.com/wordpress/openverse/blob/main/frontend/src/data/api-service.ts"
click node_api_search "https://github.com/wordpress/openverse/blob/main/api/api/controllers/search_controller.py"
click node_media_views "https://github.com/wordpress/openverse/blob/main/api/api/views/media_views.py"
click node_audio_views "https://github.com/wordpress/openverse/blob/main/api/api/views/audio_views.py"
click node_image_views "https://github.com/wordpress/openverse/blob/main/api/api/views/image_views.py"
click node_oauth "https://github.com/wordpress/openverse/blob/main/api/api/views/oauth2_views.py"
click node_moderation "https://github.com/wordpress/openverse/blob/main/api/api/utils/moderation.py"
click node_provider_workflows "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_workflows.py"
click node_provider_reingest "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_reingestion_workflows.py"
click node_provider_ingester "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/provider_data_ingester.py"
click node_provider_details "https://github.com/wordpress/openverse/blob/main/catalog/dags/common/loader/provider_details.py"
click node_media_storage "https://github.com/wordpress/openverse/blob/main/catalog/dags/common/storage/media.py"
click node_flickr "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/flickr.py"
click node_metmuseum "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/metropolitan_museum.py"
click node_wikimedia "https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/wikimedia_commons.py"
click node_ingestion_server "https://github.com/wordpress/openverse/blob/main/catalog/dags/common/ingestion_server.py"
click node_refresh_workflows "https://github.com/wordpress/openverse/blob/main/catalog/dags/data_refresh/dag_factory.py"
click node_elasticsearch "https://github.com/wordpress/openverse/blob/main/catalog/dags/common/elasticsearch.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_web,node_query,node_frontend_api toneBlue
class node_api_search,node_media_views,node_audio_views,node_image_views,node_oauth,node_moderation toneAmber
class node_provider_workflows,node_provider_reingest,node_provider_ingester,node_provider_details,node_media_storage,node_flickr,node_metmuseum,node_wikimedia toneMint
class node_ingestion_server,node_refresh_workflows,node_elasticsearch toneRose
class node_visitor toneIndigo
```

## Components

### Public frontend

- [Search experience](https://github.com/wordpress/openverse/blob/main/frontend/src/app.vue): `frontend/src/app.vue`
- [Query transforms](https://github.com/wordpress/openverse/blob/main/frontend/shared/utils/search-query-transform.ts): `frontend/shared/utils/search-query-transform.ts`
- [API client](https://github.com/wordpress/openverse/blob/main/frontend/src/data/api-service.ts): `frontend/src/data/api-service.ts`

### Search API

- [Search endpoints](https://github.com/wordpress/openverse/blob/main/api/api/controllers/search_controller.py): `api/api/controllers/search_controller.py`
- [Media views](https://github.com/wordpress/openverse/blob/main/api/api/views/media_views.py): `api/api/views/media_views.py`
- [Audio views](https://github.com/wordpress/openverse/blob/main/api/api/views/audio_views.py): `api/api/views/audio_views.py`
- [Image views](https://github.com/wordpress/openverse/blob/main/api/api/views/image_views.py): `api/api/views/image_views.py`
- [OAuth access](https://github.com/wordpress/openverse/blob/main/api/api/views/oauth2_views.py): `api/api/views/oauth2_views.py`
- [Moderation](https://github.com/wordpress/openverse/blob/main/api/api/utils/moderation.py): `api/api/utils/moderation.py`

### Catalog ingestion

- [Provider workflows](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_workflows.py): `catalog/dags/providers/provider_workflows.py`
- [Provider reingestion](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_reingestion_workflows.py): `catalog/dags/providers/provider_reingestion_workflows.py`
- [Provider ingester](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/provider_data_ingester.py): `catalog/dags/providers/provider_api_scripts/provider_data_ingester.py`
- [Provider details](https://github.com/wordpress/openverse/blob/main/catalog/dags/common/loader/provider_details.py): `catalog/dags/common/loader/provider_details.py`
- [Media storage](https://github.com/wordpress/openverse/blob/main/catalog/dags/common/storage/media.py): `catalog/dags/common/storage/media.py`
- [Flickr provider](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/flickr.py): `catalog/dags/providers/provider_api_scripts/flickr.py`
- [Museum provider](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/metropolitan_museum.py): `catalog/dags/providers/provider_api_scripts/metropolitan_museum.py`
- [Wikimedia provider](https://github.com/wordpress/openverse/blob/main/catalog/dags/providers/provider_api_scripts/wikimedia_commons.py): `catalog/dags/providers/provider_api_scripts/wikimedia_commons.py`

### Data refresh

- [Ingestion server](https://github.com/wordpress/openverse/blob/main/catalog/dags/common/ingestion_server.py): `catalog/dags/common/ingestion_server.py`
- [Index refresh](https://github.com/wordpress/openverse/blob/main/catalog/dags/data_refresh/dag_factory.py): `catalog/dags/data_refresh/dag_factory.py`
- [Elasticsearch](https://github.com/wordpress/openverse/blob/main/catalog/dags/common/elasticsearch.py): `catalog/dags/common/elasticsearch.py`

### Other components

- **Media seeker**

## Connections

- Media seeker → Search experience: searches (evidence: `README.md`)
- Search experience → Query transforms: formats queries
- Search experience → API client: requests results
- API client → Search endpoints: queries API (evidence: `README.md`)
- Search endpoints → Elasticsearch: searches index
- Provider workflows → Provider ingester: runs ingestion
- Provider reingestion → Flickr provider: configures (evidence: `catalog/dags/providers/provider_reingestion_workflows.py`)
- Provider reingestion → Museum provider: configures (evidence: `catalog/dags/providers/provider_reingestion_workflows.py`)
- Provider reingestion → Wikimedia provider: configures (evidence: `catalog/dags/providers/provider_reingestion_workflows.py`)
- Provider ingester → Provider details: uses provider data (evidence: `catalog/dags/providers/provider_api_scripts/provider_data_ingester.py`)
- Provider ingester → Media storage: stores records (evidence: `catalog/dags/providers/provider_api_scripts/provider_data_ingester.py`)
- Media storage → Ingestion server: refreshes API data (evidence: `README.md`)
- Ingestion server → Search endpoints: refreshes API data (evidence: `README.md`)
- Index refresh → Ingestion server: triggers refresh (evidence: `catalog/dags/common/ingestion_server.py`)
- Index refresh → Elasticsearch: refreshes index
