# nitishratre45/criczone.all.rounder architecture

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

- Interactive diagram: https://gitdiagram.com/nitishratre45/criczone.all.rounder
- Repository: https://github.com/nitishratre45/criczone.all.rounder

## Overview

Criczone is a browser-based sports-streaming site, with several HTML variants and a sampled channel-player implementation. In the visible player workflow, a viewer selects a channel, passes through a Telegram prompt, and starts a live stream; the app also supports direct channel links and playback controls. A separate API proxies validated channel-feed requests, while shared theme code handles appearance preferences. HTML wiring and the relationship between the feed API and the page variants are not shown, so those connections are omitted.

Main entry points: [`criczone5/script.js`](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js) (Live player), [`theme.js`](https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.js) (Theme controller), [`api/channels.js`](https://github.com/nitishratre45/criczone.all.rounder/blob/main/api/channels.js) (Feed API), [`theme.css`](https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.css) (Theme styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_streaming["Channel streaming"]
  node_channel_ui["Channel selection<br/>[script.js]"]
  node_play_gate["Telegram prompt<br/>[script.js]"]
  node_stream_player["Live player<br/>[script.js]"]
  node_stream_sources["Stream sources"]
  node_artplayer["Artplayer"]
  node_hls["HLS playback"]
  node_criczone5_page["Criczone variant 5<br/>[index.html]"]
end

subgraph group_feeds["Channel feeds"]
  node_channel_api["Feed API<br/>[channels.js]"]
  node_feed_sources["Upstream feeds"]
end

subgraph group_appearance["Appearance"]
  node_theme_logic["Theme controller<br/>[theme.js]"]
  node_theme_storage[("Theme preference")]
  node_site_theme["Theme styles<br/>[theme.css]"]
end

node_viewer(("Viewer"))
node_site_pages["Site pages<br/>[index.html]"]
node_criczone_page["Criczone page<br/>[index.html]"]
node_criczone1_page["Criczone variant 1<br/>[index.html]"]
node_criczone2_page["Criczone variant 2<br/>[index.html]"]
node_criczone3_page["Criczone variant 3<br/>[index.html]"]
node_criczone4_page["Criczone variant 4<br/>[index.html]"]

node_viewer -->|"selects channel"| node_channel_ui
node_channel_ui -->|"opens prompt"| node_play_gate
node_play_gate -->|"starts stream"| node_stream_player
node_stream_player -->|"loads URL"| node_stream_sources
node_stream_player -->|"configures player"| node_artplayer
node_stream_player -->|"loads HLS"| node_hls
node_viewer -.->|"requests feed"| node_channel_api
node_channel_api -->|"fetches feed"| node_feed_sources
node_theme_logic -->|"reads and writes"| node_theme_storage
node_theme_logic -.->|"sets theme"| node_site_theme
node_viewer -->|"changes theme"| node_theme_logic

click node_channel_ui "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js"
click node_play_gate "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js"
click node_stream_player "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js"
click node_channel_api "https://github.com/nitishratre45/criczone.all.rounder/blob/main/api/channels.js"
click node_theme_logic "https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.js"
click node_site_theme "https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.css"
click node_site_pages "https://github.com/nitishratre45/criczone.all.rounder/blob/main/index.html"
click node_criczone_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone/index.html"
click node_criczone1_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone1/index.html"
click node_criczone2_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone2/index.html"
click node_criczone3_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone3/index.html"
click node_criczone4_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone4/index.html"
click node_criczone5_page "https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/index.html"

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_channel_ui,node_play_gate,node_stream_player,node_stream_sources,node_artplayer,node_hls,node_criczone5_page,node_viewer toneBlue
class node_channel_api,node_feed_sources toneAmber
class node_theme_logic,node_theme_storage,node_site_theme toneMint
class node_site_pages,node_criczone_page,node_criczone1_page,node_criczone2_page,node_criczone3_page,node_criczone4_page toneTeal
```

## Components

### Channel streaming

- [Channel selection](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js): `criczone5/script.js`
- [Telegram prompt](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js): `criczone5/script.js`
- [Live player](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/script.js): `criczone5/script.js`
- **Stream sources**
- **Artplayer**
- **HLS playback**
- [Criczone variant 5](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone5/index.html): `criczone5/index.html`

### Channel feeds

- [Feed API](https://github.com/nitishratre45/criczone.all.rounder/blob/main/api/channels.js): `api/channels.js`
- **Upstream feeds**

### Appearance

- [Theme controller](https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.js): `theme.js`
- **Theme preference**
- [Theme styles](https://github.com/nitishratre45/criczone.all.rounder/blob/main/theme.css): `theme.css`

### Other components

- **Viewer**
- [Site pages](https://github.com/nitishratre45/criczone.all.rounder/blob/main/index.html): `index.html`
- [Criczone page](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone/index.html): `criczone/index.html`
- [Criczone variant 1](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone1/index.html): `criczone1/index.html`
- [Criczone variant 2](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone2/index.html): `criczone2/index.html`
- [Criczone variant 3](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone3/index.html): `criczone3/index.html`
- [Criczone variant 4](https://github.com/nitishratre45/criczone.all.rounder/blob/main/criczone4/index.html): `criczone4/index.html`

## Connections

- Viewer → Channel selection: selects channel (evidence: `criczone5/script.js`)
- Channel selection → Telegram prompt: opens prompt (evidence: `criczone5/script.js`)
- Telegram prompt → Live player: starts stream (evidence: `criczone5/script.js`)
- Live player → Stream sources: loads URL (evidence: `criczone5/script.js`)
- Live player → Artplayer: configures player (evidence: `criczone5/script.js`)
- Live player → HLS playback: loads HLS (evidence: `criczone5/script.js`)
- Viewer → Feed API: requests feed
- Feed API → Upstream feeds: fetches feed (evidence: `api/channels.js`)
- Theme controller → Theme preference: reads and writes (evidence: `theme.js`)
- Theme controller → Theme styles: sets theme
- Viewer → Theme controller: changes theme (evidence: `theme.js`)
