# whiteblobbob/projectmatch architecture

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

- Interactive diagram: https://gitdiagram.com/whiteblobbob/projectmatch
- Repository: https://github.com/whiteblobbob/projectmatch

## Overview

ProjectMatch is a collaboration platform for Indonesian students to find teammates and manage projects. Its main workflow runs from account setup and student verification, through project discovery or creation and applications, to owner review, team coordination, completion, and peer reviews. The graph also preserves profile, notification, reporting, and administration capabilities. Source excerpts show selected page/action calls and storage integrations; other capability links are documented in the README, so unsampled implementation details are not inferred.

Main entry points: [`app/actions/project.ts`](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/project.ts) (Project actions), [`app/actions/profile.ts`](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/profile.ts) (Profile actions), [`app/components/project/application-form.tsx`](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/project/application-form.tsx) (Application form), [`app/lib/prisma.ts`](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/prisma.ts) (PostgreSQL via Prisma)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity &amp; Profiles"]
  node_authui["Account screens<br/>[register-form.tsx]"]
  node_authactions["Account actions<br/>[auth.ts]"]
  node_verify["Student verification<br/>[verification.ts]"]
  node_profilepage["Profile pages<br/>[mainprofil.tsx]"]
  node_profileactions["Profile actions<br/>[profile.ts]"]
end

subgraph group_projects["Project Discovery &amp; Recruitment"]
  node_explore["Project browsing"]
  node_projectactions["Project actions<br/>[project.ts]"]
  node_projectform["Project creation"]
  node_applyform["Application form"]
  node_eligibility["Eligibility checks<br/>[eligibility.ts]"]
end

subgraph group_collaboration["Team Collaboration"]
  node_review["Application review"]
  node_activity["Activity overview<br/>[page.tsx]"]
  node_workspace["Project workspace"]
  node_meetings["Meeting details<br/>[meeting.ts]"]
  node_peerreview["Peer reviews"]
end

subgraph group_operations["Administration &amp; Services"]
  node_supabase[("Supabase Auth")]
  node_image["Image storage<br/>[cloudinary.ts]"]
  node_notifications["Notifications<br/>[notification.ts]"]
  node_admin["Admin panel"]
  node_adminactions["Admin actions<br/>[admin.ts]"]
  node_database[("PostgreSQL via Prisma<br/>[prisma.ts]")]
  node_email["Verification email"]
end

node_visitor(("Student / visitor"))
node_resend["Resend"]

node_visitor -->|"registers"| node_authui
node_authui -.->|"submits account"| node_authactions
node_authactions -->|"authenticates"| node_supabase
node_visitor -->|"verifies student"| node_verify
node_verify -.->|"sends verification"| node_email
node_email -->|"delivers email"| node_resend
node_visitor -->|"maintains profile"| node_profilepage
node_profilepage -->|"loads profile"| node_profileactions
node_profileactions -->|"reads and writes"| node_database
node_profileactions -->|"uploads images"| node_image
node_visitor -->|"browses projects"| node_explore
node_explore -.->|"queries projects"| node_projectactions
node_visitor -->|"creates project"| node_projectform
node_projectform -.->|"submits project"| node_projectactions
node_visitor -->|"applies to project"| node_applyform
node_applyform -->|"checks eligibility"| node_eligibility
node_applyform -.->|"submits application"| node_projectactions
node_review -->|"accepts or rejects"| node_projectactions
node_projectactions -->|"reads and writes"| node_database
node_projectactions -->|"creates alerts"| node_notifications
node_visitor -->|"views activity"| node_activity
node_activity -->|"loads overview"| node_projectactions
node_visitor -->|"manages collaboration"| node_workspace
node_workspace -.->|"shows meeting details"| node_meetings
node_visitor -->|"reviews teammates"| node_peerreview
node_peerreview -->|"submits reviews"| node_projectactions
node_visitor -->|"reports project"| node_admin
node_admin -->|"manages records"| node_adminactions
node_adminactions -->|"reads and writes"| node_database

