# hardikjain25-dev/pcell architecture

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

- Interactive diagram: https://gitdiagram.com/hardikjain25-dev/pcell
- Repository: https://github.com/hardikjain25-dev/pcell

## Overview

This is a college placement-cell website: visitors explore placement outcomes, recruiter information, drives, events, and the student team; administrators manage drive, event, and team content. The sampled routes and source index show a Next.js presentation layer, API handlers, and Turso-backed data access. Some UI-to-API wiring is not shown in the excerpts or reference lists, so those connections are omitted rather than inferred.

Main entry points: [`app/home/home.tsx`](https://github.com/hardikjain25-dev/pcell/blob/main/app/home/home.tsx) (Landing page), [`app/drive/page.tsx`](https://github.com/hardikjain25-dev/pcell/blob/main/app/drive/page.tsx) (Drive listings), [`app/team/page.tsx`](https://github.com/hardikjain25-dev/pcell/blob/main/app/team/page.tsx) (Team page), [`types/drive.ts`](https://github.com/hardikjain25-dev/pcell/blob/main/types/drive.ts) (Drive data model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public experience"]
  node_home["Landing page<br/>[home.tsx]"]
  node_root["Home route<br/>[page.tsx]"]
  node_landing_sections["Landing sections"]
  node_outcomes["Placement metrics"]
  node_charts["Outcome charts<br/>[heroCharts.tsx]"]
  node_pie_chart["Internship chart<br/>[heroChartstwo.tsx]"]
  node_docs_section["Documentation section"]
  node_faq["FAQ section<br/>[faq-section.tsx]"]
  node_cta["Call to action<br/>[cta-section.tsx]"]
end

subgraph group_content["Career content"]
  node_recruiter["Recruiter information<br/>[page.tsx]"]
  node_logo_loop["Partner logo loop<br/>[logoLoop.tsx]"]
  node_drive_page["Drive listings<br/>[page.tsx]"]
  node_drive_detail["Drive detail modal"]
  node_image_lightbox["Image lightbox<br/>[ImageLightbox.tsx]"]
  node_drive_type["Drive data model<br/>[drive.ts]"]
  node_events_page["Events page<br/>[page.tsx]"]
  node_events_tab["Event display<br/>[eventsTab.tsx]"]
  node_event_type["Event data model<br/>[event.ts]"]
  node_team_page["Team page<br/>[page.tsx]"]
  node_convener["Convener profile<br/>[convener.tsx]"]
  node_team_display["Team display<br/>[team.tsx]"]
  node_team_data["Student team data<br/>[studentsteam.ts]"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin interface"]
  node_drive_admin_api["Drive management API<br/>[route.ts]"]
  node_event_admin_api["Event management API<br/>[route.ts]"]
  node_event_api["Public events API<br/>[route.ts]"]
  node_drive_next_api["Upcoming drives API<br/>[route.ts]"]
  node_drive_past_api["Past drives API<br/>[route.ts]"]
  node_team_api["Team management API<br/>[route.ts]"]
  node_team_sync_api["Team sync API<br/>[route.ts]"]
end

subgraph group_data["Data services"]
  node_drives_db[("Drives database access<br/>[db-drives.ts]")]
  node_events_db[("Events database access<br/>[db-events.ts]")]
  node_team_db[("Team database access<br/>[db-team.ts]")]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_root
node_root -->|"renders"| node_home
node_home -->|"renders"| node_landing_sections
node_home -->|"renders"| node_outcomes
node_home -->|"renders"| node_charts
node_home -->|"renders"| node_pie_chart
node_home -->|"renders"| node_docs_section
node_home -->|"renders"| node_faq
node_home -->|"renders"| node_cta
node_visitor -->|"views"| node_recruiter
node_recruiter -->|"renders"| node_logo_loop
node_visitor -.->|"views"| node_drive_page
node_drive_page -->|"renders"| node_drive_detail
node_drive_page -->|"renders"| node_image_lightbox
node_drive_page -->|"uses type"| node_drive_type
node_visitor -.->|"views"| node_events_page
node_events_page -->|"renders"| node_events_tab
node_events_tab -->|"uses type"| node_event_type
node_visitor -.->|"views"| node_team_page
node_team_page -->|"renders"| node_convener
node_team_page -->|"renders"| node_team_display
node_team_page -->|"loads"| node_team_data
node_admin_ui -.->|"manages drives"| node_drive_admin_api
node_admin_ui -.->|"manages events"| node_event_admin_api
node_drive_admin_api -->|"reads and writes"| node_drives_db
node_drive_admin_api -->|"uses type"| node_drive_type
node_event_admin_api -->|"reads and writes"| node_events_db
node_event_admin_api -->|"uses type"| node_event_type
node_event_api -->|"reads and writes"| node_events_db
node_event_api -->|"uses type"| node_event_type
node_drive_next_api -->|"reads"| node_drives_db
node_drive_next_api -->|"uses type"| node_drive_type
node_drive_past_api -->|"reads"| node_drives_db
node_drive_past_api -->|"uses type"| node_drive_type
node_team_api -->|"accesses"| node_team_db
node_team_sync_api -->|"accesses"| node_team_db
node_team_data -->|"loads data"| node_team_db

click node_home "https://github.com/hardikjain25-dev/pcell/blob/main/app/home/home.tsx"
click node_root "https://github.com/hardikjain25-dev/pcell/blob/main/app/page.tsx"
click node_landing_sections "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/smart-simple-brilliant.tsx"
click node_outcomes "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/numbers-that-speak.tsx"
click node_charts "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/heroCharts.tsx"
click node_pie_chart "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/heroChartstwo.tsx"
click node_docs_section "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/documentation-section.tsx"
click node_faq "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/faq-section.tsx"
click node_cta "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/cta-section.tsx"
click node_recruiter "https://github.com/hardikjain25-dev/pcell/blob/main/app/recruiter/page.tsx"
click node_logo_loop "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/logoLoop.tsx"
click node_drive_page "https://github.com/hardikjain25-dev/pcell/blob/main/app/drive/page.tsx"
click node_drive_detail "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/DriveDetailModal.tsx"
click node_image_lightbox "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/ImageLightbox.tsx"
click node_drive_type "https://github.com/hardikjain25-dev/pcell/blob/main/types/drive.ts"
click node_events_page "https://github.com/hardikjain25-dev/pcell/blob/main/app/events/page.tsx"
click node_events_tab "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/ui/eventsTab.tsx"
click node_event_type "https://github.com/hardikjain25-dev/pcell/blob/main/types/event.ts"
click node_team_page "https://github.com/hardikjain25-dev/pcell/blob/main/app/team/page.tsx"
click node_convener "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/convener.tsx"
click node_team_display "https://github.com/hardikjain25-dev/pcell/blob/main/app/components/team.tsx"
click node_team_data "https://github.com/hardikjain25-dev/pcell/blob/main/lib/studentsteam.ts"
click node_admin_ui "https://github.com/hardikjain25-dev/pcell/tree/main/app/admin"
click node_drive_admin_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/drives/route.ts"
click node_event_admin_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/events/route.ts"
click node_event_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/events/route.ts"
click node_drive_next_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/drives/next/route.ts"
click node_drive_past_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/drives/past/route.ts"
click node_team_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/team/route.ts"
click node_team_sync_api "https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/team/sync/route.ts"
click node_drives_db "https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-drives.ts"
click node_events_db "https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-events.ts"
click node_team_db "https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-team.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_root,node_landing_sections,node_outcomes,node_charts,node_pie_chart,node_docs_section,node_faq,node_cta toneBlue
class node_recruiter,node_logo_loop,node_drive_page,node_drive_detail,node_image_lightbox,node_drive_type,node_events_page,node_events_tab,node_event_type,node_team_page,node_convener,node_team_display,node_team_data toneAmber
class node_admin_ui,node_drive_admin_api,node_event_admin_api,node_event_api,node_drive_next_api,node_drive_past_api,node_team_api,node_team_sync_api toneMint
class node_drives_db,node_events_db,node_team_db toneRose
class node_visitor toneIndigo
```

## Components

### Public experience

- [Landing page](https://github.com/hardikjain25-dev/pcell/blob/main/app/home/home.tsx): `app/home/home.tsx`
- [Home route](https://github.com/hardikjain25-dev/pcell/blob/main/app/page.tsx): `app/page.tsx`
- [Landing sections](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/smart-simple-brilliant.tsx): `app/components/smart-simple-brilliant.tsx`
- [Placement metrics](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/numbers-that-speak.tsx): `app/components/numbers-that-speak.tsx`
- [Outcome charts](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/heroCharts.tsx): `app/components/heroCharts.tsx`
- [Internship chart](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/heroChartstwo.tsx): `app/components/heroChartstwo.tsx`
- [Documentation section](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/documentation-section.tsx): `app/components/documentation-section.tsx`
- [FAQ section](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/faq-section.tsx): `app/components/faq-section.tsx`
- [Call to action](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/cta-section.tsx): `app/components/cta-section.tsx`

### Career content

- [Recruiter information](https://github.com/hardikjain25-dev/pcell/blob/main/app/recruiter/page.tsx): `app/recruiter/page.tsx`
- [Partner logo loop](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/logoLoop.tsx): `app/components/logoLoop.tsx`
- [Drive listings](https://github.com/hardikjain25-dev/pcell/blob/main/app/drive/page.tsx): `app/drive/page.tsx`
- [Drive detail modal](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/DriveDetailModal.tsx): `app/components/DriveDetailModal.tsx`
- [Image lightbox](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/ImageLightbox.tsx): `app/components/ImageLightbox.tsx`
- [Drive data model](https://github.com/hardikjain25-dev/pcell/blob/main/types/drive.ts): `types/drive.ts`
- [Events page](https://github.com/hardikjain25-dev/pcell/blob/main/app/events/page.tsx): `app/events/page.tsx`
- [Event display](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/ui/eventsTab.tsx): `app/components/ui/eventsTab.tsx`
- [Event data model](https://github.com/hardikjain25-dev/pcell/blob/main/types/event.ts): `types/event.ts`
- [Team page](https://github.com/hardikjain25-dev/pcell/blob/main/app/team/page.tsx): `app/team/page.tsx`
- [Convener profile](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/convener.tsx): `app/components/convener.tsx`
- [Team display](https://github.com/hardikjain25-dev/pcell/blob/main/app/components/team.tsx): `app/components/team.tsx`
- [Student team data](https://github.com/hardikjain25-dev/pcell/blob/main/lib/studentsteam.ts): `lib/studentsteam.ts`

### Administration

- [Admin interface](https://github.com/hardikjain25-dev/pcell/tree/main/app/admin): `app/admin`
- [Drive management API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/drives/route.ts): `app/api/admin/drives/route.ts`
- [Event management API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/events/route.ts): `app/api/admin/events/route.ts`
- [Public events API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/events/route.ts): `app/api/events/route.ts`
- [Upcoming drives API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/drives/next/route.ts): `app/api/drives/next/route.ts`
- [Past drives API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/drives/past/route.ts): `app/api/drives/past/route.ts`
- [Team management API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/team/route.ts): `app/api/admin/team/route.ts`
- [Team sync API](https://github.com/hardikjain25-dev/pcell/blob/main/app/api/admin/team/sync/route.ts): `app/api/admin/team/sync/route.ts`

### Data services

- [Drives database access](https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-drives.ts): `lib/db-drives.ts`
- [Events database access](https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-events.ts): `lib/db-events.ts`
- [Team database access](https://github.com/hardikjain25-dev/pcell/blob/main/lib/db-team.ts): `lib/db-team.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home route: opens site (evidence: `app/page.tsx`)
- Home route → Landing page: renders (evidence: `app/page.tsx`)
- Landing page → Landing sections: renders (evidence: `app/home/home.tsx`)
- Landing page → Placement metrics: renders (evidence: `app/home/home.tsx`)
- Landing page → Outcome charts: renders (evidence: `app/home/home.tsx`)
- Landing page → Internship chart: renders (evidence: `app/home/home.tsx`)
- Landing page → Documentation section: renders (evidence: `app/home/home.tsx`)
- Landing page → FAQ section: renders (evidence: `app/home/home.tsx`)
- Landing page → Call to action: renders (evidence: `app/home/home.tsx`)
- Site visitor → Recruiter information: views (evidence: `app/recruiter/page.tsx`)
- Recruiter information → Partner logo loop: renders (evidence: `app/recruiter/page.tsx`)
- Site visitor → Drive listings: views
- Drive listings → Drive detail modal: renders (evidence: `app/drive/page.tsx`)
- Drive listings → Image lightbox: renders (evidence: `app/drive/page.tsx`)
- Drive listings → Drive data model: uses type (evidence: `app/drive/page.tsx`)
- Site visitor → Events page: views
- Events page → Event display: renders (evidence: `app/events/page.tsx`)
- Event display → Event data model: uses type (evidence: `app/components/ui/eventsTab.tsx`)
- Site visitor → Team page: views
- Team page → Convener profile: renders (evidence: `app/team/page.tsx`)
- Team page → Team display: renders (evidence: `app/team/page.tsx`)
- Team page → Student team data: loads (evidence: `app/team/page.tsx`)
- Admin interface → Drive management API: manages drives
- Admin interface → Event management API: manages events
- Drive management API → Drives database access: reads and writes (evidence: `app/api/admin/drives/route.ts`)
- Drive management API → Drive data model: uses type (evidence: `app/api/admin/drives/route.ts`)
- Event management API → Events database access: reads and writes (evidence: `app/api/admin/events/route.ts`)
- Event management API → Event data model: uses type (evidence: `app/api/admin/events/route.ts`)
- Public events API → Events database access: reads and writes (evidence: `app/api/events/route.ts`)
- Public events API → Event data model: uses type (evidence: `app/api/events/route.ts`)
- Upcoming drives API → Drives database access: reads (evidence: `app/api/drives/next/route.ts`)
- Upcoming drives API → Drive data model: uses type (evidence: `app/api/drives/next/route.ts`)
- Past drives API → Drives database access: reads (evidence: `app/api/drives/past/route.ts`)
- Past drives API → Drive data model: uses type (evidence: `app/api/drives/past/route.ts`)
- Team management API → Team database access: accesses (evidence: `app/api/admin/team/route.ts`)
- Team sync API → Team database access: accesses (evidence: `app/api/admin/team/sync/route.ts`)
- Student team data → Team database access: loads data (evidence: `lib/studentsteam.ts`)
