# kumaruidivloper/my-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/kumaruidivloper/my-portfolio
- Repository: https://github.com/kumaruidivloper/my-portfolio

## Overview

This is an Angular portfolio site with interactive utilities. A visitor views the portfolio; the root component loads profile data and coordinates UI behavior, while standalone components provide accordion, counter, stopwatch, and timer interactions. The source also documents two remote JSON endpoints and configures QR-code support. Some presentation and routing details are not shown in the excerpts, so the graph avoids inferring their runtime connections.

Main entry points: [`src/app/app.module.ts`](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.module.ts) (App module), [`src/app/app.component.ts`](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.component.ts) (Portfolio behavior), [`src/app/service/data.service.ts`](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/service/data.service.ts) (Profile data service), [`src/app/accordion/accordion.component.ts`](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/accordion.component.ts) (Accordion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Portfolio app"]
  node_portfolio["Portfolio UI<br/>[app.component.html]"]
  node_app_logic["Portfolio behavior<br/>[app.component.ts]"]
  node_profile_model["Portfolio model<br/>[model.ts]"]
end

subgraph group_features["Interactive features"]
  node_accordion["Accordion"]
  node_accordion_config["Accordion config<br/>[config.ts]"]
  node_accordion_menu["Accordion menu<br/>[menu.ts]"]
  node_counter["Work-hours counter"]
  node_stopwatch["Stopwatch"]
  node_timer["Countdown timer<br/>[timer.component.ts]"]
end

subgraph group_data["Data and configuration"]
  node_data_service["Profile data service<br/>[data.service.ts]"]
  node_hours_service["Work-hours service"]
  node_environment["API configuration<br/>[environment.ts]"]
end

subgraph group_runtime["Angular runtime"]
  node_app_module["App module<br/>[app.module.ts]"]
  node_routing["Routing module"]
  node_bootstrap["Browser bootstrap<br/>[main.ts]"]
end

node_visitor(("Visitor"))
node_profile_endpoint[("Profile JSON")]
node_test_endpoint[("Test JSON API")]

node_visitor -->|"views"| node_portfolio
node_portfolio -->|"renders"| node_app_logic
node_app_logic -->|"requests data"| node_data_service
node_data_service -->|"reads endpoint"| node_environment
node_data_service -->|"fetches profile"| node_profile_endpoint
node_data_service -->|"fetches test data"| node_test_endpoint
node_app_logic -->|"calculates hours"| node_hours_service
node_counter -->|"reads hours"| node_hours_service
node_app_logic -->|"uses model"| node_profile_model
node_app_logic -->|"uses config"| node_accordion_config
node_app_logic -->|"uses menu"| node_accordion_menu
node_accordion -->|"merges options"| node_accordion_config
node_accordion -->|"toggles menus"| node_accordion_menu
node_app_module -->|"declares"| node_app_logic
node_app_module -->|"declares"| node_accordion
node_app_module -->|"declares"| node_counter
node_app_module -->|"declares"| node_stopwatch
node_app_module -->|"declares"| node_timer
node_app_module -->|"imports"| node_routing
node_bootstrap -->|"bootstraps"| node_app_module

click node_portfolio "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.component.html"
click node_app_logic "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.component.ts"
click node_profile_model "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/model/model.ts"
click node_accordion "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/accordion.component.ts"
click node_accordion_config "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/types/config.ts"
click node_accordion_menu "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/types/menu.ts"
click node_counter "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/counter/counter.component.ts"
click node_stopwatch "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/stopwatch/stopwatch.component.ts"
click node_timer "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/timer/timer.component.ts"
click node_data_service "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/service/data.service.ts"
click node_hours_service "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/service/total-work-hours.service.ts"
click node_environment "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/environments/environment.ts"
click node_app_module "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.module.ts"
click node_routing "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app-routing.module.ts"
click node_bootstrap "https://github.com/kumaruidivloper/my-portfolio/blob/master/src/main.ts"

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_portfolio,node_app_logic,node_profile_model toneBlue
class node_accordion,node_accordion_config,node_accordion_menu,node_counter,node_stopwatch,node_timer,node_profile_endpoint,node_test_endpoint toneAmber
class node_data_service,node_hours_service,node_environment toneMint
class node_app_module,node_routing,node_bootstrap toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio app

- [Portfolio UI](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.component.html): `src/app/app.component.html`
- [Portfolio behavior](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.component.ts): `src/app/app.component.ts`
- [Portfolio model](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/model/model.ts): `src/app/model/model.ts`

### Interactive features

- [Accordion](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/accordion.component.ts): `src/app/accordion/accordion.component.ts`
- [Accordion config](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/types/config.ts): `src/app/accordion/types/config.ts`
- [Accordion menu](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/accordion/types/menu.ts): `src/app/accordion/types/menu.ts`
- [Work-hours counter](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/counter/counter.component.ts): `src/app/counter/counter.component.ts`
- [Stopwatch](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/stopwatch/stopwatch.component.ts): `src/app/stopwatch/stopwatch.component.ts`
- [Countdown timer](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/timer/timer.component.ts): `src/app/timer/timer.component.ts`

### Data and configuration

- [Profile data service](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/service/data.service.ts): `src/app/service/data.service.ts`
- [Work-hours service](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/service/total-work-hours.service.ts): `src/app/service/total-work-hours.service.ts`
- [API configuration](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/environments/environment.ts): `src/environments/environment.ts`

### Angular runtime

- [App module](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app.module.ts): `src/app/app.module.ts`
- [Routing module](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/app/app-routing.module.ts): `src/app/app-routing.module.ts`
- [Browser bootstrap](https://github.com/kumaruidivloper/my-portfolio/blob/master/src/main.ts): `src/main.ts`

### Other components

- **Visitor**
- **Profile JSON**
- **Test JSON API**

## Connections

- Visitor → Portfolio UI: views (evidence: `README.md`)
- Portfolio UI → Portfolio behavior: renders (evidence: `src/app/app.component.ts`)
- Portfolio behavior → Profile data service: requests data (evidence: `src/app/app.component.ts`)
- Profile data service → API configuration: reads endpoint (evidence: `src/app/service/data.service.ts`)
- Profile data service → Profile JSON: fetches profile (evidence: `src/app/service/data.service.ts`)
- Profile data service → Test JSON API: fetches test data (evidence: `src/app/service/data.service.ts`)
- Portfolio behavior → Work-hours service: calculates hours (evidence: `src/app/app.component.ts`)
- Work-hours counter → Work-hours service: reads hours (evidence: `src/app/counter/counter.component.ts`)
- Portfolio behavior → Portfolio model: uses model (evidence: `src/app/app.component.ts`)
- Portfolio behavior → Accordion config: uses config (evidence: `src/app/app.component.ts`)
- Portfolio behavior → Accordion menu: uses menu (evidence: `src/app/app.component.ts`)
- Accordion → Accordion config: merges options (evidence: `src/app/accordion/accordion.component.ts`)
- Accordion → Accordion menu: toggles menus (evidence: `src/app/accordion/accordion.component.ts`)
- App module → Portfolio behavior: declares (evidence: `src/app/app.module.ts`)
- App module → Accordion: declares (evidence: `src/app/app.module.ts`)
- App module → Work-hours counter: declares (evidence: `src/app/app.module.ts`)
- App module → Stopwatch: declares (evidence: `src/app/app.module.ts`)
- App module → Countdown timer: declares (evidence: `src/app/app.module.ts`)
- App module → Routing module: imports (evidence: `src/app/app.module.ts`)
- Browser bootstrap → App module: bootstraps (evidence: `src/main.ts`)
