# bromscandium/portfolio architecture

> Architecture diagram of the GitHub repository bromscandium/portfolio, 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/bromscandium/portfolio
- Repository: https://github.com/bromscandium/portfolio

## Overview

This is a single-page interactive portfolio presented as a developer terminal or a plain-language view, in English or Ukrainian. The main journey is choosing a profile, entering the portfolio, navigating its intro, experience, skills, projects, and contact sections, and— in developer mode—running shell-like commands to inspect content or trigger actions. Tabs, overlays, themes, keyboard controls, and persisted preferences support that experience. The graph reflects documented capabilities and source-index references; unsampled implementation details are not inferred.

Main entry points: [`components/layout/Terminal.tsx`](https://github.com/bromscandium/portfolio/blob/main/components/layout/Terminal.tsx) (Terminal shell), [`lib/commands/run.ts`](https://github.com/bromscandium/portfolio/blob/main/lib/commands/run.ts) (Command execution), [`store/terminal.ts`](https://github.com/bromscandium/portfolio/blob/main/store/terminal.ts) (Terminal state), [`components/sections/Projects/Projects.tsx`](https://github.com/bromscandium/portfolio/blob/main/components/sections/Projects/Projects.tsx) (Projects section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Terminal experience"]
  node_page["App entry<br/>[page.tsx]"]
  node_terminal["Terminal shell<br/>[Terminal.tsx]"]
  node_profile["Profile picker<br/>[ProfilePicker.tsx]"]
  node_navigation["Tabs and navigation<br/>[TabBar.tsx]"]
  node_overlays["Command and project overlays"]
end

subgraph group_content["Portfolio content"]
  node_intro["Intro section<br/>[Intro.tsx]"]
  node_experience["Experience section<br/>[Experience.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_projects["Projects section<br/>[Projects.tsx]"]
  node_contact["Contact section<br/>[Contact.tsx]"]
  node_portfolio["Project data<br/>[portfolio.ts]"]
  node_skilldata["Skills data<br/>[skills.ts]"]
  node_contentdata["Other portfolio data"]
end

subgraph group_commands["Command system"]
  node_commandline["Command line<br/>[CommandLine.tsx]"]
  node_commandhook["Command interaction<br/>[useCommandLine.ts]"]
  node_runner["Command execution<br/>[run.ts]"]
  node_registry["Command registry<br/>[registry.ts]"]
  node_filesystem["Virtual filesystem<br/>[fs.ts]"]
end

subgraph group_state["State and presentation"]
  node_store["Terminal state<br/>[terminal.ts]"]
  node_effects["Session and keyboard effects"]
  node_strings["Localized copy<br/>[i18n.ts]"]
  node_modes["Modes and themes<br/>[modes.ts]"]
  node_storage[("Browser preferences<br/>[storage.ts]")]
  node_contributions["GitHub contributions"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_page
node_page -->|"renders"| node_terminal
node_terminal -->|"renders"| node_profile
node_terminal -->|"renders"| node_navigation
node_terminal -->|"renders"| node_overlays
node_terminal -->|"renders"| node_intro
node_terminal -->|"renders"| node_experience
node_terminal -->|"renders"| node_skills
node_terminal -->|"renders"| node_projects
node_terminal -->|"renders"| node_contact
node_terminal -->|"renders"| node_commandline
node_terminal -->|"reads state"| node_store
node_terminal -->|"starts effects"| node_effects
node_projects -->|"displays"| node_portfolio
node_skills -->|"reads"| node_skilldata
node_commandline -->|"uses"| node_commandhook
node_commandhook -->|"updates"| node_store
node_commandhook -->|"dispatches"| node_runner
node_runner -->|"looks up"| node_registry
node_runner -->|"resolves paths"| node_filesystem
node_runner -->|"searches projects"| node_portfolio
node_runner -->|"reads portfolio data"| node_contentdata
node_terminal -->|"gets copy"| node_strings
node_effects -->|"dispatches actions"| node_store
node_effects -.->|"restores preferences"| node_storage
node_store -->|"persists preferences"| node_storage
node_strings -->|"formats by mode"| node_modes
node_terminal -->|"switches views"| node_modes
node_contributions -.->|"fetches live data"| node_visitor
node_projects -->|"filters projects"| node_portfolio

click node_page "https://github.com/bromscandium/portfolio/blob/main/app/page.tsx"
click node_terminal "https://github.com/bromscandium/portfolio/blob/main/components/layout/Terminal.tsx"
click node_profile "https://github.com/bromscandium/portfolio/blob/main/components/layout/windows/ProfilePicker.tsx"
click node_navigation "https://github.com/bromscandium/portfolio/blob/main/components/layout/TabBar/TabBar.tsx"
click node_overlays "https://github.com/bromscandium/portfolio/tree/main/components/layout/windows"
click node_intro "https://github.com/bromscandium/portfolio/blob/main/components/sections/Intro/Intro.tsx"
click node_experience "https://github.com/bromscandium/portfolio/blob/main/components/sections/Experience/Experience.tsx"
click node_skills "https://github.com/bromscandium/portfolio/blob/main/components/sections/Skills/Skills.tsx"
click node_projects "https://github.com/bromscandium/portfolio/blob/main/components/sections/Projects/Projects.tsx"
click node_contact "https://github.com/bromscandium/portfolio/blob/main/components/sections/Contact/Contact.tsx"
click node_portfolio "https://github.com/bromscandium/portfolio/blob/main/lib/data/portfolio.ts"
click node_skilldata "https://github.com/bromscandium/portfolio/blob/main/lib/data/skills.ts"
click node_contentdata "https://github.com/bromscandium/portfolio/tree/main/lib/data"
click node_commandline "https://github.com/bromscandium/portfolio/blob/main/components/layout/CommandLine/CommandLine.tsx"
click node_commandhook "https://github.com/bromscandium/portfolio/blob/main/hooks/useCommandLine.ts"
click node_runner "https://github.com/bromscandium/portfolio/blob/main/lib/commands/run.ts"
click node_registry "https://github.com/bromscandium/portfolio/blob/main/lib/commands/registry.ts"
click node_filesystem "https://github.com/bromscandium/portfolio/blob/main/lib/commands/fs.ts"
click node_store "https://github.com/bromscandium/portfolio/blob/main/store/terminal.ts"
click node_effects "https://github.com/bromscandium/portfolio/blob/main/hooks/useTerminalEffects.ts"
click node_strings "https://github.com/bromscandium/portfolio/blob/main/lib/i18n.ts"
click node_modes "https://github.com/bromscandium/portfolio/blob/main/lib/modes.ts"
click node_storage "https://github.com/bromscandium/portfolio/blob/main/lib/storage.ts"
click node_contributions "https://github.com/bromscandium/portfolio/blob/main/hooks/useContributions.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_page,node_terminal,node_profile,node_navigation,node_overlays toneBlue
class node_intro,node_experience,node_skills,node_projects,node_contact,node_portfolio,node_skilldata,node_contentdata toneAmber
class node_commandline,node_commandhook,node_runner,node_registry,node_filesystem toneMint
class node_store,node_effects,node_strings,node_modes,node_storage,node_contributions toneRose
class node_visitor toneIndigo
```

## Components

### Terminal experience

- [App entry](https://github.com/bromscandium/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Terminal shell](https://github.com/bromscandium/portfolio/blob/main/components/layout/Terminal.tsx): `components/layout/Terminal.tsx`
- [Profile picker](https://github.com/bromscandium/portfolio/blob/main/components/layout/windows/ProfilePicker.tsx): `components/layout/windows/ProfilePicker.tsx`
- [Tabs and navigation](https://github.com/bromscandium/portfolio/blob/main/components/layout/TabBar/TabBar.tsx): `components/layout/TabBar/TabBar.tsx`
- [Command and project overlays](https://github.com/bromscandium/portfolio/tree/main/components/layout/windows): `components/layout/windows`

### Portfolio content

- [Intro section](https://github.com/bromscandium/portfolio/blob/main/components/sections/Intro/Intro.tsx): `components/sections/Intro/Intro.tsx`
- [Experience section](https://github.com/bromscandium/portfolio/blob/main/components/sections/Experience/Experience.tsx): `components/sections/Experience/Experience.tsx`
- [Skills section](https://github.com/bromscandium/portfolio/blob/main/components/sections/Skills/Skills.tsx): `components/sections/Skills/Skills.tsx`
- [Projects section](https://github.com/bromscandium/portfolio/blob/main/components/sections/Projects/Projects.tsx): `components/sections/Projects/Projects.tsx`
- [Contact section](https://github.com/bromscandium/portfolio/blob/main/components/sections/Contact/Contact.tsx): `components/sections/Contact/Contact.tsx`
- [Project data](https://github.com/bromscandium/portfolio/blob/main/lib/data/portfolio.ts): `lib/data/portfolio.ts`
- [Skills data](https://github.com/bromscandium/portfolio/blob/main/lib/data/skills.ts): `lib/data/skills.ts`
- [Other portfolio data](https://github.com/bromscandium/portfolio/tree/main/lib/data): `lib/data`

### Command system

- [Command line](https://github.com/bromscandium/portfolio/blob/main/components/layout/CommandLine/CommandLine.tsx): `components/layout/CommandLine/CommandLine.tsx`
- [Command interaction](https://github.com/bromscandium/portfolio/blob/main/hooks/useCommandLine.ts): `hooks/useCommandLine.ts`
- [Command execution](https://github.com/bromscandium/portfolio/blob/main/lib/commands/run.ts): `lib/commands/run.ts`
- [Command registry](https://github.com/bromscandium/portfolio/blob/main/lib/commands/registry.ts): `lib/commands/registry.ts`
- [Virtual filesystem](https://github.com/bromscandium/portfolio/blob/main/lib/commands/fs.ts): `lib/commands/fs.ts`

### State and presentation

- [Terminal state](https://github.com/bromscandium/portfolio/blob/main/store/terminal.ts): `store/terminal.ts`
- [Session and keyboard effects](https://github.com/bromscandium/portfolio/blob/main/hooks/useTerminalEffects.ts): `hooks/useTerminalEffects.ts`
- [Localized copy](https://github.com/bromscandium/portfolio/blob/main/lib/i18n.ts): `lib/i18n.ts`
- [Modes and themes](https://github.com/bromscandium/portfolio/blob/main/lib/modes.ts): `lib/modes.ts`
- [Browser preferences](https://github.com/bromscandium/portfolio/blob/main/lib/storage.ts): `lib/storage.ts`
- [GitHub contributions](https://github.com/bromscandium/portfolio/blob/main/hooks/useContributions.ts): `hooks/useContributions.ts`

### Other components

- **Visitor**

## Connections

- Visitor → App entry: opens (evidence: `app/page.tsx`)
- App entry → Terminal shell: renders (evidence: `app/page.tsx`)
- Terminal shell → Profile picker: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Tabs and navigation: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Command and project overlays: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Intro section: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Experience section: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Skills section: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Projects section: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Contact section: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Command line: renders (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Terminal state: reads state (evidence: `components/layout/Terminal.tsx`)
- Terminal shell → Session and keyboard effects: starts effects (evidence: `components/layout/Terminal.tsx`)
- Projects section → Project data: displays (evidence: `components/sections/Projects/Projects.tsx`)
- Skills section → Skills data: reads
- Command line → Command interaction: uses (evidence: `components/layout/CommandLine/CommandLine.tsx`)
- Command interaction → Terminal state: updates (evidence: `hooks/useCommandLine.ts`)
- Command interaction → Command execution: dispatches (evidence: `hooks/useCommandLine.ts`)
- Command execution → Command registry: looks up (evidence: `lib/commands/run.ts`)
- Command execution → Virtual filesystem: resolves paths (evidence: `lib/commands/run.ts`)
- Command execution → Project data: searches projects (evidence: `lib/commands/run.ts`)
- Command execution → Other portfolio data: reads portfolio data (evidence: `lib/commands/run.ts`)
- Terminal shell → Localized copy: gets copy (evidence: `components/layout/Terminal.tsx`)
- Session and keyboard effects → Terminal state: dispatches actions (evidence: `hooks/useTerminalEffects.ts`)
- Session and keyboard effects → Browser preferences: restores preferences
- Terminal state → Browser preferences: persists preferences (evidence: `store/slices/session.ts`)
- Localized copy → Modes and themes: formats by mode (evidence: `lib/i18n.ts`)
- Terminal shell → Modes and themes: switches views (evidence: `components/layout/Terminal.tsx`)
- GitHub contributions → Visitor: fetches live data (evidence: `README.md`)
- Projects section → Project data: filters projects (evidence: `components/sections/Projects/Projects.tsx`)
