# rishabhnjadhav/local-cast architecture

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

- Interactive diagram: https://gitdiagram.com/rishabhnjadhav/local-cast
- Repository: https://github.com/rishabhnjadhav/local-cast

## Overview

Local Cast is an Android app for sharing user-selected media with devices on the same Wi-Fi network. The main workflow is selecting files, starting the local server, then browsing the library through UPnP/DLNA or an HTTP link and streaming media with seeking. The README also describes a browser-based LAN remote, appearance settings, and optional APK update checks. Only the README is available, so component paths and relationships reflect documented behavior; implementation details cannot be verified.

Main entry points: [`README.md`](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md) (HTTP library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Android app"]
  node_picker["Media selection<br/>[README.md]"]
end

subgraph group_sharing["Media sharing"]
  node_server["Local Cast server<br/>[README.md]"]
  node_library["Browsable library<br/>[README.md]"]
  node_upnp["UPnP/DLNA discovery<br/>[README.md]"]
  node_http["HTTP library<br/>[README.md]"]
  node_range["Range streaming<br/>[README.md]"]
end

subgraph group_lan["LAN access"]
  node_remote["LAN media remote<br/>[README.md]"]
  node_remote_nav["Library navigation<br/>[README.md]"]
end

subgraph group_settings["App settings"]
  node_appearance["Appearance options<br/>[README.md]"]
  node_update_settings["Update source settings<br/>[README.md]"]
  node_update_check["APK update checks<br/>[README.md]"]
end

node_user(("Phone user"))
node_player(("Compatible player"))
node_browser(("LAN browser"))
node_manifest["Release manifest"]
node_apk["APK release"]

node_user -->|"selects files"| node_picker
node_user -->|"starts sharing"| node_server
node_server -->|"serves selection"| node_library
node_player -->|"browses library"| node_upnp
node_upnp -->|"exposes"| node_library
node_player -->|"opens link"| node_http
node_browser -->|"opens link"| node_http
node_http -->|"serves listing"| node_library
node_http -->|"supports seeking"| node_range
node_range -->|"streams media"| node_player
node_browser -->|"opens remote"| node_remote
node_remote -->|"provides navigation"| node_remote_nav
node_remote_nav -->|"browses selection"| node_library
node_user -->|"chooses theme"| node_appearance
node_user -->|"configures source"| node_update_settings
node_update_settings -->|"checks updates"| node_update_check
node_update_check -->|"fetches manifest"| node_manifest
node_update_check -->|"opens newer APK"| node_apk

click node_picker "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_server "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_library "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_upnp "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_http "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_range "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_remote "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_remote_nav "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_appearance "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_update_settings "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"
click node_update_check "https://github.com/rishabhnjadhav/local-cast/blob/main/README.md"

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_picker,node_user,node_browser toneBlue
class node_server,node_library,node_upnp,node_http,node_range toneAmber
class node_remote,node_remote_nav toneMint
class node_appearance,node_update_settings,node_update_check toneRose
class node_player,node_manifest,node_apk toneIndigo
```

## Components

### Android app

- [Media selection](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`

### Media sharing

- [Local Cast server](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [Browsable library](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [UPnP/DLNA discovery](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [HTTP library](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [Range streaming](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`

### LAN access

- [LAN media remote](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [Library navigation](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`

### App settings

- [Appearance options](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [Update source settings](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`
- [APK update checks](https://github.com/rishabhnjadhav/local-cast/blob/main/README.md): `README.md`

### Other components

- **Phone user**
- **Compatible player**
- **LAN browser**
- **Release manifest**
- **APK release**

## Connections

- Phone user → Media selection: selects files (evidence: `README.md`)
- Phone user → Local Cast server: starts sharing (evidence: `README.md`)
- Local Cast server → Browsable library: serves selection (evidence: `README.md`)
- Compatible player → UPnP/DLNA discovery: browses library (evidence: `README.md`)
- UPnP/DLNA discovery → Browsable library: exposes (evidence: `README.md`)
- Compatible player → HTTP library: opens link (evidence: `README.md`)
- LAN browser → HTTP library: opens link (evidence: `README.md`)
- HTTP library → Browsable library: serves listing (evidence: `README.md`)
- HTTP library → Range streaming: supports seeking (evidence: `README.md`)
- Range streaming → Compatible player: streams media (evidence: `README.md`)
- LAN browser → LAN media remote: opens remote (evidence: `README.md`)
- LAN media remote → Library navigation: provides navigation (evidence: `README.md`)
- Library navigation → Browsable library: browses selection (evidence: `README.md`)
- Phone user → Appearance options: chooses theme (evidence: `README.md`)
- Phone user → Update source settings: configures source (evidence: `README.md`)
- Update source settings → APK update checks: checks updates (evidence: `README.md`)
- APK update checks → Release manifest: fetches manifest (evidence: `README.md`)
- APK update checks → APK release: opens newer APK (evidence: `README.md`)
