# ityctota/skillswap_53_2 architecture

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

- Interactive diagram: https://gitdiagram.com/ityctota/skillswap_53_2
- Repository: https://github.com/ityctota/skillswap_53_2

## Overview

SkillSwap is a skill-exchange platform: users browse and filter people and skills, view skill details, and can offer an exchange; registration and profiles support participation. The graph follows the documented React/Redux routing and the sampled catalog, skill, and profile workflows. Several page and API implementations were not sampled, so those capabilities are included from the tree and README, but uncertain internal calls are not inferred.

Main entry points: [`src/app/providers/RouterProvider.tsx`](https://github.com/ityctota/skillswap_53_2/blob/develop/src/app/providers/RouterProvider.tsx) (Page router), [`src/pages/SkillPage/index.tsx`](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/SkillPage/index.tsx) (Skill details), [`src/api/userApi.ts`](https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/userApi.ts) (User API), [`src/pages/CatalogPage/index.tsx`](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/CatalogPage/index.tsx) (Catalog page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["App shell<br/>[App.tsx]"]
  node_router["Page router<br/>[RouterProvider.tsx]"]
  node_store["Redux store<br/>[index.ts]"]
end

subgraph group_discovery["Skill discovery"]
  node_catalog["Catalog page<br/>[index.tsx]"]
  node_filters["Catalog filters<br/>[FilterBlock.tsx]"]
  node_search["Skill search<br/>[useSearch.ts]"]
  node_skillpage["Skill details<br/>[index.tsx]"]
  node_skillstate["Skill state<br/>[skillsSlice.ts]"]
  node_skillcards["Skill cards<br/>[SkillCard.tsx]"]
end

subgraph group_identity["Identity and profiles"]
  node_registration["Registration flow"]
  node_registerpayload["Registration payload"]
  node_registerdraft["Registration draft"]
  node_auth["Auth utilities<br/>[authUtils.ts]"]
  node_profilepage["Profile page<br/>[index.tsx]"]
  node_profile["User profile state<br/>[profileSlice.ts]"]
  node_users["User directory state<br/>[usersSlice.ts]"]
  node_userapi["User API<br/>[userApi.ts]"]
end

subgraph group_exchange["Exchange activity"]
  node_exchanges["Exchange API<br/>[exchangesApi.ts]"]
  node_notifications["Notification API<br/>[notificationApi.ts]"]
  node_favorites["Favorites page<br/>[index.tsx]"]
end

subgraph group_backend["Mock backend"]
  node_backendserver["API server<br/>[server.js]"]
  node_generator["Mock data generator<br/>[index.ts]"]
  node_categorygen["Category data<br/>[categories.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_router
node_router -->|"routes to"| node_catalog
node_router -->|"routes to"| node_skillpage
node_router -->|"routes to"| node_profilepage
node_router -->|"routes to"| node_favorites
node_app -->|"provides"| node_store
node_catalog -->|"renders"| node_filters
node_catalog -->|"dispatches"| node_users
node_catalog -->|"fetches users"| node_userapi
node_search -->|"loads categories"| node_userapi
node_skillpage -->|"dispatches"| node_skillstate
node_skillpage -->|"renders"| node_skillcards
node_skillpage -->|"offers exchange"| node_exchanges
node_skillpage -->|"creates notice"| node_notifications
node_registration -.->|"saves draft"| node_registerdraft
node_registration -.->|"builds payload"| node_registerpayload
node_registration -->|"registers"| node_userapi
node_profilepage -->|"dispatches"| node_profile
node_profilepage -.->|"updates profile"| node_userapi
node_userapi -->|"HTTP requests"| node_backendserver
node_exchanges -.->|"HTTP requests"| node_backendserver
node_notifications -.->|"HTTP requests"| node_backendserver
node_generator -->|"saves categories"| node_categorygen

click node_app "https://github.com/ityctota/skillswap_53_2/blob/develop/src/app/App.tsx"
click node_router "https://github.com/ityctota/skillswap_53_2/blob/develop/src/app/providers/RouterProvider.tsx"
click node_store "https://github.com/ityctota/skillswap_53_2/blob/develop/src/store/index.ts"
click node_catalog "https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/CatalogPage/index.tsx"
click node_filters "https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/FilterBlock/FilterBlock.tsx"
click node_search "https://github.com/ityctota/skillswap_53_2/blob/develop/src/shared/hooks/useSearch.ts"
click node_skillpage "https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/SkillPage/index.tsx"
click node_skillstate "https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/skill/model/skillsSlice.ts"
click node_skillcards "https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/SkillCard/SkillCard.tsx"
click node_registration "https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/RegistrationStep1.tsx"
click node_registerpayload "https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/buildRegisterPayload.ts"
click node_registerdraft "https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/registerFormStorage.ts"
click node_auth "https://github.com/ityctota/skillswap_53_2/blob/develop/src/features/auth/model/authUtils.ts"
click node_profilepage "https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/ProfilePage/index.tsx"
click node_profile "https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/user/model/profileSlice.ts"
click node_users "https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/users/model/usersSlice.ts"
click node_userapi "https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/userApi.ts"
click node_exchanges "https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/exchangesApi.ts"
click node_notifications "https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/notificationApi.ts"
click node_favorites "https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/FavoritesPage/index.tsx"
click node_backendserver "https://github.com/ityctota/skillswap_53_2/blob/develop/server/server.js"
click node_generator "https://github.com/ityctota/skillswap_53_2/blob/develop/server/generate/index.ts"
click node_categorygen "https://github.com/ityctota/skillswap_53_2/blob/develop/server/generate/categories.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_app,node_router,node_store toneBlue
class node_catalog,node_filters,node_search,node_skillpage,node_skillstate,node_skillcards toneAmber
class node_registration,node_registerpayload,node_registerdraft,node_auth,node_profilepage,node_profile,node_users,node_userapi toneMint
class node_exchanges,node_notifications,node_favorites toneRose
class node_backendserver,node_generator,node_categorygen,node_visitor toneIndigo
```

## Components

### Application shell

- [App shell](https://github.com/ityctota/skillswap_53_2/blob/develop/src/app/App.tsx): `src/app/App.tsx`
- [Page router](https://github.com/ityctota/skillswap_53_2/blob/develop/src/app/providers/RouterProvider.tsx): `src/app/providers/RouterProvider.tsx`
- [Redux store](https://github.com/ityctota/skillswap_53_2/blob/develop/src/store/index.ts): `src/store/index.ts`

### Skill discovery

- [Catalog page](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/CatalogPage/index.tsx): `src/pages/CatalogPage/index.tsx`
- [Catalog filters](https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/FilterBlock/FilterBlock.tsx): `src/components/FilterBlock/FilterBlock.tsx`
- [Skill search](https://github.com/ityctota/skillswap_53_2/blob/develop/src/shared/hooks/useSearch.ts): `src/shared/hooks/useSearch.ts`
- [Skill details](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/SkillPage/index.tsx): `src/pages/SkillPage/index.tsx`
- [Skill state](https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/skill/model/skillsSlice.ts): `src/entities/skill/model/skillsSlice.ts`
- [Skill cards](https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/SkillCard/SkillCard.tsx): `src/components/SkillCard/SkillCard.tsx`

### Identity and profiles

- [Registration flow](https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/RegistrationStep1.tsx): `src/components/Registration/RegistrationStep1.tsx`
- [Registration payload](https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/buildRegisterPayload.ts): `src/components/Registration/buildRegisterPayload.ts`
- [Registration draft](https://github.com/ityctota/skillswap_53_2/blob/develop/src/components/Registration/registerFormStorage.ts): `src/components/Registration/registerFormStorage.ts`
- [Auth utilities](https://github.com/ityctota/skillswap_53_2/blob/develop/src/features/auth/model/authUtils.ts): `src/features/auth/model/authUtils.ts`
- [Profile page](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/ProfilePage/index.tsx): `src/pages/ProfilePage/index.tsx`
- [User profile state](https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/user/model/profileSlice.ts): `src/entities/user/model/profileSlice.ts`
- [User directory state](https://github.com/ityctota/skillswap_53_2/blob/develop/src/entities/users/model/usersSlice.ts): `src/entities/users/model/usersSlice.ts`
- [User API](https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/userApi.ts): `src/api/userApi.ts`

### Exchange activity

- [Exchange API](https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/exchangesApi.ts): `src/api/exchangesApi.ts`
- [Notification API](https://github.com/ityctota/skillswap_53_2/blob/develop/src/api/notificationApi.ts): `src/api/notificationApi.ts`
- [Favorites page](https://github.com/ityctota/skillswap_53_2/blob/develop/src/pages/FavoritesPage/index.tsx): `src/pages/FavoritesPage/index.tsx`

### Mock backend

- [API server](https://github.com/ityctota/skillswap_53_2/blob/develop/server/server.js): `server/server.js`
- [Mock data generator](https://github.com/ityctota/skillswap_53_2/blob/develop/server/generate/index.ts): `server/generate/index.ts`
- [Category data](https://github.com/ityctota/skillswap_53_2/blob/develop/server/generate/categories.ts): `server/generate/categories.ts`

### Other components

- **Visitor**

## Connections

- Visitor → App shell: opens
- App shell → Page router: renders (evidence: `src/app/App.tsx`)
- Page router → Catalog page: routes to (evidence: `src/app/providers/RouterProvider.tsx`)
- Page router → Skill details: routes to (evidence: `src/app/providers/RouterProvider.tsx`)
- Page router → Profile page: routes to (evidence: `src/app/providers/RouterProvider.tsx`)
- Page router → Favorites page: routes to (evidence: `src/app/providers/RouterProvider.tsx`)
- App shell → Redux store: provides (evidence: `src/app/App.tsx`)
- Catalog page → Catalog filters: renders (evidence: `src/pages/CatalogPage/index.tsx`)
- Catalog page → User directory state: dispatches (evidence: `src/pages/CatalogPage/index.tsx`)
- Catalog page → User API: fetches users (evidence: `src/pages/CatalogPage/index.tsx`)
- Skill search → User API: loads categories (evidence: `src/shared/hooks/useSearch.ts`)
- Skill details → Skill state: dispatches (evidence: `src/pages/SkillPage/index.tsx`)
- Skill details → Skill cards: renders (evidence: `src/pages/SkillPage/index.tsx`)
- Skill details → Exchange API: offers exchange (evidence: `src/pages/SkillPage/index.tsx`)
- Skill details → Notification API: creates notice (evidence: `src/pages/SkillPage/index.tsx`)
- Registration flow → Registration draft: saves draft
- Registration flow → Registration payload: builds payload
- Registration flow → User API: registers (evidence: `src/pages/RegisterPage/index.tsx`)
- Profile page → User profile state: dispatches (evidence: `src/pages/ProfilePage/index.tsx`)
- Profile page → User API: updates profile
- User API → API server: HTTP requests (evidence: `src/api/userApi.ts`)
- Exchange API → API server: HTTP requests
- Notification API → API server: HTTP requests
- Mock data generator → Category data: saves categories (evidence: `server/generate/index.ts`)
