# vyshalib2008-ui/vyshali-bhoomigari architecture

> Architecture diagram of the GitHub repository vyshalib2008-ui/vyshali-bhoomigari, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vyshalib2008-ui/vyshali-bhoomigari
- Repository: https://github.com/vyshalib2008-ui/vyshali-bhoomigari

## Overview

#### Purpose and runtime
This is a Vite-powered React/TypeScript single-page experience, apparently designed as an interactive birthday/memory-letter presentation. It runs entirely in the browser; no backend, API client, server code, or persistent datastore is present. Core startup files are `src/main.tsx`, `src/App.tsx`, and `vite.config.ts`.

#### Application composition
`src/App.tsx` is the page-level orchestrator. It composes a linear sequence of themed sections into one scrollable experience and is the primary control boundary between the application shell and individual content/interaction modules. Shared styling is loaded through `src/index.css`.

#### Narrative section stages
The main user flow is organized as independently rendered presentation stages:
- Opening/arrival: `src/components/HeroSection.tsx`, `src/components/ArrivalSection.tsx`
- Letter and private-message content: `src/components/LetterSection.tsx`, `src/components/SecretMessageSection.tsx`
- Memory and celebration content: `src/components/MuseumSection.tsx`, `src/components/ScrapbookSection.tsx`, `src/components/BirthdayRevealSection.tsx`
- Closing/social stages: `src/components/WishesSection.tsx`, `src/components/FinalHeartSection.tsx`

These components define the experience’s primary progression rather than routing or separate application pages.

#### Media and visual interaction layer
Several components provide richer browser-side interactions around the narrative:
- Audio playback is encapsulated in `src/components/AudioPlayer.tsx`.
- Image/detail viewing is isolated in `src/components/PhotoLightbox.tsx`.
- Animated or rendered background visuals are handled by `src/components/StarfieldCanvas.tsx`.
- Native sharing or clipboard-style user actions are likely centralized in `src/components/ShareButton.tsx`.

This separation keeps media, canvas rendering, and browser capability interactions outside the section composition layer.

#### Data and type boundary
`src/types.ts` is the repository’s explicit shared type boundary. Content-oriented sections likely consume locally defined or parent-provided structured data, while TypeScript enforces component contracts at build time. There is no visible domain model, external content service, or state-management subsystem in the repository tree.

#### Build and deployment boundary
Vite provides local development and static production bundling through `vite.config.ts`; dependency and runtime scripts are defined in `package.json`, with Bun lock resolution in `bun.lock`. The deployable output is expected to be static browser assets rooted at `index.html`, with optional environment values represented by `.env.example`.

#### External dependencies and infrastructure
The visible architecture depends on the React browser runtime and Vite build pipeline. Browser-provided facilities are material for canvas animation, audio, image overlays, and sharing behavior. No cloud infrastructure, authentication, analytics, database, API endpoint, or backend integration is represented in the supplied tree.

Main entry points: [`src/App.tsx`](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/App.tsx) (App shell), [`src/main.tsx`](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/main.tsx) (React bootstrap), [`src/components/AudioPlayer.tsx`](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/AudioPlayer.tsx) (Audio player), [`src/components/PhotoLightbox.tsx`](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/PhotoLightbox.tsx) (Photo lightbox)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser experience"]
  node_main["React bootstrap<br/>browser entry<br/>[main.tsx]"]
  node_app["App shell<br/>page orchestrator<br/>[App.tsx]"]
  node_styles["Shared styles<br/>CSS<br/>[index.css]"]
  node_types["Shared contracts<br/>TypeScript types<br/>[types.ts]"]
  node_browserapis(("Browser capabilities<br/>platform APIs"))
end

subgraph group_narrative["Narrative stages"]
  node_opening["Opening &amp; arrival<br/>presentation stage<br/>[HeroSection.tsx]"]
  node_letter["Letter &amp; secret<br/>presentation stage<br/>[LetterSection.tsx]"]
  node_memories["Memories &amp; celebration<br/>presentation stage<br/>[MuseumSection.tsx]"]
  node_closing["Wishes &amp; closing<br/>presentation stage<br/>[WishesSection.tsx]"]
end

subgraph group_interaction["Media interactions"]
  node_audio["Audio player<br/>media component<br/>[AudioPlayer.tsx]"]
  node_lightbox["Photo lightbox<br/>image overlay<br/>[PhotoLightbox.tsx]"]
  node_starfield["Starfield canvas<br/>canvas renderer"]
  node_share["Share button<br/>browser action<br/>[ShareButton.tsx]"]
