# ma960/interpersonal architecture

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

## Overview

Interpersonal is a social app for account access, discovering people, creating posts, and viewing a feed or profile. The visible frontend flow checks the current user, then presents those user-facing actions and fetches data from the backend API. Backend source files are present in the tree, but their implementations were not sampled; the graph therefore avoids asserting how controllers, services, security, and persistence connect internally.

Main entry points: [`frontend/src/App.jsx`](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx) (App shell), [`backend/src/main/java/com/example/interpersonal/User`](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/User) (User API), [`backend/src/main/java/com/example/interpersonal/Posts`](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Posts) (Post API), [`backend/src/main/java/com/example/interpersonal/Feed`](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Feed) (Feed API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["App shell<br/>[App.jsx]"]
end

subgraph group_identity["Accounts and access"]
  node_account_ui["Login and registration<br/>[App.jsx]"]
  node_people_ui["People and friends<br/>[App.jsx]"]
  node_user_api["User API"]
  node_security["Security"]
end

subgraph group_social["Social content"]
  node_feed_ui["Feed view<br/>[App.jsx]"]
  node_post_ui["Create post<br/>[App.jsx]"]
  node_profile_ui["Profile posts<br/>[App.jsx]"]
  node_feed_api["Feed API"]
  node_post_api["Post API"]
end

node_person(("User"))

node_person -->|"uses"| node_app
node_app -->|"shows"| node_account_ui
node_app -->|"shows"| node_feed_ui
node_app -->|"shows"| node_post_ui
node_app -->|"shows"| node_profile_ui
node_app -->|"shows"| node_people_ui
node_account_ui -->|"requests users"| node_user_api
node_people_ui -->|"requests users"| node_user_api
node_feed_ui -->|"requests feed"| node_feed_api
node_post_ui -->|"creates post"| node_post_api
node_profile_ui -->|"requests posts"| node_post_api

click node_app "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_account_ui "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_people_ui "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_user_api "https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/User"
click node_security "https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Security"
click node_feed_ui "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_post_ui "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_profile_ui "https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx"
click node_feed_api "https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Feed"
click node_post_api "https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Posts"

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_person toneBlue
class node_account_ui,node_people_ui,node_user_api,node_security toneAmber
class node_feed_ui,node_post_ui,node_profile_ui,node_feed_api,node_post_api toneMint
```

## Components

### Web client

- [App shell](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`

### Accounts and access

- [Login and registration](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [People and friends](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [User API](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/User): `backend/src/main/java/com/example/interpersonal/User`
- [Security](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Security): `backend/src/main/java/com/example/interpersonal/Security`

### Social content

- [Feed view](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Create post](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Profile posts](https://github.com/ma960/interpersonal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Feed API](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Feed): `backend/src/main/java/com/example/interpersonal/Feed`
- [Post API](https://github.com/ma960/interpersonal/tree/main/backend/src/main/java/com/example/interpersonal/Posts): `backend/src/main/java/com/example/interpersonal/Posts`

### Other components

- **User**

## Connections

- User → App shell: uses
- App shell → Login and registration: shows (evidence: `frontend/src/App.jsx`)
- App shell → Feed view: shows (evidence: `frontend/src/App.jsx`)
- App shell → Create post: shows (evidence: `frontend/src/App.jsx`)
- App shell → Profile posts: shows (evidence: `frontend/src/App.jsx`)
- App shell → People and friends: shows (evidence: `frontend/src/App.jsx`)
- Login and registration → User API: requests users (evidence: `frontend/src/App.jsx`)
- People and friends → User API: requests users (evidence: `frontend/src/App.jsx`)
- Feed view → Feed API: requests feed (evidence: `frontend/src/App.jsx`)
- Create post → Post API: creates post (evidence: `frontend/src/App.jsx`)
- Profile posts → Post API: requests posts (evidence: `frontend/src/App.jsx`)
