# call-0f-code/call-of-code architecture

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

- Interactive diagram: https://gitdiagram.com/call-0f-code/call-of-code
- Repository: https://github.com/call-0f-code/call-of-code

## Overview

Call of Code is the public website for a programming club. Visitors browse the club homepage, projects, achievements, and member directory; member profiles assemble personal details, coding-platform statistics, projects, and achievements. The website also exposes API routes and uses the documented coc-api service; portfolio data additionally calls external coding platforms. Several page implementations and API routes were not excerpted, so the graph omits uncertain connections rather than inferring them from names.

Main entry points: [`app/members/[id]/page.tsx`](https://github.com/call-0f-code/call-of-code/blob/main/app/members/%5Bid%5D/page.tsx) (Member Profile Page), [`lib/actions/portfolio.ts`](https://github.com/call-0f-code/call-of-code/blob/main/lib/actions/portfolio.ts) (Portfolio Data Loader), [`app/page.tsx`](https://github.com/call-0f-code/call-of-code/blob/main/app/page.tsx) (Homepage), [`components/portfolio/PortfolioBentoGrid.tsx`](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioBentoGrid.tsx) (Coding Statistics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Club Website"]
  node_home["Homepage<br/>[page.tsx]"]
  node_homecontent["Home Experience<br/>[Home.tsx]"]
  node_about["Club Overview<br/>[About.tsx]"]
  node_navigation["Site Navigation<br/>[Navbar.tsx]"]
  node_footer["Site Footer<br/>[Footer.tsx]"]
end

subgraph group_discovery["Club Content"]
  node_projects["Project Gallery<br/>[page.tsx]"]
  node_projectcards["Project Cards<br/>[BentoCard.tsx]"]
  node_projectloading["Project Loading<br/>[skeletonLoader.tsx]"]
  node_achievements["Achievements Page<br/>[page.tsx]"]
  node_achievementview["Achievement Display<br/>[Achievement.tsx]"]
  node_achievementcard["Achievement Cards"]
  node_members["Member Directory<br/>[page.tsx]"]
  node_memberlist["Member Listings<br/>[Members-Text.tsx]"]
end

subgraph group_profiles["Member Portfolios"]
  node_memberprofile["Member Profile Page<br/>[page.tsx]"]
  node_portfolioaction["Portfolio Data Loader<br/>[portfolio.ts]"]
  node_portfoliohero["Profile Overview<br/>[PortfolioHero.tsx]"]
  node_portfoliostats["Coding Statistics"]
  node_platformicons["Platform Icons<br/>[PlatformIcons.tsx]"]
  node_portfolioheatmap["Contribution Heatmap<br/>[HeatmapDeck.tsx]"]
  node_platformcard["Platform Cards<br/>[PlatformCard.tsx]"]
  node_portfolioprojects["Profile Projects"]
  node_portfoliotimeline["Achievement Timeline"]
end

subgraph group_services["Data Services"]
  node_platformdata["Platform Data Fetchers"]
  node_clubapi["COC API"]
  node_api_home["Home API Route<br/>[route.ts]"]
  node_api_members["Members API Route<br/>[route.ts]"]
  node_api_projects["Projects API Route<br/>[route.ts]"]
  node_api_achievement["Achievement API Route<br/>[route.ts]"]
end

node_visitor(("Website Visitor"))
node_github["GitHub"]
node_codingplatforms["Coding Platforms"]

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_homecontent
node_home -->|"renders"| node_about
node_home -->|"renders"| node_footer
node_achievements -->|"renders"| node_achievementview
node_achievementview -->|"renders"| node_achievementcard
node_achievementview -->|"fetches members"| node_api_achievement
node_members -->|"renders"| node_memberlist
node_memberprofile -->|"loads data"| node_portfolioaction
node_portfolioaction -->|"fetches statistics"| node_platformdata
node_portfolioaction -->|"fetches member data"| node_clubapi
node_portfolioaction -->|"loads repositories"| node_github
node_portfolioaction -->|"loads statistics"| node_codingplatforms
node_memberprofile -->|"renders"| node_portfoliohero
node_memberprofile -->|"renders"| node_portfoliostats
node_memberprofile -->|"renders"| node_portfolioprojects
node_memberprofile -->|"renders"| node_portfoliotimeline
node_portfoliostats -->|"uses icons"| node_platformicons
node_portfoliostats -->|"renders"| node_portfolioheatmap
node_portfoliostats -->|"renders"| node_platformcard
node_projects -->|"renders"| node_projectcards
node_projects -->|"uses fallback"| node_projectloading

click node_home "https://github.com/call-0f-code/call-of-code/blob/main/app/page.tsx"
click node_homecontent "https://github.com/call-0f-code/call-of-code/blob/main/components/Home.tsx"
click node_about "https://github.com/call-0f-code/call-of-code/blob/main/components/About.tsx"
click node_navigation "https://github.com/call-0f-code/call-of-code/blob/main/components/Navbar.tsx"
click node_footer "https://github.com/call-0f-code/call-of-code/blob/main/components/Footer.tsx"
click node_projects "https://github.com/call-0f-code/call-of-code/blob/main/app/projects/page.tsx"
click node_projectcards "https://github.com/call-0f-code/call-of-code/blob/main/components/ui/BentoCard.tsx"
click node_projectloading "https://github.com/call-0f-code/call-of-code/blob/main/app/projects/skeletonLoader.tsx"
click node_achievements "https://github.com/call-0f-code/call-of-code/blob/main/app/achievements/page.tsx"
click node_achievementview "https://github.com/call-0f-code/call-of-code/blob/main/components/Achievement.tsx"
click node_achievementcard "https://github.com/call-0f-code/call-of-code/blob/main/components/ui/achievement-card.tsx"
click node_members "https://github.com/call-0f-code/call-of-code/blob/main/app/members/page.tsx"
click node_memberlist "https://github.com/call-0f-code/call-of-code/blob/main/components/Members-Text.tsx"
click node_memberprofile "https://github.com/call-0f-code/call-of-code/blob/main/app/members/%5Bid%5D/page.tsx"
click node_portfolioaction "https://github.com/call-0f-code/call-of-code/blob/main/lib/actions/portfolio.ts"
click node_portfoliohero "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioHero.tsx"
click node_portfoliostats "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioBentoGrid.tsx"
click node_platformicons "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PlatformIcons.tsx"
click node_portfolioheatmap "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/HeatmapDeck.tsx"
click node_platformcard "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PlatformCard.tsx"
click node_portfolioprojects "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioProjects.tsx"
click node_portfoliotimeline "https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioTimeline.tsx"
click node_platformdata "https://github.com/call-0f-code/call-of-code/blob/main/lib/api/external-platforms.ts"
click node_api_home "https://github.com/call-0f-code/call-of-code/blob/main/app/api/home/route.ts"
click node_api_members "https://github.com/call-0f-code/call-of-code/blob/main/app/api/members/route.ts"
click node_api_projects "https://github.com/call-0f-code/call-of-code/blob/main/app/api/projects-with-members/route.ts"
click node_api_achievement "https://github.com/call-0f-code/call-of-code/blob/main/app/api/achievements/%5Bid%5D/route.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_home,node_homecontent,node_about,node_navigation,node_footer toneBlue
class node_projects,node_projectcards,node_projectloading,node_achievements,node_achievementview,node_achievementcard,node_members,node_memberlist toneAmber
class node_memberprofile,node_portfolioaction,node_portfoliohero,node_portfoliostats,node_platformicons,node_portfolioheatmap,node_platformcard,node_portfolioprojects,node_portfoliotimeline toneMint
class node_platformdata,node_clubapi,node_api_home,node_api_members,node_api_projects,node_api_achievement toneRose
class node_visitor,node_github,node_codingplatforms toneIndigo
```

## Components

### Club Website

- [Homepage](https://github.com/call-0f-code/call-of-code/blob/main/app/page.tsx): `app/page.tsx`
- [Home Experience](https://github.com/call-0f-code/call-of-code/blob/main/components/Home.tsx): `components/Home.tsx`
- [Club Overview](https://github.com/call-0f-code/call-of-code/blob/main/components/About.tsx): `components/About.tsx`
- [Site Navigation](https://github.com/call-0f-code/call-of-code/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Site Footer](https://github.com/call-0f-code/call-of-code/blob/main/components/Footer.tsx): `components/Footer.tsx`

### Club Content

- [Project Gallery](https://github.com/call-0f-code/call-of-code/blob/main/app/projects/page.tsx): `app/projects/page.tsx`
- [Project Cards](https://github.com/call-0f-code/call-of-code/blob/main/components/ui/BentoCard.tsx): `components/ui/BentoCard.tsx`
- [Project Loading](https://github.com/call-0f-code/call-of-code/blob/main/app/projects/skeletonLoader.tsx): `app/projects/skeletonLoader.tsx`
- [Achievements Page](https://github.com/call-0f-code/call-of-code/blob/main/app/achievements/page.tsx): `app/achievements/page.tsx`
- [Achievement Display](https://github.com/call-0f-code/call-of-code/blob/main/components/Achievement.tsx): `components/Achievement.tsx`
- [Achievement Cards](https://github.com/call-0f-code/call-of-code/blob/main/components/ui/achievement-card.tsx): `components/ui/achievement-card.tsx`
- [Member Directory](https://github.com/call-0f-code/call-of-code/blob/main/app/members/page.tsx): `app/members/page.tsx`
- [Member Listings](https://github.com/call-0f-code/call-of-code/blob/main/components/Members-Text.tsx): `components/Members-Text.tsx`

### Member Portfolios

- [Member Profile Page](https://github.com/call-0f-code/call-of-code/blob/main/app/members/%5Bid%5D/page.tsx): `app/members/[id]/page.tsx`
- [Portfolio Data Loader](https://github.com/call-0f-code/call-of-code/blob/main/lib/actions/portfolio.ts): `lib/actions/portfolio.ts`
- [Profile Overview](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioHero.tsx): `components/portfolio/PortfolioHero.tsx`
- [Coding Statistics](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioBentoGrid.tsx): `components/portfolio/PortfolioBentoGrid.tsx`
- [Platform Icons](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PlatformIcons.tsx): `components/portfolio/PlatformIcons.tsx`
- [Contribution Heatmap](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/HeatmapDeck.tsx): `components/portfolio/HeatmapDeck.tsx`
- [Platform Cards](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PlatformCard.tsx): `components/portfolio/PlatformCard.tsx`
- [Profile Projects](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioProjects.tsx): `components/portfolio/PortfolioProjects.tsx`
- [Achievement Timeline](https://github.com/call-0f-code/call-of-code/blob/main/components/portfolio/PortfolioTimeline.tsx): `components/portfolio/PortfolioTimeline.tsx`

### Data Services

- [Platform Data Fetchers](https://github.com/call-0f-code/call-of-code/blob/main/lib/api/external-platforms.ts): `lib/api/external-platforms.ts`
- **COC API**
- [Home API Route](https://github.com/call-0f-code/call-of-code/blob/main/app/api/home/route.ts): `app/api/home/route.ts`
- [Members API Route](https://github.com/call-0f-code/call-of-code/blob/main/app/api/members/route.ts): `app/api/members/route.ts`
- [Projects API Route](https://github.com/call-0f-code/call-of-code/blob/main/app/api/projects-with-members/route.ts): `app/api/projects-with-members/route.ts`
- [Achievement API Route](https://github.com/call-0f-code/call-of-code/blob/main/app/api/achievements/%5Bid%5D/route.ts): `app/api/achievements/[id]/route.ts`

### Other components

- **Website Visitor**
- **GitHub**
- **Coding Platforms**

## Connections

- Website Visitor → Homepage: opens (evidence: `app/page.tsx`)
- Homepage → Home Experience: renders (evidence: `app/page.tsx`)
- Homepage → Club Overview: renders (evidence: `app/page.tsx`)
- Homepage → Site Footer: renders (evidence: `app/page.tsx`)
- Achievements Page → Achievement Display: renders (evidence: `app/achievements/page.tsx`)
- Achievement Display → Achievement Cards: renders (evidence: `components/Achievement.tsx`)
- Achievement Display → Achievement API Route: fetches members (evidence: `components/Achievement.tsx`)
- Member Directory → Member Listings: renders (evidence: `app/members/page.tsx`)
- Member Profile Page → Portfolio Data Loader: loads data (evidence: `app/members/[id]/page.tsx`)
- Portfolio Data Loader → Platform Data Fetchers: fetches statistics (evidence: `lib/actions/portfolio.ts`)
- Portfolio Data Loader → COC API: fetches member data (evidence: `lib/actions/portfolio.ts`)
- Portfolio Data Loader → GitHub: loads repositories (evidence: `lib/actions/portfolio.ts`)
- Portfolio Data Loader → Coding Platforms: loads statistics (evidence: `lib/actions/portfolio.ts`)
- Member Profile Page → Profile Overview: renders (evidence: `app/members/[id]/page.tsx`)
- Member Profile Page → Coding Statistics: renders (evidence: `app/members/[id]/page.tsx`)
- Member Profile Page → Profile Projects: renders (evidence: `app/members/[id]/page.tsx`)
- Member Profile Page → Achievement Timeline: renders (evidence: `app/members/[id]/page.tsx`)
- Coding Statistics → Platform Icons: uses icons (evidence: `components/portfolio/PortfolioBentoGrid.tsx`)
- Coding Statistics → Contribution Heatmap: renders (evidence: `components/portfolio/PortfolioBentoGrid.tsx`)
- Coding Statistics → Platform Cards: renders (evidence: `components/portfolio/PortfolioBentoGrid.tsx`)
- Project Gallery → Project Cards: renders (evidence: `app/projects/page.tsx`)
- Project Gallery → Project Loading: uses fallback (evidence: `app/projects/page.tsx`)
