# harshverma3105006-ux/-bestfriends architecture

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

- Interactive diagram: https://gitdiagram.com/harshverma3105006-ux/-bestfriends
- Repository: https://github.com/harshverma3105006-ux/-bestfriends

## Overview

This is a friendship-surprise website with two runtime forms: a React/Vite experience and a zero-build standalone version. The principal journey moves from the mystery intro through warning, interactive friendship cards, quiz, and final gift/message; the React app owns screen routing and restart behavior. Separate capabilities include the starfield, optional music and sound effects, customization data, and a deployment/share guide. The standalone script is listed as read but not excerpted, so its internal behavior and connections are not mapped.

Main entry points: [`src/App.tsx`](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/App.tsx) (Screen Router), [`src/components/ScreenWarning.tsx`](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenWarning.tsx) (Funny Warning), [`src/components/ScreenFriendshipCards.tsx`](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenFriendshipCards.tsx) (Friendship Cards), [`src/components/ScreenQuiz.tsx`](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenQuiz.tsx) (Friendship Quiz)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Surprise Journey"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_router["Screen Router<br/>[App.tsx]"]
  node_intro["Mystery Intro"]
  node_warning["Funny Warning<br/>[ScreenWarning.tsx]"]
  node_cards["Friendship Cards"]
  node_quiz["Friendship Quiz<br/>[ScreenQuiz.tsx]"]
  node_reveal["Gift Reveal"]
end

subgraph group_support["Experience Support"]
  node_stars["Starfield"]
  node_player["Audio Controls<br/>[AudioPlayer.tsx]"]
  node_audio["Audio Engine<br/>[audio.ts]"]
  node_content["Surprise Content<br/>[config.ts]"]
  node_deploy["Deploy Guide<br/>[DeployModal.tsx]"]
end

subgraph group_delivery["Alternate Delivery"]
  node_standalone["Standalone Site<br/>[script.js]"]
end

node_visitor(("Friend"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_intro
node_router -->|"routes to"| node_warning
node_router -->|"routes to"| node_cards
node_router -->|"routes to"| node_quiz
node_router -->|"routes to"| node_reveal
node_router -->|"renders"| node_stars
node_router -->|"renders"| node_player
node_router -->|"renders"| node_deploy
node_intro -->|"advances to"| node_warning
node_warning -->|"advances to"| node_cards
node_cards -->|"advances to"| node_quiz
node_quiz -->|"advances to"| node_reveal
node_intro -->|"reads content"| node_content
node_warning -->|"reads content"| node_content
node_cards -->|"reads content"| node_content
node_quiz -->|"reads content"| node_content
node_player -->|"reads settings"| node_content
node_player -->|"controls"| node_audio
node_intro -->|"plays effects"| node_audio
node_warning -->|"plays effects"| node_audio
node_cards -->|"plays effects"| node_audio
node_quiz -->|"plays effects"| node_audio
node_visitor -->|"opens instead"| node_standalone

click node_entry "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/main.tsx"
click node_router "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/App.tsx"
click node_intro "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenMysteryIntro.tsx"
click node_warning "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenWarning.tsx"
click node_cards "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenFriendshipCards.tsx"
click node_quiz "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenQuiz.tsx"
click node_reveal "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenSecretReveal.tsx"
click node_stars "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/BackgroundStars.tsx"
click node_player "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/AudioPlayer.tsx"
click node_audio "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/utils/audio.ts"
click node_content "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/config.ts"
click node_deploy "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/DeployModal.tsx"
click node_standalone "https://github.com/harshverma3105006-ux/-bestfriends/blob/main/standalone/script.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_entry,node_router,node_intro,node_warning,node_cards,node_quiz,node_reveal toneBlue
class node_stars,node_player,node_audio,node_content,node_deploy toneAmber
class node_standalone toneMint
class node_visitor toneIndigo
```

## Components

### Surprise Journey

- [React Entry](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/main.tsx): `src/main.tsx`
- [Screen Router](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/App.tsx): `src/App.tsx`
- [Mystery Intro](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenMysteryIntro.tsx): `src/components/ScreenMysteryIntro.tsx`
- [Funny Warning](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenWarning.tsx): `src/components/ScreenWarning.tsx`
- [Friendship Cards](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenFriendshipCards.tsx): `src/components/ScreenFriendshipCards.tsx`
- [Friendship Quiz](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenQuiz.tsx): `src/components/ScreenQuiz.tsx`
- [Gift Reveal](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/ScreenSecretReveal.tsx): `src/components/ScreenSecretReveal.tsx`

### Experience Support

- [Starfield](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/BackgroundStars.tsx): `src/components/BackgroundStars.tsx`
- [Audio Controls](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/AudioPlayer.tsx): `src/components/AudioPlayer.tsx`
- [Audio Engine](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/utils/audio.ts): `src/utils/audio.ts`
- [Surprise Content](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/config.ts): `src/config.ts`
- [Deploy Guide](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/src/components/DeployModal.tsx): `src/components/DeployModal.tsx`

### Alternate Delivery

- [Standalone Site](https://github.com/harshverma3105006-ux/-bestfriends/blob/main/standalone/script.js): `standalone/script.js`

### Other components

- **Friend**

## Connections

- Friend → React Entry: opens (evidence: `README.md`)
- React Entry → Screen Router: renders (evidence: `src/main.tsx`)
- Screen Router → Mystery Intro: routes to (evidence: `src/App.tsx`)
- Screen Router → Funny Warning: routes to (evidence: `src/App.tsx`)
- Screen Router → Friendship Cards: routes to (evidence: `src/App.tsx`)
- Screen Router → Friendship Quiz: routes to (evidence: `src/App.tsx`)
- Screen Router → Gift Reveal: routes to (evidence: `src/App.tsx`)
- Screen Router → Starfield: renders (evidence: `src/App.tsx`)
- Screen Router → Audio Controls: renders (evidence: `src/App.tsx`)
- Screen Router → Deploy Guide: renders (evidence: `src/App.tsx`)
- Mystery Intro → Funny Warning: advances to (evidence: `src/App.tsx`)
- Funny Warning → Friendship Cards: advances to (evidence: `src/App.tsx`)
- Friendship Cards → Friendship Quiz: advances to (evidence: `src/App.tsx`)
- Friendship Quiz → Gift Reveal: advances to (evidence: `src/App.tsx`)
- Mystery Intro → Surprise Content: reads content (evidence: `src/components/ScreenMysteryIntro.tsx`)
- Funny Warning → Surprise Content: reads content (evidence: `src/components/ScreenWarning.tsx`)
- Friendship Cards → Surprise Content: reads content (evidence: `src/components/ScreenFriendshipCards.tsx`)
- Friendship Quiz → Surprise Content: reads content (evidence: `src/components/ScreenQuiz.tsx`)
- Audio Controls → Surprise Content: reads settings (evidence: `src/components/AudioPlayer.tsx`)
- Audio Controls → Audio Engine: controls (evidence: `src/components/AudioPlayer.tsx`)
- Mystery Intro → Audio Engine: plays effects (evidence: `src/components/ScreenMysteryIntro.tsx`)
- Funny Warning → Audio Engine: plays effects (evidence: `src/components/ScreenWarning.tsx`)
- Friendship Cards → Audio Engine: plays effects (evidence: `src/components/ScreenFriendshipCards.tsx`)
- Friendship Quiz → Audio Engine: plays effects (evidence: `src/components/ScreenQuiz.tsx`)
- Friend → Standalone Site: opens instead (evidence: `README.md`)
