# codewithpdada/sanatan-sewa architecture

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

- Interactive diagram: https://gitdiagram.com/codewithpdada/sanatan-sewa
- Repository: https://github.com/codewithpdada/sanatan-sewa

## Overview

Sanatan Sewa is a devotional website whose main workflow lets a visitor choose a deity, see featured devotional content, and play a matching bhajan. The player also supports playlist selection, track navigation, volume, and automatic advance; the README additionally describes Aarti schedules and devotional articles. The map separates the page, interaction logic, and media/presentation assets. The sampled JavaScript shows player and deity-selection behavior; schedule and article implementation details are not shown, so those are represented only as documented page capabilities.

Main entry points: [`js/script.js`](https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js) (Audio player), [`index.html`](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html) (Website page), [`audio`](https://github.com/codewithpdada/sanatan-sewa/tree/main/audio) (Audio tracks), [`css/style.css`](https://github.com/codewithpdada/sanatan-sewa/blob/main/css/style.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Devotional page"]
  node_page["Website page<br/>[index.html]"]
  node_hero["Hero quotes<br/>[index.html]"]
  node_aarti["Aarti schedule<br/>[index.html]"]
  node_articles["Devotional articles<br/>[index.html]"]
  node_visualizer["Player visualizer<br/>[index.html]"]
end

subgraph group_interaction["Interactive features"]
  node_deity["Deity selection<br/>[script.js]"]
  node_player["Audio player<br/>[script.js]"]
  node_playlist["Bhajan playlist<br/>[script.js]"]
  node_trackdata["Track data<br/>[script.js]"]
end

subgraph group_assets["Media and styling"]
  node_audio["Audio tracks"]
  node_styles["Responsive styling<br/>[style.css]"]
  node_deitymedia["Deity media"]
  node_video["Video asset"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_page
node_page -->|"hosts interactions"| node_deity
node_deity -->|"updates"| node_hero
node_deity -->|"starts matching track"| node_player
node_page -->|"presents"| node_aarti
node_page -->|"presents"| node_articles
node_player -->|"renders"| node_playlist
node_playlist -->|"selects track"| node_player
node_player -->|"reads"| node_trackdata
node_player -->|"plays"| node_audio
node_player -->|"toggles animation"| node_visualizer
node_page -->|"uses theme"| node_styles
node_hero -.->|"shows imagery"| node_deitymedia
node_hero -.->|"may show video"| node_video

click node_page "https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html"
click node_deity "https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js"
click node_hero "https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html"
click node_aarti "https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html"
click node_articles "https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html"
click node_player "https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js"
click node_playlist "https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js"
click node_trackdata "https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js"
click node_audio "https://github.com/codewithpdada/sanatan-sewa/tree/main/audio"
click node_visualizer "https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html"
click node_styles "https://github.com/codewithpdada/sanatan-sewa/blob/main/css/style.css"
click node_deitymedia "https://github.com/codewithpdada/sanatan-sewa/tree/main/images"
click node_video "https://github.com/codewithpdada/sanatan-sewa/tree/main/videos"

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_hero,node_aarti,node_articles,node_visualizer toneBlue
class node_deity,node_player,node_playlist,node_trackdata toneAmber
class node_audio,node_styles,node_deitymedia,node_video toneMint
class node_visitor toneIndigo
```

## Components

### Devotional page

- [Website page](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html): `index.html`
- [Hero quotes](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html): `index.html`
- [Aarti schedule](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html): `index.html`
- [Devotional articles](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html): `index.html`
- [Player visualizer](https://github.com/codewithpdada/sanatan-sewa/blob/main/index.html): `index.html`

### Interactive features

- [Deity selection](https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js): `js/script.js`
- [Audio player](https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js): `js/script.js`
- [Bhajan playlist](https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js): `js/script.js`
- [Track data](https://github.com/codewithpdada/sanatan-sewa/blob/main/js/script.js): `js/script.js`

### Media and styling

- [Audio tracks](https://github.com/codewithpdada/sanatan-sewa/tree/main/audio): `audio`
- [Responsive styling](https://github.com/codewithpdada/sanatan-sewa/blob/main/css/style.css): `css/style.css`
- [Deity media](https://github.com/codewithpdada/sanatan-sewa/tree/main/images): `images`
- [Video asset](https://github.com/codewithpdada/sanatan-sewa/tree/main/videos): `videos`

### Other components

- **Visitor**

## Connections

- Visitor → Website page: uses (evidence: `README.md`)
- Website page → Deity selection: hosts interactions (evidence: `README.md`)
- Deity selection → Hero quotes: updates (evidence: `js/script.js`)
- Deity selection → Audio player: starts matching track (evidence: `js/script.js`)
- Website page → Aarti schedule: presents (evidence: `README.md`)
- Website page → Devotional articles: presents (evidence: `README.md`)
- Audio player → Bhajan playlist: renders (evidence: `js/script.js`)
- Bhajan playlist → Audio player: selects track (evidence: `js/script.js`)
- Audio player → Track data: reads (evidence: `js/script.js`)
- Audio player → Audio tracks: plays (evidence: `js/script.js`)
- Audio player → Player visualizer: toggles animation (evidence: `js/script.js`)
- Website page → Responsive styling: uses theme (evidence: `README.md`)
- Hero quotes → Deity media: shows imagery
- Hero quotes → Video asset: may show video