end

subgraph group_build["Build &amp; delivery"]
  node_vite{{"Vite toolchain<br/>build tool<br/>[vite.config.ts]"}}
  node_package["Package scripts<br/>package manifest<br/>[package.json]"]
  node_html["HTML entry<br/>static entry<br/>[index.html]"]
end

node_package -->|"runs"| node_vite
node_vite -->|"serves and bundles"| node_html
node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_main -->|"loads"| node_styles
node_app -.->|"uses"| node_types
node_app -->|"composes"| node_opening
node_app -->|"composes"| node_letter
node_app -->|"composes"| node_memories
node_app -->|"composes"| node_closing
node_app -->|"includes"| node_audio
node_app -->|"includes"| node_lightbox
node_app -->|"includes"| node_starfield
node_app -->|"includes"| node_share
node_audio -->|"plays audio"| node_browserapis
node_lightbox -->|"renders overlays"| node_browserapis
node_starfield -->|"draws canvas"| node_browserapis
node_share -->|"shares or copies"| node_browserapis

click node_vite "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/vite.config.ts"
click node_package "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/package.json"
click node_html "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/index.html"
click node_main "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/main.tsx"
click node_app "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/App.tsx"
click node_styles "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/index.css"
click node_types "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/types.ts"
click node_opening "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/HeroSection.tsx"
click node_letter "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/LetterSection.tsx"
click node_memories "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/MuseumSection.tsx"
click node_closing "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/WishesSection.tsx"
click node_audio "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/AudioPlayer.tsx"
click node_lightbox "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/PhotoLightbox.tsx"
click node_starfield "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/StarfieldCanvas.tsx"
click node_share "https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/ShareButton.tsx"

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_main,node_app,node_styles,node_types,node_browserapis toneBlue
class node_opening,node_letter,node_memories,node_closing toneAmber
class node_audio,node_lightbox,node_starfield,node_share toneMint
class node_vite,node_package,node_html toneRose
```

## Components

### Browser experience

- [React bootstrap](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/main.tsx): browser entry · `src/main.tsx`
- [App shell](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/App.tsx): page orchestrator · Composes the linear scrollable presentation. · `src/App.tsx`
- [Shared styles](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/index.css): CSS · `src/index.css`
- [Shared contracts](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/types.ts): TypeScript types · Shared component type boundary. · `src/types.ts`
- **Browser capabilities**: platform APIs · Canvas, audio, image overlay, sharing, and clipboard facilities.

### Narrative stages

- [Opening & arrival](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/HeroSection.tsx): presentation stage · `src/components/HeroSection.tsx`
- [Letter & secret](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/LetterSection.tsx): presentation stage · `src/components/LetterSection.tsx`
- [Memories & celebration](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/MuseumSection.tsx): presentation stage · `src/components/MuseumSection.tsx`
- [Wishes & closing](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/WishesSection.tsx): presentation stage · `src/components/WishesSection.tsx`

### Media interactions

- [Audio player](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/AudioPlayer.tsx): media component · `src/components/AudioPlayer.tsx`
- [Photo lightbox](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/PhotoLightbox.tsx): image overlay · `src/components/PhotoLightbox.tsx`
- [Starfield canvas](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/StarfieldCanvas.tsx): canvas renderer · `src/components/StarfieldCanvas.tsx`
- [Share button](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/src/components/ShareButton.tsx): browser action · `src/components/ShareButton.tsx`

### Build & delivery

- [Vite toolchain](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/vite.config.ts): build tool · Provides development and static production bundling. · `vite.config.ts`
- [Package scripts](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/package.json): package manifest · `package.json`
- [HTML entry](https://github.com/vyshalib2008-ui/vyshali-bhoomigari/blob/main/index.html): static entry · `index.html`

## Connections

- Package scripts → Vite toolchain: runs
- Vite toolchain → HTML entry: serves and bundles
- HTML entry → React bootstrap: loads
- React bootstrap → App shell: mounts
- React bootstrap → Shared styles: loads
- App shell → Shared contracts: uses
- App shell → Opening & arrival: composes
- App shell → Letter & secret: composes
- App shell → Memories & celebration: composes
- App shell → Wishes & closing: composes
- App shell → Audio player: includes
- App shell → Photo lightbox: includes
- App shell → Starfield canvas: includes
- App shell → Share button: includes
- Audio player → Browser capabilities: plays audio
- Photo lightbox → Browser capabilities: renders overlays
- Starfield canvas → Browser capabilities: draws canvas
- Share button → Browser capabilities: shares or copies
