# kunalsambyal/frontend-archives architecture

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

- Interactive diagram: https://gitdiagram.com/kunalsambyal/frontend-archives
- Repository: https://github.com/kunalsambyal/frontend-archives

## Overview

This repository is an archive of independent frontend projects, not one application. The main user-to-result paths range from searching API-backed catalogs and viewing results to configuring a timer or interacting with browser-based games and forms. The graph preserves the documented project capabilities and the clearest internal React routing and state relationships. Several implementation files were not excerpted, so links inside those projects are omitted rather than inferred.

Main entry points: [`Games-Library/src/App.tsx`](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/App.tsx) (Games App), [`Games-Library/src/components/games/GamesGrid.tsx`](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/GamesGrid.tsx) (Game Grid), [`Pomodoro-Timer/src/App.tsx`](https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/App.tsx) (Pomodoro App), [`Masonry-Layout/src/components/ImageGrid.tsx`](https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/components/ImageGrid.tsx) (Image Grid)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_games["Games Library"]
  node_games_app["Games App<br/>[App.tsx]"]
  node_games_home["Catalog Page<br/>[Home.tsx]"]
  node_games_grid["Game Grid<br/>[GamesGrid.tsx]"]
  node_games_filter["Genre Filters<br/>[FilterOptions.tsx]"]
  node_games_card["Game Cards<br/>[GamesCard.tsx]"]
  node_games_api["Game API<br/>[api.ts]"]
  node_games_favourites["Favourites<br/>[Favourites.tsx]"]
  node_games_state["Favourite State"]
  node_games_wishlist["Wishlist<br/>[WishList.tsx]"]
  node_games_nav["Navigation<br/>[Navbar.tsx]"]
  node_games_notfound["Not Found<br/>[NotFound.tsx]"]
  node_games_boundary["Error Boundary<br/>[ErrorBoundary.tsx]"]
end

subgraph group_visual["Visual Browsing"]
  node_masonry_app["Masonry Gallery<br/>[App.tsx]"]
  node_image_grid["Image Grid<br/>[ImageGrid.tsx]"]
  node_image_card["Image Cards<br/>[ImageCard.tsx]"]
  node_image_api["Image API<br/>[imageApi.ts]"]
  node_slider["Image Carousel<br/>[script.js]"]
end

subgraph group_productivity["Productivity"]
  node_pomodoro_app["Pomodoro App<br/>[App.tsx]"]
  node_pomodoro_timer["Timer Logic<br/>[usePomodoro.ts]"]
  node_pomodoro_settings["Timer Settings<br/>[Settings.tsx]"]
  node_settings_state["Settings State"]
  node_todo["Task Tracker<br/>[script.js]"]
  node_stopwatch["Stopwatch<br/>[index.js]"]
end

subgraph group_forms["Forms"]
  node_registration_app["Registration App<br/>[App.tsx]"]
  node_register_page["Registration Page<br/>[Register.tsx]"]
  node_register_form["Registration Form<br/>[RegisterForm.tsx]"]
  node_register_hook["Form State<br/>[useRegisterForm.ts]"]
  node_validation["Field Validation<br/>[validation.ts]"]
  node_login_form["Login UI<br/>[script.js]"]
end

