How wordpress/openverse works
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: provider_reingestion_workflows.py Provider reingestion · app.vue Search experience · provider_data_ingester.py Provider ingester · search_controller.py Search endpoints
Components 21
Public frontend
- Search experience
frontend/src/app.vue - Query transforms
frontend/shared/utils/search-query-transform.ts - API client
frontend/src/data/api-service.ts
Search API
- Search endpoints
api/api/controllers/search_controller.py - Media views
api/api/views/media_views.py - Audio views
api/api/views/audio_views.py - Image views
api/api/views/image_views.py - OAuth access
api/api/views/oauth2_views.py - Moderation
api/api/utils/moderation.py
Catalog ingestion
- Provider workflows
catalog/dags/providers/provider_workflows.py - Provider reingestion
catalog/dags/providers/provider_reingestion_workflows.py - Provider ingester
catalog/dags/providers/provider_api_scripts/provider_data_ingester.py - Provider details
catalog/dags/common/loader/provider_details.py - Media storage
catalog/dags/common/storage/media.py - Flickr provider
catalog/dags/providers/provider_api_scripts/flickr.py - Museum provider
catalog/dags/providers/provider_api_scripts/metropolitan_museum.py - Wikimedia provider
catalog/dags/providers/provider_api_scripts/wikimedia_commons.py
Data refresh
- Ingestion server
catalog/dags/common/ingestion_server.py - Index refresh
catalog/dags/data_refresh/dag_factory.py - Elasticsearch
catalog/dags/common/elasticsearch.py
Other components
- Media seeker
Connections 15
- Media seeker → Search experience: searches
README.md - Search experience → Query transforms: formats queries
- Search experience → API client: requests results
- API client → Search endpoints: queries API
README.md - Search endpoints → Elasticsearch: searches index
- Provider workflows → Provider ingester: runs ingestion
- Provider reingestion → Flickr provider: configures
catalog/dags/providers/provider_reingestion_workflows.py - Provider reingestion → Museum provider: configures
catalog/dags/providers/provider_reingestion_workflows.py - Provider reingestion → Wikimedia provider: configures
catalog/dags/providers/provider_reingestion_workflows.py - Provider ingester → Provider details: uses provider data
catalog/dags/providers/provider_api_scripts/provider_data_ingester.py - Provider ingester → Media storage: stores records
catalog/dags/providers/provider_api_scripts/provider_data_ingester.py - Media storage → Ingestion server: refreshes API data
README.md - Ingestion server → Search endpoints: refreshes API data
README.md - Index refresh → Ingestion server: triggers refresh
catalog/dags/common/ingestion_server.py - Index refresh → Elasticsearch: refreshes index