# baishnabi06/campuslink architecture

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

- Interactive diagram: https://gitdiagram.com/baishnabi06/campuslink
- Repository: https://github.com/baishnabi06/campuslink

## Overview

CampusLink is a campus placement platform: students, recruiters and placement officers use a vanilla-JS client against FastAPI workflows backed by MongoDB. The primary path is profile and drive management, deterministic eligibility and applications, then interview scheduling, offers, document verification and notifications; dashboards expose role-specific analytics. Readiness, skill-gap, recommendations and matching/prediction interfaces form a separate AI-oriented capability branch. Connections below follow sampled imports/calls or README and startup router-registration statements; unsampled route internals are represented at their exact paths, with no guessed call links.

Main entry points: [`Backend/app/main.py`](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/main.py) (FastAPI application), [`Backend/app/database.py`](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/database.py) (MongoDB collections), [`Backend/app/routes/readiness.py`](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/readiness.py) (Readiness endpoints), [`Backend/app/services/notifications.py`](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/notifications.py) (In-app notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_frontend["Frontend application<br/>[main.js]"]
  node_api_client["API client<br/>[api.js]"]
  node_auth_ui["Login and session<br/>[auth.js]"]
end

subgraph group_platform["API and identity"]
  node_api["FastAPI application<br/>[main.py]"]
  node_identity["Authentication and roles<br/>[auth.py]"]
  node_access["Token and role checks<br/>[deps.py]"]
  node_security["JWT security<br/>[security.py]"]
  node_schemas["Request and response models<br/>[schemas.py]"]
  node_mongo[("MongoDB collections<br/>[database.py]")]
end

subgraph group_placement["Placement workflows"]
  node_profiles["Student and recruiter profiles<br/>[students.py]"]
  node_drive["Recruiter drives<br/>[drives.py]"]
  node_applications["Eligibility and applications<br/>[applications.py]"]
  node_interviews["Interview scheduling<br/>[interviews.py]"]
  node_scheduler["Conflict detection<br/>[scheduling.py]"]
  node_offers["Offer lifecycle<br/>[offers.py]"]
  node_documents["Document verification<br/>[documents.py]"]
  node_notifications["In-app notifications<br/>[notifications.py]"]
end

subgraph group_insight["Insights and AI"]
  node_analytics["Placement analytics<br/>[analytics.py]"]
  node_readiness_api["Readiness endpoints<br/>[readiness.py]"]
  node_readiness_engine["Readiness scoring"]
  node_feedback["Profile feedback"]
  node_skill_gap["Skill-gap analysis"]
  node_recommendations["Job recommendations<br/>[recommendations.py]"]
  node_recommender["Job recommender<br/>[job_recommender.py]"]
  node_matching["Candidate matching interface"]
  node_prediction["Predictive analytics interface"]
end

node_users(("CampusLink users"))
node_google["Google Calendar and Meet"]

node_users -->|"uses"| node_frontend
node_frontend -->|"requests"| node_api_client
node_api_client -->|"calls REST"| node_api
node_api -->|"mounts routes"| node_identity
node_api -->|"mounts routes"| node_profiles
node_api -->|"mounts routes"| node_drive
node_api -->|"mounts routes"| node_applications
node_api -->|"mounts routes"| node_interviews
node_api -->|"mounts routes"| node_offers
node_api -->|"mounts routes"| node_documents
node_api -->|"mounts routes"| node_notifications
node_api -->|"mounts routes"| node_analytics
node_api -->|"mounts routes"| node_readiness_api
node_auth_ui -->|"uses"| node_api_client
node_identity -->|"reads and writes"| node_mongo
node_identity -->|"verifies and signs"| node_security
node_identity -->|"uses dependencies"| node_access
node_access -->|"decodes token"| node_security
node_access -->|"loads user"| node_mongo
node_api -->|"connects lifecycle"| node_mongo
node_profiles -->|"reads and writes"| node_mongo
node_drive -.->|"reads and writes"| node_mongo
node_applications -->|"reads and writes"| node_mongo
node_applications -->|"creates notices"| node_notifications
node_interviews -->|"reads and writes"| node_mongo
node_interviews -->|"checks conflicts"| node_scheduler
node_interviews -->|"creates Meet events"| node_google
node_offers -.->|"reads and writes"| node_mongo
node_offers -.->|"creates notices"| node_notifications
node_documents -->|"reads and writes"| node_mongo
node_documents -->|"creates notices"| node_notifications
node_notifications -->|"writes notices"| node_mongo
node_analytics -->|"queries metrics"| node_mongo
node_readiness_api -->|"scores profiles"| node_readiness_engine
node_readiness_api -.->|"generates feedback"| node_feedback
node_readiness_api -->|"loads profiles and cache"| node_mongo
node_skill_gap -.->|"reads profile data"| node_mongo
node_recommendations -->|"delegates"| node_recommender
node_recommendations -->|"reads profile data"| node_mongo
node_readiness_api -.->|"reads officer context"| node_analytics
node_matching -.->|"matches candidates"| node_drive
node_prediction -.->|"supports forecasts"| node_analytics

click node_frontend "https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/main.js"
click node_api_client "https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/api.js"
click node_auth_ui "https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/auth.js"
click node_api "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/main.py"
click node_identity "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/auth.py"
click node_access "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/core/deps.py"
click node_security "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/core/security.py"
click node_schemas "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/models/schemas.py"
click node_mongo "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/database.py"
click node_profiles "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/students.py"
click node_drive "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/drives.py"
click node_applications "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/applications.py"
click node_interviews "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/interviews.py"
click node_scheduler "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/scheduling.py"
click node_offers "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/offers.py"
click node_documents "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/documents.py"
click node_notifications "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/notifications.py"
click node_analytics "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/analytics.py"
click node_readiness_api "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/readiness.py"
click node_readiness_engine "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/readiness_service.py"
click node_feedback "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/feedback_service.py"
click node_skill_gap "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/skill_gap_service.py"
click node_recommendations "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/recommendations.py"
click node_recommender "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/job_recommender.py"
click node_matching "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/matching_service.py"
click node_prediction "https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/prediction_service.py"

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_frontend,node_api_client,node_auth_ui,node_users toneBlue
class node_api,node_identity,node_access,node_security,node_schemas,node_mongo toneAmber
class node_profiles,node_drive,node_applications,node_interviews,node_scheduler,node_offers,node_documents,node_notifications toneMint
class node_analytics,node_readiness_api,node_readiness_engine,node_feedback,node_skill_gap,node_recommendations,node_recommender,node_matching,node_prediction toneRose
class node_google toneIndigo
```

## Components

### Web client

- [Frontend application](https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/main.js): `Frontend/js/main.js`
- [API client](https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/api.js): `Frontend/js/api.js`
- [Login and session](https://github.com/baishnabi06/campuslink/blob/main/Frontend/js/auth.js): `Frontend/js/auth.js`

### API and identity

- [FastAPI application](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/main.py): `Backend/app/main.py`
- [Authentication and roles](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/auth.py): `Backend/app/routes/auth.py`
- [Token and role checks](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/core/deps.py): `Backend/app/core/deps.py`
- [JWT security](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/core/security.py): `Backend/app/core/security.py`
- [Request and response models](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/models/schemas.py): `Backend/app/models/schemas.py`
- [MongoDB collections](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/database.py): `Backend/app/database.py`

### Placement workflows

- [Student and recruiter profiles](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/students.py): `Backend/app/routes/students.py`
- [Recruiter drives](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/drives.py): `Backend/app/routes/drives.py`
- [Eligibility and applications](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/applications.py): `Backend/app/routes/applications.py`
- [Interview scheduling](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/interviews.py): `Backend/app/routes/interviews.py`
- [Conflict detection](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/scheduling.py): `Backend/app/services/scheduling.py`
- [Offer lifecycle](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/offers.py): `Backend/app/routes/offers.py`
- [Document verification](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/documents.py): `Backend/app/routes/documents.py`
- [In-app notifications](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/notifications.py): `Backend/app/services/notifications.py`

### Insights and AI

- [Placement analytics](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/analytics.py): `Backend/app/routes/analytics.py`
- [Readiness endpoints](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/readiness.py): `Backend/app/routes/readiness.py`
- [Readiness scoring](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/readiness_service.py): `Backend/app/services/ai/readiness_service.py`
- [Profile feedback](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/feedback_service.py): `Backend/app/services/ai/feedback_service.py`
- [Skill-gap analysis](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/skill_gap_service.py): `Backend/app/services/ai/skill_gap_service.py`
- [Job recommendations](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/routes/recommendations.py): `Backend/app/routes/recommendations.py`
- [Job recommender](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/job_recommender.py): `Backend/app/services/job_recommender.py`
- [Candidate matching interface](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/matching_service.py): `Backend/app/services/ai/matching_service.py`
- [Predictive analytics interface](https://github.com/baishnabi06/campuslink/blob/main/Backend/app/services/ai/prediction_service.py): `Backend/app/services/ai/prediction_service.py`

### Other components

- **CampusLink users**
- **Google Calendar and Meet**

## Connections

- CampusLink users → Frontend application: uses (evidence: `README.md`)
- Frontend application → API client: requests (evidence: `Frontend/js/main.js`)
- API client → FastAPI application: calls REST (evidence: `README.md`)
- FastAPI application → Authentication and roles: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Student and recruiter profiles: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Recruiter drives: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Eligibility and applications: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Interview scheduling: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Offer lifecycle: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Document verification: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → In-app notifications: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Placement analytics: mounts routes (evidence: `Backend/app/main.py`)
- FastAPI application → Readiness endpoints: mounts routes (evidence: `Backend/app/main.py`)
- Login and session → API client: uses (evidence: `Frontend/js/auth.js`)
- Authentication and roles → MongoDB collections: reads and writes (evidence: `Backend/app/routes/auth.py`)
- Authentication and roles → JWT security: verifies and signs (evidence: `Backend/app/routes/auth.py`)
- Authentication and roles → Token and role checks: uses dependencies (evidence: `Backend/app/routes/auth.py`)
- Token and role checks → JWT security: decodes token (evidence: `Backend/app/core/deps.py`)
- Token and role checks → MongoDB collections: loads user (evidence: `Backend/app/core/deps.py`)
- FastAPI application → MongoDB collections: connects lifecycle (evidence: `Backend/app/main.py`)
- Student and recruiter profiles → MongoDB collections: reads and writes (evidence: `Backend/app/routes/students.py`)
- Recruiter drives → MongoDB collections: reads and writes (evidence: `Backend/app/routes/drives.py`)
- Eligibility and applications → MongoDB collections: reads and writes (evidence: `Backend/app/routes/applications.py`)
- Eligibility and applications → In-app notifications: creates notices (evidence: `Backend/app/routes/applications.py`)
- Interview scheduling → MongoDB collections: reads and writes (evidence: `Backend/app/routes/interviews.py`)
- Interview scheduling → Conflict detection: checks conflicts (evidence: `Backend/app/routes/interviews.py`)
- Interview scheduling → Google Calendar and Meet: creates Meet events (evidence: `Backend/app/routes/interviews.py`)
- Offer lifecycle → MongoDB collections: reads and writes (evidence: `Backend/app/routes/offers.py`)
- Offer lifecycle → In-app notifications: creates notices (evidence: `Backend/app/routes/offers.py`)
- Document verification → MongoDB collections: reads and writes (evidence: `Backend/app/routes/documents.py`)
- Document verification → In-app notifications: creates notices (evidence: `Backend/app/routes/documents.py`)
- In-app notifications → MongoDB collections: writes notices (evidence: `Backend/app/services/notifications.py`)
- Placement analytics → MongoDB collections: queries metrics (evidence: `Backend/app/routes/analytics.py`)
- Readiness endpoints → Readiness scoring: scores profiles (evidence: `Backend/app/routes/readiness.py`)
- Readiness endpoints → Profile feedback: generates feedback (evidence: `Backend/app/routes/readiness.py`)
- Readiness endpoints → MongoDB collections: loads profiles and cache (evidence: `Backend/app/routes/readiness.py`)
- Skill-gap analysis → MongoDB collections: reads profile data
- Job recommendations → Job recommender: delegates (evidence: `Backend/app/routes/recommendations.py`)
- Job recommendations → MongoDB collections: reads profile data (evidence: `Backend/app/routes/recommendations.py`)
- Readiness endpoints → Placement analytics: reads officer context
- Candidate matching interface → Recruiter drives: matches candidates
- Predictive analytics interface → Placement analytics: supports forecasts
