# vinnyy-ph/launchpad-production-round architecture

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

- Interactive diagram: https://gitdiagram.com/vinnyy-ph/launchpad-production-round
- Repository: https://github.com/vinnyy-ph/launchpad-production-round

## Overview

Manage Jia is a full-stack HR platform: a Next.js client uses a versioned Express API for identity, employee lifecycle, and performance workflows. HR and employees manage onboarding, people and organizational structure, evaluations and surveys, and offboarding; notifications support those workflows. The graph includes documented integrations and major capabilities, while some unsampled backend modules are represented by their existing feature directories. Source excerpts establish selected controller calls; other cross-system links are based on the README, not inspected runtime wiring.

Main entry points: [`backend/src/app.ts`](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/app.ts) (Express API), [`backend/src/core/database/prisma.service.ts`](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/database/prisma.service.ts) (PostgreSQL via Prisma), [`backend/src/modules/people/onboarding`](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/onboarding) (Onboarding), [`backend/src/modules/notifications`](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/notifications) (Notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_web["Next.js app"]
  node_webapi["Feature API clients"]
end

subgraph group_platform["API platform"]
  node_api["Express API<br/>[app.ts]"]
  node_auth["Google SSO"]
  node_dashboard["Dashboard"]
end

subgraph group_people["People lifecycle"]
  node_employees["Employee directory"]
  node_org["Teams and departments"]
  node_onboard["Onboarding"]
  node_docreview["Document review"]
  node_offboard["Offboarding clearance"]
  node_users["User and role management"]
  node_activity["Activity log"]
end

subgraph group_performance["Performance"]
  node_evaluations["Evaluations"]
  node_surveys["Pulse surveys"]
end

subgraph group_shared["Shared services"]
  node_notifications["Notifications"]
  node_database[("PostgreSQL via Prisma<br/>[prisma.service.ts]")]
  node_storage["Cloudinary documents"]
  node_email["Email delivery<br/>[email.service.ts]"]
  node_realtime["Socket.IO<br/>[socket.service.ts]"]
  node_ai["Survey insights<br/>[openai.service.ts]"]
end

node_staff(("HR and employees"))

node_staff -->|"uses"| node_web
node_web -->|"uses"| node_webapi
node_webapi -->|"proxies requests"| node_api
node_api -.->|"routes"| node_auth
node_api -.->|"routes"| node_dashboard
node_api -.->|"routes"| node_employees
node_api -.->|"routes"| node_org
node_api -.->|"routes"| node_onboard
node_api -.->|"routes"| node_offboard
node_api -.->|"routes"| node_evaluations
node_api -.->|"routes"| node_surveys
node_api -.->|"routes"| node_notifications
node_onboard -->|"submits for review"| node_docreview
node_onboard -.->|"stores documents"| node_storage
node_offboard -->|"uploads attachments"| node_storage
node_evaluations -->|"uploads files"| node_storage
node_surveys -.->|"generates insights"| node_ai
node_notifications -.->|"delivers email"| node_email
node_notifications -.->|"sends realtime"| node_realtime
node_employees -.->|"reads and writes"| node_database
node_org -.->|"reads and writes"| node_database
node_onboard -.->|"reads and writes"| node_database
node_offboard -.->|"reads and writes"| node_database
node_evaluations -.->|"reads and writes"| node_database
node_surveys -.->|"reads and writes"| node_database
node_notifications -.->|"reads and writes"| node_database

click node_web "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/frontend/src/app"
click node_webapi "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/frontend/src/modules"
click node_api "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/app.ts"
click node_auth "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/auth"
click node_dashboard "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/dashboard"
click node_employees "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/employees"
click node_org "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people"
click node_onboard "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/onboarding"
click node_docreview "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/onboarding/document-reviews"
click node_offboard "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/offboarding"
click node_users "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/users"
click node_activity "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/activity-log"
click node_evaluations "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/performance/evaluations"
click node_surveys "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/performance/surveys"
click node_notifications "https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/notifications"
click node_database "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/database/prisma.service.ts"
click node_storage "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/cloudinary/cloudinary.service.ts"
click node_email "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/email/email.service.ts"
click node_realtime "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/socket/socket.service.ts"
click node_ai "https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/openai.service.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_web,node_webapi toneBlue
class node_api,node_auth,node_dashboard toneAmber
class node_employees,node_org,node_onboard,node_docreview,node_offboard,node_users,node_activity toneMint
class node_evaluations,node_surveys toneRose
class node_notifications,node_database,node_storage,node_email,node_realtime,node_ai,node_staff toneIndigo
```

## Components

### Web client

- [Next.js app](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/frontend/src/app): `frontend/src/app`
- [Feature API clients](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/frontend/src/modules): `frontend/src/modules`

### API platform

- [Express API](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/app.ts): `backend/src/app.ts`
- [Google SSO](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/auth): `backend/src/modules/auth`
- [Dashboard](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/dashboard): `backend/src/modules/dashboard`

### People lifecycle

- [Employee directory](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/employees): `backend/src/modules/people/employees`
- [Teams and departments](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people): `backend/src/modules/people`
- [Onboarding](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/onboarding): `backend/src/modules/people/onboarding`
- [Document review](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/onboarding/document-reviews): `backend/src/modules/people/onboarding/document-reviews`
- [Offboarding clearance](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/offboarding): `backend/src/modules/people/offboarding`
- [User and role management](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/users): `backend/src/modules/people/users`
- [Activity log](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/people/activity-log): `backend/src/modules/people/activity-log`

### Performance

- [Evaluations](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/performance/evaluations): `backend/src/modules/performance/evaluations`
- [Pulse surveys](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/performance/surveys): `backend/src/modules/performance/surveys`

### Shared services

- [Notifications](https://github.com/vinnyy-ph/launchpad-production-round/tree/main/backend/src/modules/notifications): `backend/src/modules/notifications`
- [PostgreSQL via Prisma](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/database/prisma.service.ts): `backend/src/core/database/prisma.service.ts`
- [Cloudinary documents](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/cloudinary/cloudinary.service.ts): `backend/src/core/cloudinary/cloudinary.service.ts`
- [Email delivery](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/email/email.service.ts): `backend/src/core/email/email.service.ts`
- [Socket.IO](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/socket/socket.service.ts): `backend/src/core/socket/socket.service.ts`
- [Survey insights](https://github.com/vinnyy-ph/launchpad-production-round/blob/main/backend/src/core/openai.service.ts): `backend/src/core/openai.service.ts`

### Other components

- **HR and employees**

## Connections

- HR and employees → Next.js app: uses
- Next.js app → Feature API clients: uses
- Feature API clients → Express API: proxies requests
- Express API → Google SSO: routes
- Express API → Dashboard: routes
- Express API → Employee directory: routes
- Express API → Teams and departments: routes
- Express API → Onboarding: routes
- Express API → Offboarding clearance: routes
- Express API → Evaluations: routes
- Express API → Pulse surveys: routes
- Express API → Notifications: routes
- Onboarding → Document review: submits for review (evidence: `backend/src/modules/people/onboarding/document-reviews/document-reviews.routes.ts`)
- Onboarding → Cloudinary documents: stores documents
- Offboarding clearance → Cloudinary documents: uploads attachments (evidence: `backend/src/modules/people/offboarding/offboarding.controller.ts`)
- Evaluations → Cloudinary documents: uploads files (evidence: `backend/src/modules/performance/evaluations/evaluations.controller.ts`)
- Pulse surveys → Survey insights: generates insights
- Notifications → Email delivery: delivers email
- Notifications → Socket.IO: sends realtime
- Employee directory → PostgreSQL via Prisma: reads and writes
- Teams and departments → PostgreSQL via Prisma: reads and writes
- Onboarding → PostgreSQL via Prisma: reads and writes
- Offboarding clearance → PostgreSQL via Prisma: reads and writes
- Evaluations → PostgreSQL via Prisma: reads and writes
- Pulse surveys → PostgreSQL via Prisma: reads and writes
- Notifications → PostgreSQL via Prisma: reads and writes