subgraph group_vanilla["JavaScript Apps"]
  node_github_search["Profile Search<br/>[script.js]"]
  node_pokemon["Pokémon Explorer<br/>[index.js]"]
  node_weather_app["Weather Dashboard<br/>[index.js]"]
  node_geo_api["Geocoding API<br/>[geo.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_games_app
node_games_app -->|"renders"| node_games_nav
node_games_app -->|"routes to"| node_games_home
node_games_app -->|"routes to"| node_games_favourites
node_games_app -->|"routes to"| node_games_wishlist
node_games_app -->|"routes to"| node_games_notfound
node_games_app -->|"provides"| node_games_state
node_games_app -->|"wraps"| node_games_boundary
node_games_home -.->|"uses"| node_games_grid
node_games_grid -.->|"filters"| node_games_filter
node_games_grid -.->|"renders"| node_games_card
node_games_grid -.->|"fetches games"| node_games_api
node_games_favourites -.->|"reads favourites"| node_games_state
node_visitor -->|"opens"| node_masonry_app
node_masonry_app -->|"renders"| node_image_grid
node_image_grid -.->|"renders"| node_image_card
node_image_grid -.->|"loads images"| node_image_api
node_visitor -->|"controls"| node_slider
node_visitor -->|"opens"| node_pomodoro_app
node_pomodoro_app -->|"renders"| node_pomodoro_settings
node_pomodoro_app -->|"wrapped by"| node_settings_state
node_pomodoro_timer -->|"reads settings"| node_settings_state
node_pomodoro_app -.->|"uses"| node_pomodoro_timer
node_visitor -->|"manages tasks"| node_todo
node_visitor -->|"times sessions"| node_stopwatch
node_visitor -->|"opens"| node_registration_app
node_registration_app -->|"routes to"| node_register_page
node_register_page -.->|"uses"| node_register_form
node_register_form -.->|"uses"| node_register_hook
node_register_hook -->|"validates with"| node_validation
node_visitor -->|"uses"| node_login_form
node_visitor -->|"searches profiles"| node_github_search
node_visitor -->|"searches Pokémon"| node_pokemon
node_visitor -->|"checks weather"| node_weather_app
node_weather_app -.->|"geocodes location"| node_geo_api

click node_games_app "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/App.tsx"
click node_games_home "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/Home.tsx"
click node_games_grid "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/GamesGrid.tsx"
click node_games_filter "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/FilterOptions.tsx"
click node_games_card "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/GamesCard.tsx"
click node_games_api "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/services/api.ts"
click node_games_favourites "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/Favourites.tsx"
click node_games_state "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/context/FavouritesProvider.tsx"
click node_games_wishlist "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/WishList.tsx"
click node_games_nav "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/layout/Navbar.tsx"
click node_games_notfound "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/NotFound.tsx"
click node_games_boundary "https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/common/ErrorBoundary.tsx"
click node_masonry_app "https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/App.tsx"
click node_image_grid "https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/components/ImageGrid.tsx"
click node_image_card "https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/components/ImageCard.tsx"
click node_image_api "https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/services/imageApi.ts"
click node_slider "https://github.com/kunalsambyal/frontend-archives/blob/main/Image-Slider-JS/script.js"
click node_pomodoro_app "https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/App.tsx"
click node_pomodoro_timer "https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/hooks/usePomodoro.ts"
click node_pomodoro_settings "https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/components/Settings.tsx"
click node_settings_state "https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/context/SettingsContext.tsx"
click node_todo "https://github.com/kunalsambyal/frontend-archives/blob/main/ToDOList/script.js"
click node_stopwatch "https://github.com/kunalsambyal/frontend-archives/blob/main/Stop-Watch-JS/index.js"
click node_registration_app "https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/App.tsx"
click node_register_page "https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/pages/Register.tsx"
click node_register_form "https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/components/RegisterForm.tsx"
click node_register_hook "https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/hooks/useRegisterForm.ts"
click node_validation "https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/utils/validation.ts"
click node_login_form "https://github.com/kunalsambyal/frontend-archives/blob/main/Login-Register-Form/register/script.js"
click node_github_search "https://github.com/kunalsambyal/frontend-archives/blob/main/GitHub-Profile-Searcher/script.js"
click node_pokemon "https://github.com/kunalsambyal/frontend-archives/blob/main/Pokemon-Explorer/index.js"
click node_weather_app "https://github.com/kunalsambyal/frontend-archives/blob/main/Weather-App/index.js"
click node_geo_api "https://github.com/kunalsambyal/frontend-archives/blob/main/Weather-App/api/geo.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_games_app,node_games_home,node_games_grid,node_games_filter,node_games_card,node_games_api,node_games_favourites,node_games_state,node_games_wishlist,node_games_nav,node_games_notfound,node_games_boundary toneBlue
class node_masonry_app,node_image_grid,node_image_card,node_image_api,node_slider toneAmber
class node_pomodoro_app,node_pomodoro_timer,node_pomodoro_settings,node_settings_state,node_todo,node_stopwatch toneMint
class node_registration_app,node_register_page,node_register_form,node_register_hook,node_validation,node_login_form toneRose
class node_github_search,node_pokemon,node_weather_app,node_geo_api,node_visitor toneIndigo
```

## Components

### Games Library

- [Games App](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/App.tsx): `Games-Library/src/App.tsx`
- [Catalog Page](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/Home.tsx): `Games-Library/src/pages/Home.tsx`
- [Game Grid](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/GamesGrid.tsx): `Games-Library/src/components/games/GamesGrid.tsx`
- [Genre Filters](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/FilterOptions.tsx): `Games-Library/src/components/games/FilterOptions.tsx`
- [Game Cards](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/games/GamesCard.tsx): `Games-Library/src/components/games/GamesCard.tsx`
- [Game API](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/services/api.ts): `Games-Library/src/services/api.ts`
- [Favourites](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/Favourites.tsx): `Games-Library/src/pages/Favourites.tsx`
- [Favourite State](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/context/FavouritesProvider.tsx): `Games-Library/src/context/FavouritesProvider.tsx`
- [Wishlist](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/WishList.tsx): `Games-Library/src/pages/WishList.tsx`
- [Navigation](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/layout/Navbar.tsx): `Games-Library/src/components/layout/Navbar.tsx`
- [Not Found](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/pages/NotFound.tsx): `Games-Library/src/pages/NotFound.tsx`
- [Error Boundary](https://github.com/kunalsambyal/frontend-archives/blob/main/Games-Library/src/components/common/ErrorBoundary.tsx): `Games-Library/src/components/common/ErrorBoundary.tsx`

### Visual Browsing

- [Masonry Gallery](https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/App.tsx): `Masonry-Layout/src/App.tsx`
- [Image Grid](https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/components/ImageGrid.tsx): `Masonry-Layout/src/components/ImageGrid.tsx`
- [Image Cards](https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/components/ImageCard.tsx): `Masonry-Layout/src/components/ImageCard.tsx`
- [Image API](https://github.com/kunalsambyal/frontend-archives/blob/main/Masonry-Layout/src/services/imageApi.ts): `Masonry-Layout/src/services/imageApi.ts`
- [Image Carousel](https://github.com/kunalsambyal/frontend-archives/blob/main/Image-Slider-JS/script.js): `Image-Slider-JS/script.js`

### Productivity

- [Pomodoro App](https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/App.tsx): `Pomodoro-Timer/src/App.tsx`
- [Timer Logic](https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/hooks/usePomodoro.ts): `Pomodoro-Timer/src/hooks/usePomodoro.ts`
- [Timer Settings](https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/components/Settings.tsx): `Pomodoro-Timer/src/components/Settings.tsx`
- [Settings State](https://github.com/kunalsambyal/frontend-archives/blob/main/Pomodoro-Timer/src/context/SettingsContext.tsx): `Pomodoro-Timer/src/context/SettingsContext.tsx`
- [Task Tracker](https://github.com/kunalsambyal/frontend-archives/blob/main/ToDOList/script.js): `ToDOList/script.js`
- [Stopwatch](https://github.com/kunalsambyal/frontend-archives/blob/main/Stop-Watch-JS/index.js): `Stop-Watch-JS/index.js`

### Forms

- [Registration App](https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/App.tsx): `Registration-Form-V2-/src/App.tsx`
- [Registration Page](https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/pages/Register.tsx): `Registration-Form-V2-/src/pages/Register.tsx`
- [Registration Form](https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/components/RegisterForm.tsx): `Registration-Form-V2-/src/components/RegisterForm.tsx`
- [Form State](https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/hooks/useRegisterForm.ts): `Registration-Form-V2-/src/hooks/useRegisterForm.ts`
- [Field Validation](https://github.com/kunalsambyal/frontend-archives/blob/main/Registration-Form-V2-/src/utils/validation.ts): `Registration-Form-V2-/src/utils/validation.ts`
- [Login UI](https://github.com/kunalsambyal/frontend-archives/blob/main/Login-Register-Form/register/script.js): `Login-Register-Form/register/script.js`

### JavaScript Apps

- [Profile Search](https://github.com/kunalsambyal/frontend-archives/blob/main/GitHub-Profile-Searcher/script.js): `GitHub-Profile-Searcher/script.js`
- [Pokémon Explorer](https://github.com/kunalsambyal/frontend-archives/blob/main/Pokemon-Explorer/index.js): `Pokemon-Explorer/index.js`
- [Weather Dashboard](https://github.com/kunalsambyal/frontend-archives/blob/main/Weather-App/index.js): `Weather-App/index.js`
- [Geocoding API](https://github.com/kunalsambyal/frontend-archives/blob/main/Weather-App/api/geo.js): `Weather-App/api/geo.js`

### Other components

- **Visitor**

## Connections

- Visitor → Games App: opens
- Games App → Navigation: renders (evidence: `Games-Library/src/App.tsx`)
- Games App → Catalog Page: routes to (evidence: `Games-Library/src/App.tsx`)
- Games App → Favourites: routes to (evidence: `Games-Library/src/App.tsx`)
- Games App → Wishlist: routes to (evidence: `Games-Library/src/App.tsx`)
- Games App → Not Found: routes to (evidence: `Games-Library/src/App.tsx`)
- Games App → Favourite State: provides (evidence: `Games-Library/src/App.tsx`)
- Games App → Error Boundary: wraps (evidence: `Games-Library/src/main.tsx`)
- Catalog Page → Game Grid: uses
- Game Grid → Genre Filters: filters
- Game Grid → Game Cards: renders
- Game Grid → Game API: fetches games
- Favourites → Favourite State: reads favourites
- Visitor → Masonry Gallery: opens
- Masonry Gallery → Image Grid: renders (evidence: `Masonry-Layout/src/App.tsx`)
- Image Grid → Image Cards: renders
- Image Grid → Image API: loads images
- Visitor → Image Carousel: controls (evidence: `README.md`)
- Visitor → Pomodoro App: opens
- Pomodoro App → Timer Settings: renders (evidence: `Pomodoro-Timer/src/App.tsx`)
- Pomodoro App → Settings State: wrapped by (evidence: `Pomodoro-Timer/src/main.tsx`)
- Timer Logic → Settings State: reads settings (evidence: `Pomodoro-Timer/src/hooks/usePomodoro.ts`)
- Pomodoro App → Timer Logic: uses
- Visitor → Task Tracker: manages tasks (evidence: `README.md`)
- Visitor → Stopwatch: times sessions (evidence: `README.md`)
- Visitor → Registration App: opens
- Registration App → Registration Page: routes to (evidence: `Registration-Form-V2-/src/App.tsx`)
- Registration Page → Registration Form: uses
- Registration Form → Form State: uses
- Form State → Field Validation: validates with (evidence: `Registration-Form-V2-/src/hooks/useRegisterForm.ts`)
- Visitor → Login UI: uses (evidence: `README.md`)
- Visitor → Profile Search: searches profiles (evidence: `README.md`)
- Visitor → Pokémon Explorer: searches Pokémon (evidence: `README.md`)
- Visitor → Weather Dashboard: checks weather (evidence: `README.md`)
- Weather Dashboard → Geocoding API: geocodes location
