# riccardocalabrese/odyssey-imax-brussels architecture

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

- Interactive diagram: https://gitdiagram.com/riccardocalabrese/odyssey-imax-brussels
- Repository: https://github.com/riccardocalabrese/odyssey-imax-brussels

## Overview

Odyssey IMAX Brussels is a live seat-availability tracker. Its main workflow fetches showtimes, filters the targeted screenings, checks each booking seat map in headless Chrome, computes availability, and publishes JSON for the site; a separate notifier compares results and can alert through Telegram. The scraper and notifier excerpts support their internal behavior, while README statements support the documented API, site, and integration links. The hourly workflow is operational automation, so it is not mapped as a product component.

Main entry points: [`scrape.mjs`](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs) (Scraper), [`data.json`](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/data.json) (Published Results), [`notify.mjs`](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/notify.mjs) (Alert Notifier), [`index.html`](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/index.html) (Availability Site)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Show Collection"]
  node_scraper["Scraper<br/>[scrape.mjs]"]
  node_screen_filter["Screening Filter<br/>[scrape.mjs]"]
  node_browser["Headless Chrome<br/>[scrape.mjs]"]
end

subgraph group_analysis["Seat Analysis"]
  node_seat_reader["Seat Map Reader<br/>[scrape.mjs]"]
  node_seat_metrics["Seat Metrics<br/>[scrape.mjs]"]
  node_verification["Pipeline Verification<br/>[scrape.mjs]"]
end

subgraph group_delivery["Site and Alerts"]
  node_published_data[("Published Results<br/>[data.json]")]
  node_site["Availability Site<br/>[index.html]"]
  node_notifier["Alert Notifier<br/>[notify.mjs]"]
end

node_viewer(("Site Visitor"))
node_kinepolis_feed{{"Showtime API"}}
node_booking{{"Vista Booking"}}
node_telegram{{"Telegram"}}

node_scraper -->|"fetches shows"| node_kinepolis_feed
node_scraper -->|"filters screenings"| node_screen_filter
node_scraper -->|"starts browser"| node_browser
node_browser -->|"opens seat map"| node_booking
node_scraper -->|"reads map"| node_seat_reader
node_seat_reader -->|"provides seats"| node_seat_metrics
node_scraper -->|"verifies detection"| node_verification
node_scraper -->|"writes results"| node_published_data
node_published_data -->|"renders results"| node_site
node_viewer -->|"views availability"| node_site
node_notifier -->|"reads results"| node_published_data
node_notifier -->|"sends alerts"| node_telegram

click node_scraper "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_screen_filter "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_browser "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_seat_reader "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_seat_metrics "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_verification "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs"
click node_published_data "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/data.json"
click node_site "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/index.html"
click node_notifier "https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/notify.mjs"

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_scraper,node_screen_filter,node_browser toneBlue
class node_seat_reader,node_seat_metrics,node_verification toneAmber
class node_published_data,node_site,node_notifier,node_kinepolis_feed toneMint
class node_viewer,node_booking,node_telegram toneIndigo
```

## Components

### Show Collection

- [Scraper](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`
- [Screening Filter](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`
- [Headless Chrome](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`

### Seat Analysis

- [Seat Map Reader](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`
- [Seat Metrics](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`
- [Pipeline Verification](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/scrape.mjs): `scrape.mjs`

### Site and Alerts

- [Published Results](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/data.json): `data.json`
- [Availability Site](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/index.html): `index.html`
- [Alert Notifier](https://github.com/riccardocalabrese/odyssey-imax-brussels/blob/main/notify.mjs): `notify.mjs`

### Other components

- **Site Visitor**
- **Showtime API**
- **Vista Booking**
- **Telegram**

## Connections

- Scraper → Showtime API: fetches shows (evidence: `README.md`)
- Scraper → Screening Filter: filters screenings (evidence: `README.md`)
- Scraper → Headless Chrome: starts browser (evidence: `scrape.mjs`)
- Headless Chrome → Vista Booking: opens seat map (evidence: `README.md`)
- Scraper → Seat Map Reader: reads map (evidence: `scrape.mjs`)
- Seat Map Reader → Seat Metrics: provides seats (evidence: `scrape.mjs`)
- Scraper → Pipeline Verification: verifies detection (evidence: `scrape.mjs`)
- Scraper → Published Results: writes results (evidence: `scrape.mjs`)
- Published Results → Availability Site: renders results (evidence: `README.md`)
- Site Visitor → Availability Site: views availability (evidence: `README.md`)
- Alert Notifier → Published Results: reads results (evidence: `notify.mjs`)
- Alert Notifier → Telegram: sends alerts (evidence: `notify.mjs`)
