# s4yush/portfolio architecture

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

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

## Overview

This is a browser-based macOS-inspired portfolio: users pass through boot/login into an interactive desktop or mobile layout, then launch portfolio apps and use simulated system controls. The graph emphasizes that experience, its shared application catalog and state, and the documented widgets, search, notifications, settings, audio, and personalization. Several UI modules are represented from the tree and README/index; their internal wiring was not sampled, so unverified relationships are omitted.

Main entry points: [`src/pages/Desktop.tsx`](https://github.com/s4yush/portfolio/blob/main/src/pages/Desktop.tsx) (Desktop session), [`src/index.tsx`](https://github.com/s4yush/portfolio/blob/main/src/index.tsx) (Application entry), [`src/pages/Mobile.tsx`](https://github.com/s4yush/portfolio/blob/main/src/pages/Mobile.tsx) (Mobile session), [`src/stores/index.ts`](https://github.com/s4yush/portfolio/blob/main/src/stores/index.ts) (Shared application state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["System experience"]
  node_app["Application entry<br/>[index.tsx]"]
  node_boot["Boot screen<br/>[Boot.tsx]"]
  node_login["Login screen<br/>[Login.tsx]"]
end

subgraph group_surfaces["Desktop and mobile UI"]
  node_desktop["Desktop session<br/>[Desktop.tsx]"]
  node_mobile["Mobile session<br/>[Mobile.tsx]"]
  node_window["App windows<br/>[AppWindow.tsx]"]
  node_dock["Dock<br/>[Dock.tsx]"]
  node_launchpad["Launchpad<br/>[Launchpad.tsx]"]
  node_menus["System menus"]
  node_notifications["Notifications"]
  node_spotlight["Spotlight search<br/>[Spotlight.tsx]"]
  node_dynamic["Dynamic Island<br/>[DynamicIsland.tsx]"]
  node_widgets["Desktop widgets<br/>[CalendarWidget.tsx]"]
  node_weather["Weather widget<br/>[WeatherWidget.tsx]"]
  node_calendar["Calendar widget<br/>[CalendarWidget.tsx]"]
  node_about["About this Mac"]
end

subgraph group_applications["Portfolio apps"]
  node_settingsui["System settings UI<br/>[SystemSettings.tsx]"]
  node_apps["App catalog<br/>[apps.tsx]"]
  node_appviews["App experiences<br/>[Finder.tsx]"]
  node_portfolio["Portfolio content<br/>[websites.ts]"]
end

subgraph group_shared["Shared state and services"]
  node_store["Shared application state<br/>[index.ts]"]
  node_settings["System preferences<br/>[settings.ts]"]
  node_system["System state<br/>[system.ts]"]
  node_notice_state["Notification state<br/>[notifications.ts]"]
  node_audio["Audio provider<br/>[AudioContext.tsx]"]
  node_music["Music configuration<br/>[music.ts]"]
  node_window_size["Viewport sizing<br/>[useWindowSize.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_boot
node_app -->|"renders"| node_login
node_app -->|"renders"| node_desktop
node_app -->|"renders"| node_mobile
node_app -->|"reads"| node_store
node_app -->|"provides"| node_audio
node_app -->|"checks viewport"| node_window_size
node_desktop -->|"reads catalog"| node_apps
node_desktop -->|"renders"| node_window
node_desktop -->|"renders"| node_dynamic
node_desktop -->|"renders"| node_notifications
node_desktop -->|"renders"| node_widgets
node_desktop -->|"renders"| node_about
node_desktop -.->|"renders"| node_spotlight
node_desktop -.->|"renders"| node_launchpad
node_desktop -.->|"renders"| node_dock
node_desktop -.->|"renders"| node_menus
node_desktop -->|"checks viewport"| node_window_size
node_desktop -.->|"reads"| node_store
node_mobile -->|"reads catalog"| node_apps
node_mobile -->|"renders"| node_menus
node_mobile -->|"renders"| node_notifications
node_mobile -->|"reads and updates"| node_store
node_mobile -->|"controls audio"| node_audio
node_mobile -->|"renders selected app"| node_appviews
node_apps -->|"defines content"| node_appviews
node_apps -->|"includes"| node_settingsui
node_apps -.->|"configures links"| node_portfolio
node_store -->|"combines slice"| node_settings
node_store -->|"combines slice"| node_system
node_store -->|"combines slice"| node_notice_state
node_audio -->|"loads configuration"| node_music
node_notifications -->|"renders"| node_calendar
node_notifications -->|"renders"| node_weather
node_notifications -->|"checks viewport"| node_window_size
node_dynamic -->|"reads configuration"| node_music
node_dynamic -->|"uses audio"| node_audio
node_settingsui -->|"reads state"| node_store

click node_app "https://github.com/s4yush/portfolio/blob/main/src/index.tsx"
click node_boot "https://github.com/s4yush/portfolio/blob/main/src/pages/Boot.tsx"
click node_login "https://github.com/s4yush/portfolio/blob/main/src/pages/Login.tsx"
click node_desktop "https://github.com/s4yush/portfolio/blob/main/src/pages/Desktop.tsx"
click node_mobile "https://github.com/s4yush/portfolio/blob/main/src/pages/Mobile.tsx"
click node_window "https://github.com/s4yush/portfolio/blob/main/src/components/AppWindow.tsx"
click node_dock "https://github.com/s4yush/portfolio/blob/main/src/components/dock/Dock.tsx"
click node_launchpad "https://github.com/s4yush/portfolio/blob/main/src/components/Launchpad.tsx"
click node_menus "https://github.com/s4yush/portfolio/blob/main/src/components/menus/ControlCenterMenu.tsx"
click node_notifications "https://github.com/s4yush/portfolio/blob/main/src/components/NotificationCenter.tsx"
click node_spotlight "https://github.com/s4yush/portfolio/blob/main/src/components/Spotlight.tsx"
click node_dynamic "https://github.com/s4yush/portfolio/blob/main/src/components/DynamicIsland.tsx"
click node_widgets "https://github.com/s4yush/portfolio/blob/main/src/components/widgets/CalendarWidget.tsx"
click node_settingsui "https://github.com/s4yush/portfolio/blob/main/src/components/apps/SystemSettings.tsx"
click node_apps "https://github.com/s4yush/portfolio/blob/main/src/configs/apps.tsx"
click node_appviews "https://github.com/s4yush/portfolio/blob/main/src/components/apps/Finder.tsx"
click node_portfolio "https://github.com/s4yush/portfolio/blob/main/src/configs/websites.ts"
click node_store "https://github.com/s4yush/portfolio/blob/main/src/stores/index.ts"
click node_settings "https://github.com/s4yush/portfolio/blob/main/src/stores/slices/settings.ts"
click node_system "https://github.com/s4yush/portfolio/blob/main/src/stores/slices/system.ts"
click node_notice_state "https://github.com/s4yush/portfolio/blob/main/src/stores/slices/notifications.ts"
click node_audio "https://github.com/s4yush/portfolio/blob/main/src/context/AudioContext.tsx"
click node_music "https://github.com/s4yush/portfolio/blob/main/src/configs/music.ts"
click node_window_size "https://github.com/s4yush/portfolio/blob/main/src/hooks/useWindowSize.ts"
click node_weather "https://github.com/s4yush/portfolio/blob/main/src/components/widgets/WeatherWidget.tsx"
click node_calendar "https://github.com/s4yush/portfolio/blob/main/src/components/widgets/CalendarWidget.tsx"
click node_about "https://github.com/s4yush/portfolio/blob/main/src/components/AboutThisMacModal.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_boot,node_login toneBlue
class node_desktop,node_mobile,node_window,node_dock,node_launchpad,node_menus,node_notifications,node_spotlight,node_dynamic,node_widgets,node_weather,node_calendar,node_about toneAmber
class node_settingsui,node_apps,node_appviews,node_portfolio toneMint
class node_store,node_settings,node_system,node_notice_state,node_audio,node_music,node_window_size toneRose
class node_visitor toneIndigo
```

## Components

### System experience

- [Application entry](https://github.com/s4yush/portfolio/blob/main/src/index.tsx): `src/index.tsx`
- [Boot screen](https://github.com/s4yush/portfolio/blob/main/src/pages/Boot.tsx): `src/pages/Boot.tsx`
- [Login screen](https://github.com/s4yush/portfolio/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`

### Desktop and mobile UI

- [Desktop session](https://github.com/s4yush/portfolio/blob/main/src/pages/Desktop.tsx): `src/pages/Desktop.tsx`
- [Mobile session](https://github.com/s4yush/portfolio/blob/main/src/pages/Mobile.tsx): `src/pages/Mobile.tsx`
- [App windows](https://github.com/s4yush/portfolio/blob/main/src/components/AppWindow.tsx): `src/components/AppWindow.tsx`
- [Dock](https://github.com/s4yush/portfolio/blob/main/src/components/dock/Dock.tsx): `src/components/dock/Dock.tsx`
- [Launchpad](https://github.com/s4yush/portfolio/blob/main/src/components/Launchpad.tsx): `src/components/Launchpad.tsx`
- [System menus](https://github.com/s4yush/portfolio/blob/main/src/components/menus/ControlCenterMenu.tsx): `src/components/menus/ControlCenterMenu.tsx`
- [Notifications](https://github.com/s4yush/portfolio/blob/main/src/components/NotificationCenter.tsx): `src/components/NotificationCenter.tsx`
- [Spotlight search](https://github.com/s4yush/portfolio/blob/main/src/components/Spotlight.tsx): `src/components/Spotlight.tsx`
- [Dynamic Island](https://github.com/s4yush/portfolio/blob/main/src/components/DynamicIsland.tsx): `src/components/DynamicIsland.tsx`
- [Desktop widgets](https://github.com/s4yush/portfolio/blob/main/src/components/widgets/CalendarWidget.tsx): `src/components/widgets/CalendarWidget.tsx`
- [Weather widget](https://github.com/s4yush/portfolio/blob/main/src/components/widgets/WeatherWidget.tsx): `src/components/widgets/WeatherWidget.tsx`
- [Calendar widget](https://github.com/s4yush/portfolio/blob/main/src/components/widgets/CalendarWidget.tsx): `src/components/widgets/CalendarWidget.tsx`
- [About this Mac](https://github.com/s4yush/portfolio/blob/main/src/components/AboutThisMacModal.tsx): `src/components/AboutThisMacModal.tsx`

### Portfolio apps

- [System settings UI](https://github.com/s4yush/portfolio/blob/main/src/components/apps/SystemSettings.tsx): `src/components/apps/SystemSettings.tsx`
- [App catalog](https://github.com/s4yush/portfolio/blob/main/src/configs/apps.tsx): `src/configs/apps.tsx`
- [App experiences](https://github.com/s4yush/portfolio/blob/main/src/components/apps/Finder.tsx): `src/components/apps/Finder.tsx`
- [Portfolio content](https://github.com/s4yush/portfolio/blob/main/src/configs/websites.ts): `src/configs/websites.ts`

### Shared state and services

- [Shared application state](https://github.com/s4yush/portfolio/blob/main/src/stores/index.ts): `src/stores/index.ts`
- [System preferences](https://github.com/s4yush/portfolio/blob/main/src/stores/slices/settings.ts): `src/stores/slices/settings.ts`
- [System state](https://github.com/s4yush/portfolio/blob/main/src/stores/slices/system.ts): `src/stores/slices/system.ts`
- [Notification state](https://github.com/s4yush/portfolio/blob/main/src/stores/slices/notifications.ts): `src/stores/slices/notifications.ts`
- [Audio provider](https://github.com/s4yush/portfolio/blob/main/src/context/AudioContext.tsx): `src/context/AudioContext.tsx`
- [Music configuration](https://github.com/s4yush/portfolio/blob/main/src/configs/music.ts): `src/configs/music.ts`
- [Viewport sizing](https://github.com/s4yush/portfolio/blob/main/src/hooks/useWindowSize.ts): `src/hooks/useWindowSize.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Application entry: opens (evidence: `src/index.tsx`)
- Application entry → Boot screen: renders (evidence: `src/index.tsx`)
- Application entry → Login screen: renders (evidence: `src/index.tsx`)
- Application entry → Desktop session: renders (evidence: `src/index.tsx`)
- Application entry → Mobile session: renders (evidence: `src/index.tsx`)
- Application entry → Shared application state: reads (evidence: `src/index.tsx`)
- Application entry → Audio provider: provides (evidence: `src/index.tsx`)
- Application entry → Viewport sizing: checks viewport (evidence: `src/index.tsx`)
- Desktop session → App catalog: reads catalog (evidence: `src/pages/Desktop.tsx`)
- Desktop session → App windows: renders (evidence: `src/pages/Desktop.tsx`)
- Desktop session → Dynamic Island: renders (evidence: `src/pages/Desktop.tsx`)
- Desktop session → Notifications: renders (evidence: `src/pages/Desktop.tsx`)
- Desktop session → Desktop widgets: renders (evidence: `src/pages/Desktop.tsx`)
- Desktop session → About this Mac: renders (evidence: `src/pages/Desktop.tsx`)
- Desktop session → Spotlight search: renders
- Desktop session → Launchpad: renders
- Desktop session → Dock: renders
- Desktop session → System menus: renders
- Desktop session → Viewport sizing: checks viewport (evidence: `src/pages/Desktop.tsx`)
- Desktop session → Shared application state: reads
- Mobile session → App catalog: reads catalog (evidence: `src/pages/Mobile.tsx`)
- Mobile session → System menus: renders (evidence: `src/pages/Mobile.tsx`)
- Mobile session → Notifications: renders (evidence: `src/pages/Mobile.tsx`)
- Mobile session → Shared application state: reads and updates (evidence: `src/pages/Mobile.tsx`)
- Mobile session → Audio provider: controls audio (evidence: `src/pages/Mobile.tsx`)
- Mobile session → App experiences: renders selected app (evidence: `src/pages/Mobile.tsx`)
- App catalog → App experiences: defines content (evidence: `src/configs/apps.tsx`)
- App catalog → System settings UI: includes (evidence: `src/configs/apps.tsx`)
- App catalog → Portfolio content: configures links
- Shared application state → System preferences: combines slice (evidence: `src/stores/index.ts`)
- Shared application state → System state: combines slice (evidence: `src/stores/index.ts`)
- Shared application state → Notification state: combines slice (evidence: `src/stores/index.ts`)
- Audio provider → Music configuration: loads configuration (evidence: `src/context/AudioContext.tsx`)
- Notifications → Calendar widget: renders (evidence: `src/components/NotificationCenter.tsx`)
- Notifications → Weather widget: renders (evidence: `src/components/NotificationCenter.tsx`)
- Notifications → Viewport sizing: checks viewport (evidence: `src/components/NotificationCenter.tsx`)
- Dynamic Island → Music configuration: reads configuration (evidence: `src/components/DynamicIsland.tsx`)
- Dynamic Island → Audio provider: uses audio (evidence: `src/components/DynamicIsland.tsx`)
- System settings UI → Shared application state: reads state (evidence: `src/components/apps/SystemSettings.tsx`)
