# itsunny01-code/samay-raina-ott architecture

> Architecture diagram of the GitHub repository itsunny01-code/samay-raina-ott, 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/itsunny01-code/samay-raina-ott
- Repository: https://github.com/itsunny01-code/samay-raina-ott

## Overview

This repository is a static Streamit streaming-site template, not a streaming service backend. A visitor opens the site and interacts with its page; client-side scripts provide sliders, settings, and UI behavior. The tree also shows movie, related-content, upcoming, and watch-progress imagery. Source excerpts show settings initialization and utility use, but do not show how the HTML loads most scripts or which page features invoke the plugins, so those connections are omitted.

Main entry points: [`js/setting.js`](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting.js) (Theme settings), [`js/setting-init.js`](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting-init.js) (Settings bootstrap), [`index.html`](https://github.com/itsunny01-code/samay-raina-ott/blob/main/index.html) (Streaming site), [`js/utility.js`](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/utility.js) (DOM utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site presentation"]
  node_page["Streaming site<br/>[index.html]"]
  node_styles["Site styling<br/>[style.css]"]
  node_media["Site imagery"]
end

subgraph group_behavior["Page behavior"]
  node_site_scripts["Site interactions<br/>[streamit.js]"]
  node_sliders["Content sliders<br/>[swiper.js]"]
  node_utilities["DOM utilities<br/>[utility.js]"]
end

subgraph group_preferences["User preferences"]
  node_settings_init["Settings bootstrap<br/>[setting-init.js]"]
  node_settings["Theme settings<br/>[setting.js]"]
end

subgraph group_plugins["UI plugins"]
  node_lightbox["Media lightbox<br/>[fslightbox.js]"]
  node_countdown["Countdown display<br/>[countdown.js]"]
  node_range["Range slider<br/>[nouslider.js]"]
  node_selects["Select controls<br/>[select2.js]"]
  node_alerts["Alert examples<br/>[sweet-alert.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_page
node_settings_init -->|"initializes"| node_settings
node_settings -->|"uses DOM helpers"| node_utilities

click node_page "https://github.com/itsunny01-code/samay-raina-ott/blob/main/index.html"
click node_styles "https://github.com/itsunny01-code/samay-raina-ott/blob/main/css/style.css"
click node_media "https://github.com/itsunny01-code/samay-raina-ott/tree/main/images"
click node_site_scripts "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/streamit.js"
click node_sliders "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/swiper.js"
click node_utilities "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/utility.js"
click node_settings_init "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting-init.js"
click node_settings "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting.js"
click node_lightbox "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/fslightbox.js"
click node_countdown "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/countdown.js"
click node_range "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/nouslider.js"
click node_selects "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/select2.js"
click node_alerts "https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/sweet-alert.js"

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_page,node_styles,node_media toneBlue
class node_site_scripts,node_sliders,node_utilities toneAmber
class node_settings_init,node_settings toneMint
class node_lightbox,node_countdown,node_range,node_selects,node_alerts toneRose
class node_visitor toneIndigo
```

## Components

### Site presentation

- [Streaming site](https://github.com/itsunny01-code/samay-raina-ott/blob/main/index.html): `index.html`
- [Site styling](https://github.com/itsunny01-code/samay-raina-ott/blob/main/css/style.css): `css/style.css`
- [Site imagery](https://github.com/itsunny01-code/samay-raina-ott/tree/main/images): `images`

### Page behavior

- [Site interactions](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/streamit.js): `js/streamit.js`
- [Content sliders](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/swiper.js): `js/swiper.js`
- [DOM utilities](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/utility.js): `js/utility.js`

### User preferences

- [Settings bootstrap](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting-init.js): `js/setting-init.js`
- [Theme settings](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/setting.js): `js/setting.js`

### UI plugins

- [Media lightbox](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/fslightbox.js): `js/plugins/fslightbox.js`
- [Countdown display](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/countdown.js): `js/plugins/countdown.js`
- [Range slider](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/nouslider.js): `js/plugins/nouslider.js`
- [Select controls](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/select2.js): `js/plugins/select2.js`
- [Alert examples](https://github.com/itsunny01-code/samay-raina-ott/blob/main/js/plugins/sweet-alert.js): `js/plugins/sweet-alert.js`

### Other components

- **Visitor**

## Connections

- Visitor → Streaming site: opens (evidence: `README.md`)
- Settings bootstrap → Theme settings: initializes (evidence: `js/setting-init.js`)
- Theme settings → DOM utilities: uses DOM helpers (evidence: `js/setting.js`)
