# irfangaming720/qyupipe architecture

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

- Interactive diagram: https://gitdiagram.com/irfangaming720/qyupipe
- Repository: https://github.com/irfangaming720/qyupipe

## Overview

QyuPipe is a lightweight third-party YouTube client for square-screen BlackBerry 10 and legacy Android devices. Its documented user flow covers searching or browsing videos, selecting a result, and playing a constrained 360p stream with optional subtitles; users can also manage local subscriptions, likes, and history. The README describes supporting search suggestions, channel views, background audio, pagination, and backup/restore. The supplied tree contains no application source files, so component paths and implementation-level call relationships cannot be verified; the graph reflects documented capabilities and relationships only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Video Discovery"]
  node_search["Search"]
  node_suggestions["Search Suggestions"]
  node_videoapi["Video Discovery API"]
  node_channel["Channel View"]
end

subgraph group_playback["Playback"]
  node_player["Video Player"]
  node_stream["Stream Selection"]
  node_proxy["Media Proxy"]
  node_subtitle["Subtitle Selection"]
  node_audio["Background Audio"]
end

subgraph group_localdata["Local Data"]
  node_sqlite[("Local SQLite Data")]
  node_pagination["Feed Pagination"]
  node_backup["Data Backup"]
end

subgraph group_client["Client Experience"]
  node_appui["App Screens"]
  node_profiles["Local Profiles"]
  node_device["Device Services"]
end

node_user(("User"))
node_youtube["YouTube Services"]
node_proxyservices["Invidious / Piped"]

node_user -->|"uses"| node_appui
node_appui -->|"opens"| node_search
node_search -->|"requests suggestions"| node_suggestions
node_suggestions -->|"queries"| node_youtube
node_search -.->|"finds videos"| node_videoapi
node_appui -->|"opens channels"| node_channel
node_appui -.->|"plays selected video"| node_player
node_player -->|"uses stream"| node_stream
node_stream -->|"routes media"| node_proxy
node_proxy -->|"fetches media"| node_proxyservices
node_player -->|"displays captions"| node_subtitle
node_player -->|"continues in background"| node_audio
node_audio -->|"holds wake lock"| node_device
node_appui -->|"manages local data"| node_sqlite
node_appui -->|"loads feed pages"| node_pagination
node_pagination -->|"reads pages"| node_sqlite
node_backup -->|"exports and imports"| node_sqlite
node_appui -->|"offers backup"| node_backup
node_appui -->|"shows profile"| node_profiles
node_appui -->|"copies video URLs"| node_device
node_videoapi -.->|"queries content"| node_youtube

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_search,node_suggestions,node_videoapi,node_channel,node_user toneBlue
class node_player,node_stream,node_proxy,node_subtitle,node_audio toneAmber
class node_sqlite,node_pagination,node_backup toneMint
class node_appui,node_profiles,node_device toneRose
class node_youtube,node_proxyservices toneIndigo
```

## Components

### Video Discovery

- **Search**
- **Search Suggestions**
- **Video Discovery API**
- **Channel View**

### Playback

- **Video Player**
- **Stream Selection**
- **Media Proxy**
- **Subtitle Selection**
- **Background Audio**

### Local Data

- **Local SQLite Data**
- **Feed Pagination**
- **Data Backup**

### Client Experience

- **App Screens**
- **Local Profiles**
- **Device Services**

### Other components

- **User**
- **YouTube Services**
- **Invidious / Piped**

## Connections

- User → App Screens: uses (evidence: `README.md`)
- App Screens → Search: opens (evidence: `README.md`)
- Search → Search Suggestions: requests suggestions (evidence: `README.md`)
- Search Suggestions → YouTube Services: queries (evidence: `README.md`)
- Search → Video Discovery API: finds videos
- App Screens → Channel View: opens channels (evidence: `README.md`)
- App Screens → Video Player: plays selected video
- Video Player → Stream Selection: uses stream (evidence: `README.md`)
- Stream Selection → Media Proxy: routes media (evidence: `README.md`)
- Media Proxy → Invidious / Piped: fetches media (evidence: `README.md`)
- Video Player → Subtitle Selection: displays captions (evidence: `README.md`)
- Video Player → Background Audio: continues in background (evidence: `README.md`)
- Background Audio → Device Services: holds wake lock (evidence: `README.md`)
- App Screens → Local SQLite Data: manages local data (evidence: `README.md`)
- App Screens → Feed Pagination: loads feed pages (evidence: `README.md`)
- Feed Pagination → Local SQLite Data: reads pages (evidence: `README.md`)
- Data Backup → Local SQLite Data: exports and imports (evidence: `README.md`)
- App Screens → Data Backup: offers backup (evidence: `README.md`)
- App Screens → Local Profiles: shows profile (evidence: `README.md`)
- App Screens → Device Services: copies video URLs (evidence: `README.md`)
- Video Discovery API → YouTube Services: queries content
