# joe-ship-it-nice/joefriends-frontend-sigma-mission-9 architecture

> Architecture diagram of the GitHub repository joe-ship-it-nice/joefriends-frontend-sigma-mission-9, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9
- Repository: https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9

## Overview

Joefriends is a social frontend whose main workflow is account access followed by reading or publishing posts and managing friendships. The router gates guest and authenticated pages; an authentication context stores the token and supplies API requests, while the feed and friends pages implement their respective social workflows. The README documents an Express API backed by Supabase Authentication and PostgreSQL. Backend internals are not present in this repository, so the graph treats them as external and shows only the documented connection.

Main entry points: [`src/App.jsx`](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/App.jsx) (Router and guards), [`src/context/login.jsx`](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/context/login.jsx) (Auth context), [`src/pages/login.jsx`](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/login.jsx) (Log in), [`src/pages/feed.jsx`](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/feed.jsx) (Post feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and access"]
  node_app["Router and guards<br/>[App.jsx]"]
  node_auth["Auth context<br/>[login.jsx]"]
end

subgraph group_social["Social features"]
  node_signup["Sign up<br/>[signup.jsx]"]
  node_login["Log in<br/>[login.jsx]"]
  node_feed["Post feed<br/>[feed.jsx]"]
  node_friends["Friend management<br/>[friends.jsx]"]
end

subgraph group_presentation["Interactive presentation"]
  node_dither["Dither effect<br/>[DitherVeil.jsx]"]
end

subgraph group_services["External services"]
  node_api["Express API"]
  node_supabase[("Supabase services")]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"provides context"| node_auth
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_login
node_app -->|"guards route"| node_feed
node_app -->|"guards route"| node_friends
node_signup -->|"submits signup"| node_auth
node_login -->|"submits credentials"| node_auth
node_feed -->|"requests posts"| node_auth
node_friends -->|"requests friendships"| node_auth
node_auth -->|"fetches endpoints"| node_api
node_feed -->|"renders effect"| node_dither
node_login -->|"renders effect"| node_dither
node_api -->|"uses auth and database"| node_supabase

click node_app "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/App.jsx"
click node_auth "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/context/login.jsx"
click node_signup "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/signup.jsx"
click node_login "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/login.jsx"
click node_feed "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/feed.jsx"
click node_friends "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/friends.jsx"
click node_dither "https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/components/DitherVeil/DitherVeil.jsx"

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_auth,node_user toneBlue
class node_signup,node_login,node_feed,node_friends toneAmber
class node_dither toneMint
class node_api,node_supabase toneRose
```

## Components

### Navigation and access

- [Router and guards](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/App.jsx): `src/App.jsx`
- [Auth context](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/context/login.jsx): `src/context/login.jsx`

### Social features

- [Sign up](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/signup.jsx): `src/pages/signup.jsx`
- [Log in](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/login.jsx): `src/pages/login.jsx`
- [Post feed](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/feed.jsx): `src/pages/feed.jsx`
- [Friend management](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/pages/friends.jsx): `src/pages/friends.jsx`

### Interactive presentation

- [Dither effect](https://github.com/joe-ship-it-nice/joefriends-frontend-sigma-mission-9/blob/main/src/components/DitherVeil/DitherVeil.jsx): `src/components/DitherVeil/DitherVeil.jsx`

### External services

- **Express API**
- **Supabase services**

### Other components

- **User**

## Connections

- User → Router and guards: uses (evidence: `README.md`)
- Router and guards → Auth context: provides context (evidence: `src/App.jsx`)
- Router and guards → Sign up: routes to (evidence: `src/App.jsx`)
- Router and guards → Log in: routes to (evidence: `src/App.jsx`)
- Router and guards → Post feed: guards route (evidence: `src/App.jsx`)
- Router and guards → Friend management: guards route (evidence: `src/App.jsx`)
- Sign up → Auth context: submits signup (evidence: `src/pages/signup.jsx`)
- Log in → Auth context: submits credentials (evidence: `src/pages/login.jsx`)
- Post feed → Auth context: requests posts (evidence: `src/pages/feed.jsx`)
- Friend management → Auth context: requests friendships (evidence: `src/pages/friends.jsx`)
- Auth context → Express API: fetches endpoints (evidence: `src/context/login.jsx`)
- Post feed → Dither effect: renders effect (evidence: `src/pages/feed.jsx`)
- Log in → Dither effect: renders effect (evidence: `src/pages/login.jsx`)
- Express API → Supabase services: uses auth and database (evidence: `README.md`)
