# stremio/stremio-web architecture

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

- Interactive diagram: https://gitdiagram.com/stremio/stremio-web
- Repository: https://github.com/stremio/stremio-web

## Overview

Stremio Web is the React UI for a media center: users discover addon-provided content, inspect details, and play or cast it, while library and Continue Watching data sync through the Stremio account. The UI delegates state and addon-protocol work to stremio-core; playback uses stremio-video. The graph preserves the major README capabilities and route domains. Some subsystem links are documented only at a high level; unsampled implementation details and call paths are omitted rather than inferred.

Main entry points: [`src/router/routerPaths.tsx`](https://github.com/stremio/stremio-web/blob/development/src/router/routerPaths.tsx) (Route Map), [`src/App/App.js`](https://github.com/stremio/stremio-web/blob/development/src/App/App.js) (React App), [`src/routes/Player/Player.js`](https://github.com/stremio/stremio-web/blob/development/src/routes/Player/Player.js) (Player), [`src/router/Routes.tsx`](https://github.com/stremio/stremio-web/blob/development/src/router/Routes.tsx) (Route Dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and Routing"]
  node_app["React App<br/>[App.js]"]
  node_router["Route Dispatch<br/>[Routes.tsx]"]
  node_route_map["Route Map<br/>[routerPaths.tsx]"]
end

subgraph group_content["Content Discovery"]
  node_addon_ui["Addon Catalogs<br/>[Addons.js]"]
  node_discover["Discover<br/>[Discover.js]"]
  node_search["Search<br/>[Search.js]"]
  node_details["Meta Details<br/>[MetaDetails.js]"]
  node_board["Board<br/>[Board.js]"]
end

subgraph group_account["Account Features"]
  node_library["Library<br/>[Library.js]"]
  node_calendar["Calendar<br/>[Calendar.tsx]"]
  node_settings["Settings<br/>[Settings.tsx]"]
end

subgraph group_playback["Playback"]
  node_player["Player<br/>[Player.js]"]
  node_playback_controls["Playback Controls<br/>[ControlBar.js]"]
  node_subtitles["Subtitles<br/>[SubtitlesMenu.js]"]
  node_cast["Chromecast<br/>[Chromecast.js]"]
end

subgraph group_runtime["Core and Integrations"]
  node_core_bridge["Core Transport<br/>[createTransport.ts]"]
  node_core["stremio-core"]
  node_api["Stremio API"]
  node_addons["Content Addons"]
  node_video["stremio-video"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_router
node_router -->|"matches routes"| node_route_map
node_route_map -->|"routes to"| node_discover
node_route_map -->|"routes to"| node_board
node_route_map -->|"routes to"| node_library
node_route_map -->|"routes to"| node_calendar
node_route_map -->|"routes to"| node_search
node_route_map -->|"routes to"| node_details
node_route_map -->|"routes to"| node_addon_ui
node_route_map -->|"routes to"| node_settings
node_route_map -->|"routes to"| node_player
node_app -->|"dispatches actions"| node_core_bridge
node_core_bridge -->|"exchanges state"| node_core
node_core -->|"communicates"| node_api
node_core -->|"communicates"| node_addons
node_app -->|"uses playback"| node_video
node_player -.->|"renders"| node_playback_controls
node_player -.->|"offers"| node_subtitles
node_app -->|"starts service"| node_cast

click node_app "https://github.com/stremio/stremio-web/blob/development/src/App/App.js"
click node_router "https://github.com/stremio/stremio-web/blob/development/src/router/Routes.tsx"
click node_route_map "https://github.com/stremio/stremio-web/blob/development/src/router/routerPaths.tsx"
click node_addon_ui "https://github.com/stremio/stremio-web/blob/development/src/routes/Addons/Addons.js"
click node_discover "https://github.com/stremio/stremio-web/blob/development/src/routes/Discover/Discover.js"
click node_search "https://github.com/stremio/stremio-web/blob/development/src/routes/Search/Search.js"
click node_details "https://github.com/stremio/stremio-web/blob/development/src/routes/MetaDetails/MetaDetails.js"
click node_board "https://github.com/stremio/stremio-web/blob/development/src/routes/Board/Board.js"
click node_library "https://github.com/stremio/stremio-web/blob/development/src/routes/Library/Library.js"
click node_calendar "https://github.com/stremio/stremio-web/blob/development/src/routes/Calendar/Calendar.tsx"
click node_settings "https://github.com/stremio/stremio-web/blob/development/src/routes/Settings/Settings.tsx"
click node_player "https://github.com/stremio/stremio-web/blob/development/src/routes/Player/Player.js"
click node_playback_controls "https://github.com/stremio/stremio-web/blob/development/src/routes/Player/ControlBar/ControlBar.js"
click node_subtitles "https://github.com/stremio/stremio-web/blob/development/src/routes/Player/SubtitlesMenu/SubtitlesMenu.js"
click node_cast "https://github.com/stremio/stremio-web/blob/development/src/services/Chromecast/Chromecast.js"
click node_core_bridge "https://github.com/stremio/stremio-web/blob/development/src/core/createTransport.ts"

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_app,node_router,node_route_map,node_user toneBlue
class node_addon_ui,node_discover,node_search,node_details,node_board toneAmber
class node_library,node_calendar,node_settings toneMint
class node_player,node_playback_controls,node_subtitles,node_cast toneRose
class node_core_bridge,node_core,node_api,node_addons,node_video toneIndigo
```

## Components

### App and Routing

- [React App](https://github.com/stremio/stremio-web/blob/development/src/App/App.js): `src/App/App.js`
- [Route Dispatch](https://github.com/stremio/stremio-web/blob/development/src/router/Routes.tsx): `src/router/Routes.tsx`
- [Route Map](https://github.com/stremio/stremio-web/blob/development/src/router/routerPaths.tsx): `src/router/routerPaths.tsx`

### Content Discovery

- [Addon Catalogs](https://github.com/stremio/stremio-web/blob/development/src/routes/Addons/Addons.js): `src/routes/Addons/Addons.js`
- [Discover](https://github.com/stremio/stremio-web/blob/development/src/routes/Discover/Discover.js): `src/routes/Discover/Discover.js`
- [Search](https://github.com/stremio/stremio-web/blob/development/src/routes/Search/Search.js): `src/routes/Search/Search.js`
- [Meta Details](https://github.com/stremio/stremio-web/blob/development/src/routes/MetaDetails/MetaDetails.js): `src/routes/MetaDetails/MetaDetails.js`
- [Board](https://github.com/stremio/stremio-web/blob/development/src/routes/Board/Board.js): `src/routes/Board/Board.js`

### Account Features

- [Library](https://github.com/stremio/stremio-web/blob/development/src/routes/Library/Library.js): `src/routes/Library/Library.js`
- [Calendar](https://github.com/stremio/stremio-web/blob/development/src/routes/Calendar/Calendar.tsx): `src/routes/Calendar/Calendar.tsx`
- [Settings](https://github.com/stremio/stremio-web/blob/development/src/routes/Settings/Settings.tsx): `src/routes/Settings/Settings.tsx`

### Playback

- [Player](https://github.com/stremio/stremio-web/blob/development/src/routes/Player/Player.js): `src/routes/Player/Player.js`
- [Playback Controls](https://github.com/stremio/stremio-web/blob/development/src/routes/Player/ControlBar/ControlBar.js): `src/routes/Player/ControlBar/ControlBar.js`
- [Subtitles](https://github.com/stremio/stremio-web/blob/development/src/routes/Player/SubtitlesMenu/SubtitlesMenu.js): `src/routes/Player/SubtitlesMenu/SubtitlesMenu.js`
- [Chromecast](https://github.com/stremio/stremio-web/blob/development/src/services/Chromecast/Chromecast.js): `src/services/Chromecast/Chromecast.js`

### Core and Integrations

- [Core Transport](https://github.com/stremio/stremio-web/blob/development/src/core/createTransport.ts): `src/core/createTransport.ts`
- **stremio-core**
- **Stremio API**
- **Content Addons**
- **stremio-video**

### Other components

- **User**

## Connections

- User → React App: uses (evidence: `README.md`)
- React App → Route Dispatch: renders (evidence: `src/App/App.js`)
- Route Dispatch → Route Map: matches routes (evidence: `src/router/Routes.tsx`)
- Route Map → Discover: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Board: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Library: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Calendar: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Search: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Meta Details: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Addon Catalogs: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Settings: routes to (evidence: `src/router/routerPaths.tsx`)
- Route Map → Player: routes to (evidence: `src/router/routerPaths.tsx`)
- React App → Core Transport: dispatches actions (evidence: `src/App/App.js`)
- Core Transport → stremio-core: exchanges state (evidence: `README.md`)
- stremio-core → Stremio API: communicates (evidence: `README.md`)
- stremio-core → Content Addons: communicates (evidence: `README.md`)
- React App → stremio-video: uses playback (evidence: `README.md`)
- Player → Playback Controls: renders
- Player → Subtitles: offers
- React App → Chromecast: starts service (evidence: `src/App/App.js`)
