# nitishratre45/criczonetv architecture

> Architecture diagram of the GitHub repository nitishratre45/criczonetv, 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/criczonetv
- Repository: https://github.com/nitishratre45/criczonetv

## Overview

This repository exposes API handlers that proxy configured primary and fallback sources, plus two HTML entry points whose behavior is not shown in the supplied excerpts. The combined handler tries the primary source and then the fallback; the standalone handlers return data from one source each. No README or HTML excerpts were provided, so the pages’ capabilities and connections cannot be established here.

Main entry points: [`api/jtv.js`](https://github.com/nitishratre45/criczonetv/blob/main/api/jtv.js) (Failover handler), [`api/primary.js`](https://github.com/nitishratre45/criczonetv/blob/main/api/primary.js) (Primary handler), [`api/fallback.js`](https://github.com/nitishratre45/criczonetv/blob/main/api/fallback.js) (Fallback handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API proxies"]
  node_jtv["Failover handler<br/>[jtv.js]"]
  node_primary["Primary handler<br/>[primary.js]"]
  node_fallback["Fallback handler<br/>[fallback.js]"]
end

subgraph group_pages["Web pages"]
  node_root_page["Root page<br/>[index.html]"]
  node_criczone_page["Criczone page<br/>[index.html]"]
end

node_client(("API client"))
node_primary_source["Primary source"]
node_fallback_source["Fallback source"]

node_client -->|"requests"| node_jtv
node_client -->|"requests"| node_primary
node_client -->|"requests"| node_fallback
node_jtv -->|"fetches first"| node_primary_source
node_jtv -->|"fetches on failure"| node_fallback_source
node_primary -->|"fetches"| node_primary_source
node_fallback -->|"fetches"| node_fallback_source

click node_jtv "https://github.com/nitishratre45/criczonetv/blob/main/api/jtv.js"
click node_primary "https://github.com/nitishratre45/criczonetv/blob/main/api/primary.js"
click node_fallback "https://github.com/nitishratre45/criczonetv/blob/main/api/fallback.js"
click node_root_page "https://github.com/nitishratre45/criczonetv/blob/main/index.html"
click node_criczone_page "https://github.com/nitishratre45/criczonetv/blob/main/criczonetv/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_jtv,node_primary,node_fallback,node_client toneBlue
class node_root_page,node_criczone_page toneAmber
class node_primary_source,node_fallback_source toneIndigo
```

## Components

### API proxies

- [Failover handler](https://github.com/nitishratre45/criczonetv/blob/main/api/jtv.js): `api/jtv.js`
- [Primary handler](https://github.com/nitishratre45/criczonetv/blob/main/api/primary.js): `api/primary.js`
- [Fallback handler](https://github.com/nitishratre45/criczonetv/blob/main/api/fallback.js): `api/fallback.js`

### Web pages

- [Root page](https://github.com/nitishratre45/criczonetv/blob/main/index.html): `index.html`
- [Criczone page](https://github.com/nitishratre45/criczonetv/blob/main/criczonetv/index.html): `criczonetv/index.html`

### Other components

- **API client**
- **Primary source**
- **Fallback source**

## Connections

- API client → Failover handler: requests (evidence: `api/jtv.js`)
- API client → Primary handler: requests (evidence: `api/primary.js`)
- API client → Fallback handler: requests (evidence: `api/fallback.js`)
- Failover handler → Primary source: fetches first (evidence: `api/jtv.js`)
- Failover handler → Fallback source: fetches on failure (evidence: `api/jtv.js`)
- Primary handler → Primary source: fetches (evidence: `api/primary.js`)
- Fallback handler → Fallback source: fetches (evidence: `api/fallback.js`)
