# rharshith2005/baby-hackathon- architecture

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

- Interactive diagram: https://gitdiagram.com/rharshith2005/baby-hackathon-
- Repository: https://github.com/rharshith2005/baby-hackathon-

## Overview

Pinglet is a scroll-driven character portfolio and interactive web experience. Visitors enter through the hero and explore the character dossier, mood showcase, work panels, story chapters, and footer. The work panels provide three distinct interactions: a synthesized lullaby, a packet-catching game with a celebratory particle effect, and a locally persisted wish wall. The sampled sources show the app coordinating shared mood, audio, and hello-count state; unsampled details are represented only where the README or SOURCE INDEX supports them.

Main entry points: [`src/App.tsx`](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/App.tsx) (App state), [`src/components/PingletSvg.tsx`](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/PingletSvg.tsx) (SVG character), [`src/components/WorkSection.tsx`](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/WorkSection.tsx) (Work panels), [`src/components/CatchThePackets.tsx`](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/CatchThePackets.tsx) (Packet game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio experience"]
  node_app["App state<br/>[App.tsx]"]
  node_hero["Hero section<br/>[HeroSection.tsx]"]
  node_character["Character dossier<br/>[CharacterSheet.tsx]"]
  node_moods["Mood showcase<br/>[MoodsSection.tsx]"]
  node_story["Story chapters<br/>[StorySection.tsx]"]
  node_header["Header navigation<br/>[HeaderNav.tsx]"]
  node_footer["Retro footer<br/>[FooterSection.tsx]"]
end

subgraph group_interactions["Visitor interactions"]
  node_work["Work panels<br/>[WorkSection.tsx]"]
  node_game["Packet game"]
  node_lullaby["Dial-up lullaby<br/>[DialUpLullaby.tsx]"]
  node_wish["Wish wall<br/>[WishWall.tsx]"]
  node_particles["Particle canvas"]
  node_easter["Easter egg modal<br/>[EasterEggModal.tsx]"]
end

subgraph group_runtime["Interactive runtime"]
  node_rules["Packet rules<br/>[packetRules.ts]"]
  node_physics["Particle physics<br/>[particleSystem.ts]"]
  node_audio["Audio synthesizer<br/>[audioSynth.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_pinglet3d["3D character<br/>[Pinglet3D.tsx]"]
  node_pingletsvg["SVG character<br/>[PingletSvg.tsx]"]
  node_cursor["Sparkle cursor"]
end

node_visitor(("Visitor"))
node_localstorage[("Browser local storage")]
node_browseraudio["Web Audio API"]

node_visitor -->|"opens experience"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_character
node_app -->|"renders"| node_moods
node_app -->|"renders"| node_work
node_app -->|"renders"| node_story
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_cursor
node_app -->|"opens"| node_easter
node_work -->|"renders"| node_game
node_work -->|"renders"| node_lullaby
node_work -->|"renders"| node_wish
node_work -->|"renders"| node_particles
node_game -->|"uses rules"| node_rules
node_game -->|"plays effects"| node_audio
node_game -.->|"triggers burst"| node_particles
node_particles -->|"updates particles"| node_physics
node_particles -->|"plays chime"| node_audio
node_lullaby -->|"plays tones"| node_audio
node_wish -->|"reads and writes"| node_localstorage
node_wish -->|"plays tones"| node_audio
node_app -->|"persists hello count"| node_localstorage
node_header -.->|"selects mood"| node_app
node_header -.->|"triggers secret"| node_app
node_hero -->|"renders"| node_pingletsvg
node_moods -->|"renders"| node_pingletsvg
node_character -->|"renders"| node_pingletsvg
node_story -->|"renders"| node_pingletsvg
node_wish -->|"renders"| node_pingletsvg
node_easter -->|"renders"| node_pingletsvg
node_audio -->|"synthesizes sound"| node_browseraudio
node_visitor -->|"activates controls"| node_header
node_visitor -->|"selects mood"| node_hero
node_visitor -->|"chooses pose"| node_moods
node_visitor -->|"plays game"| node_game
node_visitor -->|"plays melody"| node_lullaby
node_visitor -->|"pins hello"| node_wish
node_visitor -->|"reveals letter"| node_easter
node_hero -.->|"shows 3D model"| node_pinglet3d

click node_app "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/App.tsx"
click node_hero "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/HeroSection.tsx"
click node_character "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/CharacterSheet.tsx"
click node_moods "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/MoodsSection.tsx"
click node_story "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/StorySection.tsx"
click node_header "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/HeaderNav.tsx"
click node_footer "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/FooterSection.tsx"
click node_work "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/WorkSection.tsx"
click node_game "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/CatchThePackets.tsx"
click node_lullaby "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/DialUpLullaby.tsx"
click node_wish "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/WishWall.tsx"
click node_particles "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/DataPacketParticleCanvas.tsx"
click node_easter "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/EasterEggModal.tsx"
click node_rules "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/game/packetRules.ts"
click node_physics "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/game/particleSystem.ts"
click node_audio "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/utils/audioSynth.ts"
click node_pinglet3d "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/Pinglet3D.tsx"
click node_pingletsvg "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/PingletSvg.tsx"
click node_cursor "https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/SparkleCursorTrail.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_app,node_hero,node_character,node_moods,node_story,node_header,node_footer toneBlue
class node_work,node_game,node_lullaby,node_wish,node_particles,node_easter,node_localstorage toneAmber
class node_rules,node_physics,node_audio,node_browseraudio toneMint
class node_pinglet3d,node_pingletsvg,node_cursor toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [App state](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/App.tsx): `src/App.tsx`
- [Hero section](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [Character dossier](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/CharacterSheet.tsx): `src/components/CharacterSheet.tsx`
- [Mood showcase](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/MoodsSection.tsx): `src/components/MoodsSection.tsx`
- [Story chapters](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/StorySection.tsx): `src/components/StorySection.tsx`
- [Header navigation](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/HeaderNav.tsx): `src/components/HeaderNav.tsx`
- [Retro footer](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/FooterSection.tsx): `src/components/FooterSection.tsx`

### Visitor interactions

- [Work panels](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/WorkSection.tsx): `src/components/WorkSection.tsx`
- [Packet game](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/CatchThePackets.tsx): `src/components/CatchThePackets.tsx`
- [Dial-up lullaby](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/DialUpLullaby.tsx): `src/components/DialUpLullaby.tsx`
- [Wish wall](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/WishWall.tsx): `src/components/WishWall.tsx`
- [Particle canvas](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/DataPacketParticleCanvas.tsx): `src/components/DataPacketParticleCanvas.tsx`
- [Easter egg modal](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/EasterEggModal.tsx): `src/components/EasterEggModal.tsx`

### Interactive runtime

- [Packet rules](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/game/packetRules.ts): `src/game/packetRules.ts`
- [Particle physics](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/game/particleSystem.ts): `src/game/particleSystem.ts`
- [Audio synthesizer](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/utils/audioSynth.ts): `src/utils/audioSynth.ts`

### Shared presentation

- [3D character](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/Pinglet3D.tsx): `src/components/Pinglet3D.tsx`
- [SVG character](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/PingletSvg.tsx): `src/components/PingletSvg.tsx`
- [Sparkle cursor](https://github.com/rharshith2005/baby-hackathon-/blob/main/src/components/SparkleCursorTrail.tsx): `src/components/SparkleCursorTrail.tsx`

### Other components

- **Visitor**
- **Browser local storage**
- **Web Audio API**

## Connections

- Visitor → App state: opens experience
- App state → Header navigation: renders (evidence: `src/App.tsx`)
- App state → Hero section: renders (evidence: `src/App.tsx`)
- App state → Character dossier: renders (evidence: `src/App.tsx`)
- App state → Mood showcase: renders (evidence: `src/App.tsx`)
- App state → Work panels: renders (evidence: `src/App.tsx`)
- App state → Story chapters: renders (evidence: `src/App.tsx`)
- App state → Retro footer: renders (evidence: `src/App.tsx`)
- App state → Sparkle cursor: renders (evidence: `src/App.tsx`)
- App state → Easter egg modal: opens (evidence: `src/App.tsx`)
- Work panels → Packet game: renders (evidence: `src/components/WorkSection.tsx`)
- Work panels → Dial-up lullaby: renders (evidence: `src/components/WorkSection.tsx`)
- Work panels → Wish wall: renders (evidence: `src/components/WorkSection.tsx`)
- Work panels → Particle canvas: renders (evidence: `src/components/WorkSection.tsx`)
- Packet game → Packet rules: uses rules (evidence: `src/components/CatchThePackets.tsx`)
- Packet game → Audio synthesizer: plays effects (evidence: `src/components/CatchThePackets.tsx`)
- Packet game → Particle canvas: triggers burst
- Particle canvas → Particle physics: updates particles (evidence: `src/components/DataPacketParticleCanvas.tsx`)
- Particle canvas → Audio synthesizer: plays chime (evidence: `src/components/DataPacketParticleCanvas.tsx`)
- Dial-up lullaby → Audio synthesizer: plays tones (evidence: `src/components/DialUpLullaby.tsx`)
- Wish wall → Browser local storage: reads and writes (evidence: `src/components/WishWall.tsx`)
- Wish wall → Audio synthesizer: plays tones (evidence: `src/components/WishWall.tsx`)
- App state → Browser local storage: persists hello count (evidence: `src/App.tsx`)
- Header navigation → App state: selects mood (evidence: `src/App.tsx`)
- Header navigation → App state: triggers secret (evidence: `src/App.tsx`)
- Hero section → SVG character: renders (evidence: `src/components/HeroSection.tsx`)
- Mood showcase → SVG character: renders (evidence: `src/components/MoodsSection.tsx`)
- Character dossier → SVG character: renders (evidence: `src/components/CharacterSheet.tsx`)
- Story chapters → SVG character: renders (evidence: `src/components/StorySection.tsx`)
- Wish wall → SVG character: renders (evidence: `src/components/WishWall.tsx`)
- Easter egg modal → SVG character: renders (evidence: `src/components/EasterEggModal.tsx`)
- Audio synthesizer → Web Audio API: synthesizes sound (evidence: `README.md`)
- Visitor → Header navigation: activates controls (evidence: `README.md`)
- Visitor → Hero section: selects mood (evidence: `README.md`)
- Visitor → Mood showcase: chooses pose (evidence: `README.md`)
- Visitor → Packet game: plays game (evidence: `README.md`)
- Visitor → Dial-up lullaby: plays melody (evidence: `README.md`)
- Visitor → Wish wall: pins hello (evidence: `README.md`)
- Visitor → Easter egg modal: reveals letter (evidence: `README.md`)
- Hero section → 3D character: shows 3D model
