# shradha-khapra/javascriptseries architecture

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

- Interactive diagram: https://gitdiagram.com/shradha-khapra/javascriptseries
- Repository: https://github.com/shradha-khapra/javascriptseries

## Overview

The repository contains three independent browser mini-apps: a currency converter, Rock–Paper–Scissors, and Tic-Tac-Toe. Each app responds to user input and presents results in its page. The excerpts show the game rules and currency-fetch behavior; the HTML files and any wiring between the currency app and its code mapping were not sampled, so those details are not inferred.

Main entry points: [`CurrencyConverter/app.js`](https://github.com/shradha-khapra/javascriptseries/blob/main/CurrencyConverter/app.js) (Conversion UI), [`StonePaperScissors/app.js`](https://github.com/shradha-khapra/javascriptseries/blob/main/StonePaperScissors/app.js) (Round and Score), [`TicTacToe/app.js`](https://github.com/shradha-khapra/javascriptseries/blob/main/TicTacToe/app.js) (Board and Game Rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_currency["Currency Converter"]
  node_converter["Conversion UI<br/>[app.js]"]
  node_currency_codes["Currency Codes<br/>[codes.js]"]
end

subgraph group_rps["Rock Paper Scissors"]
  node_rps_game["Round and Score<br/>[app.js]"]
end

subgraph group_ttt["Tic-Tac-Toe"]
  node_ttt_game["Board and Game Rules<br/>[app.js]"]
end

node_currency_user(("User"))
node_rates_api["Exchange Rates API"]
node_flags_api["Flag Image Service"]
node_rps_user(("Player"))
node_ttt_players(("Players"))

node_currency_user -->|"selects currencies"| node_converter
node_converter -->|"fetches rate"| node_rates_api
node_converter -->|"loads flags"| node_flags_api
node_rps_user -->|"chooses move"| node_rps_game
node_ttt_players -->|"marks squares"| node_ttt_game

click node_converter "https://github.com/shradha-khapra/javascriptseries/blob/main/CurrencyConverter/app.js"
click node_currency_codes "https://github.com/shradha-khapra/javascriptseries/blob/main/CurrencyConverter/codes.js"
click node_rps_game "https://github.com/shradha-khapra/javascriptseries/blob/main/StonePaperScissors/app.js"
click node_ttt_game "https://github.com/shradha-khapra/javascriptseries/blob/main/TicTacToe/app.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_converter,node_currency_codes,node_currency_user toneBlue
class node_rps_game toneAmber
class node_ttt_game,node_rates_api toneMint
class node_flags_api,node_rps_user,node_ttt_players toneIndigo
```

## Components

### Currency Converter

- [Conversion UI](https://github.com/shradha-khapra/javascriptseries/blob/main/CurrencyConverter/app.js): `CurrencyConverter/app.js`
- [Currency Codes](https://github.com/shradha-khapra/javascriptseries/blob/main/CurrencyConverter/codes.js): `CurrencyConverter/codes.js`

### Rock Paper Scissors

- [Round and Score](https://github.com/shradha-khapra/javascriptseries/blob/main/StonePaperScissors/app.js): `StonePaperScissors/app.js`

### Tic-Tac-Toe

- [Board and Game Rules](https://github.com/shradha-khapra/javascriptseries/blob/main/TicTacToe/app.js): `TicTacToe/app.js`

### Other components

- **User**
- **Exchange Rates API**
- **Flag Image Service**
- **Player**
- **Players**

## Connections

- User → Conversion UI: selects currencies (evidence: `CurrencyConverter/app.js`)
- Conversion UI → Exchange Rates API: fetches rate (evidence: `CurrencyConverter/app.js`)
- Conversion UI → Flag Image Service: loads flags (evidence: `CurrencyConverter/app.js`)
- Player → Round and Score: chooses move (evidence: `StonePaperScissors/app.js`)
- Players → Board and Game Rules: marks squares (evidence: `TicTacToe/app.js`)