click node_authui "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/auth/register-form.tsx"
click node_authactions "https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/auth.ts"
click node_verify "https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/verification.ts"
click node_profilepage "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/page/mainprofil.tsx"
click node_profileactions "https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/profile.ts"
click node_image "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/cloudinary.ts"
click node_explore "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/explore/project-filters.tsx"
click node_projectactions "https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/project.ts"
click node_projectform "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/project/create-project-form.tsx"
click node_applyform "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/project/application-form.tsx"
click node_eligibility "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/eligibility.ts"
click node_review "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/kelola/applicant-review-card.tsx"
click node_activity "https://github.com/whiteblobbob/projectmatch/blob/main/app/activity/page.tsx"
click node_workspace "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/project-workspace-view.tsx"
click node_meetings "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/ui/meeting.ts"
click node_peerreview "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/peer-review-section.tsx"
click node_notifications "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/notification.ts"
click node_admin "https://github.com/whiteblobbob/projectmatch/blob/main/app/components/admin/admin-table-view.tsx"
click node_adminactions "https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/admin.ts"
click node_database "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/prisma.ts"
click node_email "https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/email/verification-email.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_authui,node_authactions,node_verify,node_profilepage,node_profileactions toneBlue
class node_explore,node_projectactions,node_projectform,node_applyform,node_eligibility toneAmber
class node_review,node_activity,node_workspace,node_meetings,node_peerreview toneMint
class node_supabase,node_image,node_notifications,node_admin,node_adminactions,node_database,node_email toneRose
class node_visitor,node_resend toneIndigo
```

## Components

### Identity & Profiles

- [Account screens](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/auth/register-form.tsx): `app/components/auth/register-form.tsx`
- [Account actions](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/auth.ts): `app/actions/auth.ts`
- [Student verification](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/verification.ts): `app/actions/verification.ts`
- [Profile pages](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/page/mainprofil.tsx): `app/components/page/mainprofil.tsx`
- [Profile actions](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/profile.ts): `app/actions/profile.ts`

### Project Discovery & Recruitment

- [Project browsing](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/explore/project-filters.tsx): `app/components/explore/project-filters.tsx`
- [Project actions](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/project.ts): `app/actions/project.ts`
- [Project creation](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/project/create-project-form.tsx): `app/components/project/create-project-form.tsx`
- [Application form](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/project/application-form.tsx): `app/components/project/application-form.tsx`
- [Eligibility checks](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/eligibility.ts): `app/lib/eligibility.ts`

### Team Collaboration

- [Application review](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/kelola/applicant-review-card.tsx): `app/components/activity/kelola/applicant-review-card.tsx`
- [Activity overview](https://github.com/whiteblobbob/projectmatch/blob/main/app/activity/page.tsx): `app/activity/page.tsx`
- [Project workspace](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/project-workspace-view.tsx): `app/components/activity/project-workspace-view.tsx`
- [Meeting details](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/ui/meeting.ts): `app/lib/ui/meeting.ts`
- [Peer reviews](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/activity/peer-review-section.tsx): `app/components/activity/peer-review-section.tsx`

### Administration & Services

- **Supabase Auth**
- [Image storage](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/cloudinary.ts): `app/lib/cloudinary.ts`
- [Notifications](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/notification.ts): `app/lib/notification.ts`
- [Admin panel](https://github.com/whiteblobbob/projectmatch/blob/main/app/components/admin/admin-table-view.tsx): `app/components/admin/admin-table-view.tsx`
- [Admin actions](https://github.com/whiteblobbob/projectmatch/blob/main/app/actions/admin.ts): `app/actions/admin.ts`
- [PostgreSQL via Prisma](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/prisma.ts): `app/lib/prisma.ts`
- [Verification email](https://github.com/whiteblobbob/projectmatch/blob/main/app/lib/email/verification-email.ts): `app/lib/email/verification-email.ts`

### Other components

- **Student / visitor**
- **Resend**

## Connections

- Student / visitor → Account screens: registers
- Account screens → Account actions: submits account
- Account actions → Supabase Auth: authenticates (evidence: `app/actions/auth.ts`)
- Student / visitor → Student verification: verifies student
- Student verification → Verification email: sends verification
- Verification email → Resend: delivers email
- Student / visitor → Profile pages: maintains profile
- Profile pages → Profile actions: loads profile (evidence: `app/profile/page.tsx`)
- Profile actions → PostgreSQL via Prisma: reads and writes (evidence: `app/actions/profile.ts`)
- Profile actions → Image storage: uploads images (evidence: `app/actions/profile.ts`)
- Student / visitor → Project browsing: browses projects
- Project browsing → Project actions: queries projects
- Student / visitor → Project creation: creates project
- Project creation → Project actions: submits project
- Student / visitor → Application form: applies to project
- Application form → Eligibility checks: checks eligibility (evidence: `app/project/[id]/apply/page.tsx`)
- Application form → Project actions: submits application
- Application review → Project actions: accepts or rejects (evidence: `app/components/activity/kelola/applicant-review-card.tsx`)
- Project actions → PostgreSQL via Prisma: reads and writes (evidence: `app/actions/project.ts`)
- Project actions → Notifications: creates alerts (evidence: `app/actions/project.ts`)
- Student / visitor → Activity overview: views activity
- Activity overview → Project actions: loads overview (evidence: `app/activity/page.tsx`)
- Student / visitor → Project workspace: manages collaboration
- Project workspace → Meeting details: shows meeting details
- Student / visitor → Peer reviews: reviews teammates
- Peer reviews → Project actions: submits reviews (evidence: `app/components/activity/peer-review-section.tsx`)
- Student / visitor → Admin panel: reports project
- Admin panel → Admin actions: manages records (evidence: `app/admin/[table]/page.tsx`)
- Admin actions → PostgreSQL via Prisma: reads and writes (evidence: `app/actions/admin.ts`)
