# justchokingaround/lobster architecture

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

- Interactive diagram: https://gitdiagram.com/justchokingaround/lobster
- Repository: https://github.com/justchokingaround/lobster

## Overview

Lobster is a shell-based terminal app for finding and watching movies and TV shows. The documented main flow is a user query or discovery selection, followed by choosing a provider and playing media; options add downloads, subtitles, history, and alternate output or playback integrations. The tree and excerpts show no implementation details from `lobster.sh`, so the map represents documented capabilities at that script path rather than asserting internal call order.

Main entry points: [`lobster.sh`](https://github.com/justchokingaround/lobster/blob/main/lobster.sh) (Lobster CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI and discovery"]
  node_cli["Lobster CLI<br/>[lobster.sh]"]
  node_catalog["Search and discovery<br/>[lobster.sh]"]
  node_menus["Selection menus<br/>[lobster.sh]"]
end

subgraph group_playback["Media playback"]
  node_providers["Stream providers<br/>[lobster.sh]"]
  node_player["Media playback<br/>[lobster.sh]"]
  node_subtitles["Subtitles<br/>[lobster.sh]"]
  node_downloads["Downloads<br/>[lobster.sh]"]
end

subgraph group_state["Preferences and history"]
  node_history[("Watch history<br/>[lobster.sh]")]
  node_config["Configuration<br/>[lobster.sh]"]
  node_continue["Continue watching<br/>[lobster.sh]"]
end

subgraph group_integrations["Optional integrations"]
  node_image["Image previews<br/>[lobster.sh]"]
  node_json["JSON output<br/>[lobster.sh]"]
  node_syncplay["Syncplay"]
  node_discord["Discord presence"]
  node_external_menu["Rofi menu"]
end

node_user(("Viewer"))

node_user -->|"runs"| node_cli
node_cli -->|"searches or discovers"| node_catalog
node_catalog -->|"offers selections"| node_menus
node_cli -->|"selects provider"| node_providers
node_cli -->|"plays media"| node_player
node_cli -->|"sets language"| node_subtitles
node_cli -->|"downloads selection"| node_downloads
node_cli -->|"uses history"| node_history
node_cli -->|"continues playback"| node_continue
node_cli -->|"reads options"| node_config
node_cli -->|"enables previews"| node_image
node_cli -->|"prints links"| node_json
node_cli -->|"supports group viewing"| node_syncplay
node_cli -->|"enables presence"| node_discord
node_cli -->|"supports alternate menu"| node_external_menu

click node_cli "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_catalog "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_menus "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_providers "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_player "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_subtitles "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_downloads "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_history "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_config "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_continue "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_image "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"
click node_json "https://github.com/justchokingaround/lobster/blob/main/lobster.sh"

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_cli,node_catalog,node_menus,node_user toneBlue
class node_providers,node_player,node_subtitles,node_downloads toneAmber
class node_history,node_config,node_continue toneMint
class node_image,node_json,node_syncplay,node_discord,node_external_menu toneRose
```

## Components

### CLI and discovery

- [Lobster CLI](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Search and discovery](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Selection menus](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`

### Media playback

- [Stream providers](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Media playback](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Subtitles](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Downloads](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`

### Preferences and history

- [Watch history](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Configuration](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [Continue watching](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`

### Optional integrations

- [Image previews](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- [JSON output](https://github.com/justchokingaround/lobster/blob/main/lobster.sh): `lobster.sh`
- **Syncplay**
- **Discord presence**
- **Rofi menu**

### Other components

- **Viewer**

## Connections

- Viewer → Lobster CLI: runs (evidence: `README.md`)
- Lobster CLI → Search and discovery: searches or discovers (evidence: `README.md`)
- Search and discovery → Selection menus: offers selections (evidence: `README.md`)
- Lobster CLI → Stream providers: selects provider (evidence: `README.md`)
- Lobster CLI → Media playback: plays media (evidence: `README.md`)
- Lobster CLI → Subtitles: sets language (evidence: `README.md`)
- Lobster CLI → Downloads: downloads selection (evidence: `README.md`)
- Lobster CLI → Watch history: uses history (evidence: `README.md`)
- Lobster CLI → Continue watching: continues playback (evidence: `README.md`)
- Lobster CLI → Configuration: reads options (evidence: `README.md`)
- Lobster CLI → Image previews: enables previews (evidence: `README.md`)
- Lobster CLI → JSON output: prints links (evidence: `README.md`)
- Lobster CLI → Syncplay: supports group viewing (evidence: `README.md`)
- Lobster CLI → Discord presence: enables presence (evidence: `README.md`)
- Lobster CLI → Rofi menu: supports alternate menu (evidence: `README.md`)
