# eralpd/film_access_web architecture

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

- Interactive diagram: https://gitdiagram.com/eralpd/film_access_web
- Repository: https://github.com/eralpd/film_access_web

## Overview

Film Access is a Spring Boot web app for finding films and managing a personal archive. The main user journey runs from OMDb or local-catalog discovery, through film selection and archive management, to hybrid search and personalized recommendations; Mio adds a separate natural-language discovery path. Account and administrator features support that experience. The README documents these capabilities and integrations, but backend source excerpts were not provided, so the graph’s backend relationships reflect documented behavior rather than inspected call sites.

Main entry points: [`src/main/java/com/example/search/ArchiveSemanticSearchRepository.java`](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/ArchiveSemanticSearchRepository.java) (Hybrid search), [`src/main/java/com/example/film/FilmRepository.java`](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/film/FilmRepository.java) (Local film catalog), [`src/main/java/com/example/omdb/service/OmdbService.java`](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/omdb/service/OmdbService.java) (OMDb film data), [`src/main/java/com/example/search/service/FilmEmbeddingService.java`](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/service/FilmEmbeddingService.java) (Film embeddings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["Film Access web app<br/>[Application.java]"]
  node_pages["Film pages"]
  node_archiveui["Archive controls"]
  node_mio_ui["Mio interface<br/>[mio-menu.js]"]
  node_theme["Theme controls<br/>[theme-toggle.js]"]
end

subgraph group_catalog["Film discovery"]
  node_omdb_search["OMDb search"]
  node_omdb_service["OMDb film data<br/>[OmdbService.java]"]
  node_catalog[("Local film catalog")]
  node_discovery["Catalog discovery"]
end

subgraph group_archive["Archive and search"]
  node_archive_service["Archive management"]
  node_archive_store[("Saved films")]
  node_hybrid_search["Hybrid search"]
  node_embedding["Film embeddings"]
end

subgraph group_personal["Personal features"]
  node_recommendations["Home recommendations"]
  node_mio_service["Mio recommendations"]
  node_gemini["Gemini interpreter"]
  node_accounts["Accounts and profiles"]
  node_admin_export["Admin export"]
end

subgraph group_platform["Data and integrations"]
  node_postgres[("PostgreSQL pgvector")]
  node_omdb["OMDb API"]
  node_openai["OpenAI embeddings"]
  node_redis[("Redis cache")]
end

node_visitor(("Film viewer"))

node_visitor -->|"uses"| node_webapp
node_webapp -->|"renders"| node_pages
node_visitor -->|"searches films"| node_omdb_search
node_omdb_search -->|"retrieves details"| node_omdb_service
node_omdb_service -->|"requests metadata"| node_omdb
node_omdb_service -->|"supplies film data"| node_catalog
node_visitor -->|"browses catalog"| node_discovery
node_discovery -->|"searches"| node_catalog
node_visitor -->|"manages archive"| node_archive_service
node_archiveui -->|"submits archive actions"| node_archive_service
node_archive_service -->|"updates saved films"| node_archive_store
node_visitor -->|"searches archive"| node_hybrid_search
node_hybrid_search -->|"searches saved films"| node_archive_store
node_hybrid_search -->|"searches catalog"| node_catalog
node_hybrid_search -->|"uses semantic signals"| node_embedding
node_embedding -->|"creates vectors"| node_openai
node_embedding -->|"stores vectors"| node_postgres
node_visitor -->|"views recommendations"| node_recommendations
node_recommendations -->|"uses saved films"| node_archive_store
node_visitor -->|"requests suggestions"| node_mio_ui
node_mio_ui -->|"sends film request"| node_mio_service
node_mio_service -->|"interprets request"| node_gemini
node_gemini -->|"supports recommendations"| node_catalog
node_visitor -->|"registers or signs in"| node_accounts
node_visitor -->|"requests admin export"| node_admin_export
node_admin_export -->|"exports user data"| node_postgres
node_hybrid_search -.->|"optionally caches embeddings"| node_redis
node_visitor -->|"changes theme"| node_theme

click node_webapp "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/Application.java"
click node_pages "https://github.com/eralpd/film_access_web/tree/main/src/main/resources/templates"
click node_archiveui "https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/archive-controls.js"
click node_mio_ui "https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/mio-menu.js"
click node_theme "https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/theme-toggle.js"
click node_omdb_search "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/omdb/controller/FilmSearchController.java"
click node_omdb_service "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/omdb/service/OmdbService.java"
click node_catalog "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/film/FilmRepository.java"
click node_discovery "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/discovery/DiscoverySearchService.java"
click node_archive_service "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/archive/service/ArchiveService.java"
click node_archive_store "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/archive/UserFilmRepository.java"
click node_hybrid_search "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/ArchiveSemanticSearchRepository.java"
click node_embedding "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/service/FilmEmbeddingService.java"
click node_recommendations "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/home/recommendation/RecommendationService.java"
click node_mio_service "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/buddy/service/BuddyRecommendationService.java"
click node_gemini "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/buddy/gemini/GeminiFilmIntentInterpreter.java"
click node_accounts "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/user/service/UserRegistrationService.java"
click node_admin_export "https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/admin/export/AdminUserExcelExportService.java"

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_pages,node_archiveui,node_mio_ui,node_theme,node_visitor toneBlue
class node_omdb_search,node_omdb_service,node_catalog,node_discovery toneAmber
class node_archive_service,node_archive_store,node_hybrid_search,node_embedding toneMint
class node_recommendations,node_mio_service,node_gemini,node_accounts,node_admin_export toneRose
class node_postgres,node_omdb,node_openai,node_redis toneIndigo
```

## Components

### Web experience

- [Film Access web app](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/Application.java): `src/main/java/com/example/Application.java`
- [Film pages](https://github.com/eralpd/film_access_web/tree/main/src/main/resources/templates): `src/main/resources/templates`
- [Archive controls](https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/archive-controls.js): `src/main/resources/static/js/archive-controls.js`
- [Mio interface](https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/mio-menu.js): `src/main/resources/static/js/mio-menu.js`
- [Theme controls](https://github.com/eralpd/film_access_web/blob/main/src/main/resources/static/js/theme-toggle.js): `src/main/resources/static/js/theme-toggle.js`

### Film discovery

- [OMDb search](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/omdb/controller/FilmSearchController.java): `src/main/java/com/example/omdb/controller/FilmSearchController.java`
- [OMDb film data](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/omdb/service/OmdbService.java): `src/main/java/com/example/omdb/service/OmdbService.java`
- [Local film catalog](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/film/FilmRepository.java): `src/main/java/com/example/film/FilmRepository.java`
- [Catalog discovery](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/discovery/DiscoverySearchService.java): `src/main/java/com/example/discovery/DiscoverySearchService.java`

### Archive and search

- [Archive management](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/archive/service/ArchiveService.java): `src/main/java/com/example/archive/service/ArchiveService.java`
- [Saved films](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/archive/UserFilmRepository.java): `src/main/java/com/example/archive/UserFilmRepository.java`
- [Hybrid search](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/ArchiveSemanticSearchRepository.java): `src/main/java/com/example/search/ArchiveSemanticSearchRepository.java`
- [Film embeddings](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/search/service/FilmEmbeddingService.java): `src/main/java/com/example/search/service/FilmEmbeddingService.java`

### Personal features

- [Home recommendations](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/home/recommendation/RecommendationService.java): `src/main/java/com/example/home/recommendation/RecommendationService.java`
- [Mio recommendations](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/buddy/service/BuddyRecommendationService.java): `src/main/java/com/example/buddy/service/BuddyRecommendationService.java`
- [Gemini interpreter](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/buddy/gemini/GeminiFilmIntentInterpreter.java): `src/main/java/com/example/buddy/gemini/GeminiFilmIntentInterpreter.java`
- [Accounts and profiles](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/user/service/UserRegistrationService.java): `src/main/java/com/example/user/service/UserRegistrationService.java`
- [Admin export](https://github.com/eralpd/film_access_web/blob/main/src/main/java/com/example/admin/export/AdminUserExcelExportService.java): `src/main/java/com/example/admin/export/AdminUserExcelExportService.java`

### Data and integrations

- **PostgreSQL pgvector**
- **OMDb API**
- **OpenAI embeddings**
- **Redis cache**

### Other components

- **Film viewer**

## Connections

- Film viewer → Film Access web app: uses (evidence: `README.md`)
- Film Access web app → Film pages: renders (evidence: `README.md`)
- Film viewer → OMDb search: searches films (evidence: `README.md`)
- OMDb search → OMDb film data: retrieves details (evidence: `README.md`)
- OMDb film data → OMDb API: requests metadata (evidence: `README.md`)
- OMDb film data → Local film catalog: supplies film data (evidence: `README.md`)
- Film viewer → Catalog discovery: browses catalog (evidence: `README.md`)
- Catalog discovery → Local film catalog: searches (evidence: `README.md`)
- Film viewer → Archive management: manages archive (evidence: `README.md`)
- Archive controls → Archive management: submits archive actions (evidence: `README.md`)
- Archive management → Saved films: updates saved films (evidence: `README.md`)
- Film viewer → Hybrid search: searches archive (evidence: `README.md`)
- Hybrid search → Saved films: searches saved films (evidence: `README.md`)
- Hybrid search → Local film catalog: searches catalog (evidence: `README.md`)
- Hybrid search → Film embeddings: uses semantic signals (evidence: `README.md`)
- Film embeddings → OpenAI embeddings: creates vectors (evidence: `README.md`)
- Film embeddings → PostgreSQL pgvector: stores vectors (evidence: `README.md`)
- Film viewer → Home recommendations: views recommendations (evidence: `README.md`)
- Home recommendations → Saved films: uses saved films (evidence: `README.md`)
- Film viewer → Mio interface: requests suggestions (evidence: `README.md`)
- Mio interface → Mio recommendations: sends film request (evidence: `README.md`)
- Mio recommendations → Gemini interpreter: interprets request (evidence: `README.md`)
- Gemini interpreter → Local film catalog: supports recommendations (evidence: `README.md`)
- Film viewer → Accounts and profiles: registers or signs in (evidence: `README.md`)
- Film viewer → Admin export: requests admin export (evidence: `README.md`)
- Admin export → PostgreSQL pgvector: exports user data (evidence: `README.md`)
- Hybrid search → Redis cache: optionally caches embeddings (evidence: `README.md`)
- Film viewer → Theme controls: changes theme (evidence: `src/main/resources/static/js/theme-toggle.js`)
