# claower3d/soc architecture

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

## Overview

New Age is a full-stack social and spiritual-services platform. Users enter through the React app, authenticate, then use social, media, messaging, commerce, and spiritual features; frontend API calls reach the Go server. The README documents a broad feature set, while source excerpts are partial, so some capability links are shown as unverified rather than asserted. The backend implementation was read but not excerpted, limiting detail about its internal services and state.

Main entry points: [`frontend/src/App.tsx`](https://github.com/claower3d/soc/blob/main/frontend/src/App.tsx) (React application), [`frontend/src/context/AuthContext.tsx`](https://github.com/claower3d/soc/blob/main/frontend/src/context/AuthContext.tsx) (Authentication), [`frontend/src/api.ts`](https://github.com/claower3d/soc/blob/main/frontend/src/api.ts) (API client), [`frontend/src/pages/MessengerPage.tsx`](https://github.com/claower3d/soc/blob/main/frontend/src/pages/MessengerPage.tsx) (Messaging)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and identity"]
  node_react_app["React application<br/>[App.tsx]"]
  node_auth["Authentication<br/>[AuthContext.tsx]"]
  node_auth_ui["Login and registration<br/>[AuthModal.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
  node_go_server["Go API server<br/>[main.go]"]
end

subgraph group_social["Social network"]
  node_feed["Feed and posts<br/>[FeedPage.tsx]"]
  node_profile["Profiles and channels<br/>[ProfilePage.tsx]"]
  node_search["Global search<br/>[SearchPage.tsx]"]
  node_dating["Dating<br/>[DatingPage.tsx]"]
  node_communities["Communities"]
end

subgraph group_media["Media and communication"]
  node_video["Video and channels<br/>[VideoPage.tsx]"]
  node_clips["Short clips<br/>[ClipsPage.tsx]"]
  node_video_editor["Video editor"]
  node_messenger["Messaging<br/>[MessengerPage.tsx]"]
  node_chat_window["Chat interface<br/>[ChatWindow.tsx]"]
  node_calls["Conferences<br/>[CallsPage.tsx]"]
  node_podcasts["Podcasts<br/>[PodcastsPage.tsx]"]
end

subgraph group_services["Commerce and services"]
  node_spiritual["Spiritual services<br/>[SpiritualPage.tsx]"]
  node_marketplace["Marketplace"]
  node_wallet["Wallet<br/>[WalletPage.tsx]"]
  node_services_page["Service directory<br/>[ServicesPage.tsx]"]
end

node_user(("User"))

node_user -->|"uses"| node_react_app
node_react_app -.->|"checks identity"| node_auth
node_react_app -->|"opens"| node_auth_ui
node_auth -->|"authenticates via"| node_api_client
node_api_client -->|"sends API requests"| node_go_server
node_react_app -->|"routes to"| node_feed
node_react_app -->|"routes to"| node_video
node_react_app -->|"routes to"| node_clips
node_react_app -->|"routes to"| node_messenger
node_react_app -->|"routes to"| node_profile
node_react_app -->|"routes to"| node_communities
node_react_app -->|"routes to"| node_video_editor
node_react_app -->|"routes to"| node_spiritual
node_react_app -.->|"routes to"| node_search
node_messenger -.->|"uses"| node_chat_window
node_react_app -.->|"provides"| node_dating
node_react_app -.->|"provides"| node_calls
node_react_app -.->|"provides"| node_podcasts
node_react_app -.->|"provides"| node_marketplace
node_react_app -.->|"provides"| node_wallet
node_react_app -.->|"provides"| node_services_page

click node_react_app "https://github.com/claower3d/soc/blob/main/frontend/src/App.tsx"
click node_auth "https://github.com/claower3d/soc/blob/main/frontend/src/context/AuthContext.tsx"
click node_auth_ui "https://github.com/claower3d/soc/blob/main/frontend/src/components/AuthModal.tsx"
click node_api_client "https://github.com/claower3d/soc/blob/main/frontend/src/api.ts"
click node_go_server "https://github.com/claower3d/soc/blob/main/backend/main.go"
click node_feed "https://github.com/claower3d/soc/blob/main/frontend/src/pages/FeedPage.tsx"
click node_profile "https://github.com/claower3d/soc/blob/main/frontend/src/pages/ProfilePage.tsx"
click node_search "https://github.com/claower3d/soc/blob/main/frontend/src/pages/SearchPage.tsx"
click node_dating "https://github.com/claower3d/soc/blob/main/frontend/src/pages/DatingPage.tsx"
click node_communities "https://github.com/claower3d/soc/blob/main/frontend/src/pages/CommunitiesPage.tsx"
click node_video "https://github.com/claower3d/soc/blob/main/frontend/src/pages/VideoPage.tsx"
click node_clips "https://github.com/claower3d/soc/blob/main/frontend/src/pages/ClipsPage.tsx"
click node_video_editor "https://github.com/claower3d/soc/blob/main/frontend/src/pages/VideoEditorPage.tsx"
click node_messenger "https://github.com/claower3d/soc/blob/main/frontend/src/pages/MessengerPage.tsx"
click node_chat_window "https://github.com/claower3d/soc/blob/main/frontend/src/components/ChatWindow.tsx"
click node_calls "https://github.com/claower3d/soc/blob/main/frontend/src/pages/CallsPage.tsx"
click node_podcasts "https://github.com/claower3d/soc/blob/main/frontend/src/pages/PodcastsPage.tsx"
click node_spiritual "https://github.com/claower3d/soc/blob/main/frontend/src/pages/SpiritualPage.tsx"
click node_marketplace "https://github.com/claower3d/soc/blob/main/frontend/src/pages/MarketplacePage.tsx"
click node_wallet "https://github.com/claower3d/soc/blob/main/frontend/src/pages/WalletPage.tsx"
click node_services_page "https://github.com/claower3d/soc/blob/main/frontend/src/pages/ServicesPage.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_react_app,node_auth,node_auth_ui,node_api_client,node_go_server,node_user toneBlue
class node_feed,node_profile,node_search,node_dating,node_communities toneAmber
class node_video,node_clips,node_video_editor,node_messenger,node_chat_window,node_calls,node_podcasts toneMint
class node_spiritual,node_marketplace,node_wallet,node_services_page toneRose
```

## Components

### Application and identity

- [React application](https://github.com/claower3d/soc/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Authentication](https://github.com/claower3d/soc/blob/main/frontend/src/context/AuthContext.tsx): `frontend/src/context/AuthContext.tsx`
- [Login and registration](https://github.com/claower3d/soc/blob/main/frontend/src/components/AuthModal.tsx): `frontend/src/components/AuthModal.tsx`
- [API client](https://github.com/claower3d/soc/blob/main/frontend/src/api.ts): `frontend/src/api.ts`
- [Go API server](https://github.com/claower3d/soc/blob/main/backend/main.go): `backend/main.go`

### Social network

- [Feed and posts](https://github.com/claower3d/soc/blob/main/frontend/src/pages/FeedPage.tsx): `frontend/src/pages/FeedPage.tsx`
- [Profiles and channels](https://github.com/claower3d/soc/blob/main/frontend/src/pages/ProfilePage.tsx): `frontend/src/pages/ProfilePage.tsx`
- [Global search](https://github.com/claower3d/soc/blob/main/frontend/src/pages/SearchPage.tsx): `frontend/src/pages/SearchPage.tsx`
- [Dating](https://github.com/claower3d/soc/blob/main/frontend/src/pages/DatingPage.tsx): `frontend/src/pages/DatingPage.tsx`
- [Communities](https://github.com/claower3d/soc/blob/main/frontend/src/pages/CommunitiesPage.tsx): `frontend/src/pages/CommunitiesPage.tsx`

### Media and communication

- [Video and channels](https://github.com/claower3d/soc/blob/main/frontend/src/pages/VideoPage.tsx): `frontend/src/pages/VideoPage.tsx`
- [Short clips](https://github.com/claower3d/soc/blob/main/frontend/src/pages/ClipsPage.tsx): `frontend/src/pages/ClipsPage.tsx`
- [Video editor](https://github.com/claower3d/soc/blob/main/frontend/src/pages/VideoEditorPage.tsx): `frontend/src/pages/VideoEditorPage.tsx`
- [Messaging](https://github.com/claower3d/soc/blob/main/frontend/src/pages/MessengerPage.tsx): `frontend/src/pages/MessengerPage.tsx`
- [Chat interface](https://github.com/claower3d/soc/blob/main/frontend/src/components/ChatWindow.tsx): `frontend/src/components/ChatWindow.tsx`
- [Conferences](https://github.com/claower3d/soc/blob/main/frontend/src/pages/CallsPage.tsx): `frontend/src/pages/CallsPage.tsx`
- [Podcasts](https://github.com/claower3d/soc/blob/main/frontend/src/pages/PodcastsPage.tsx): `frontend/src/pages/PodcastsPage.tsx`

### Commerce and services

- [Spiritual services](https://github.com/claower3d/soc/blob/main/frontend/src/pages/SpiritualPage.tsx): `frontend/src/pages/SpiritualPage.tsx`
- [Marketplace](https://github.com/claower3d/soc/blob/main/frontend/src/pages/MarketplacePage.tsx): `frontend/src/pages/MarketplacePage.tsx`
- [Wallet](https://github.com/claower3d/soc/blob/main/frontend/src/pages/WalletPage.tsx): `frontend/src/pages/WalletPage.tsx`
- [Service directory](https://github.com/claower3d/soc/blob/main/frontend/src/pages/ServicesPage.tsx): `frontend/src/pages/ServicesPage.tsx`

### Other components

- **User**

## Connections

- User → React application: uses
- React application → Authentication: checks identity (evidence: `frontend/src/App.tsx`)
- React application → Login and registration: opens (evidence: `frontend/src/App.tsx`)
- Authentication → API client: authenticates via (evidence: `frontend/src/context/AuthContext.tsx`)
- API client → Go API server: sends API requests
- React application → Feed and posts: routes to (evidence: `frontend/src/App.tsx`)
- React application → Video and channels: routes to (evidence: `frontend/src/App.tsx`)
- React application → Short clips: routes to (evidence: `frontend/src/App.tsx`)
- React application → Messaging: routes to (evidence: `frontend/src/App.tsx`)
- React application → Profiles and channels: routes to (evidence: `frontend/src/App.tsx`)
- React application → Communities: routes to (evidence: `frontend/src/App.tsx`)
- React application → Video editor: routes to (evidence: `frontend/src/App.tsx`)
- React application → Spiritual services: routes to (evidence: `frontend/src/App.tsx`)
- React application → Global search: routes to (evidence: `frontend/src/App.tsx`)
- Messaging → Chat interface: uses
- React application → Dating: provides (evidence: `frontend/src/App.tsx`)
- React application → Conferences: provides (evidence: `frontend/src/App.tsx`)
- React application → Podcasts: provides (evidence: `frontend/src/App.tsx`)
- React application → Marketplace: provides (evidence: `frontend/src/App.tsx`)
- React application → Wallet: provides (evidence: `frontend/src/App.tsx`)
- React application → Service directory: provides (evidence: `frontend/src/App.tsx`)
