# trillionempirenow-beep/ats-system architecture

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

- Interactive diagram: https://gitdiagram.com/trillionempirenow-beep/ats-system
- Repository: https://github.com/trillionempirenow-beep/ats-system

## Overview

Acme People ATS is a recruiting and applicant-tracking product: applicants discover roles and apply, while staff manage candidates through a hiring pipeline, interviews, and downstream hiring/people workflows. The React client calls a Node/Express API backed by Postgres, with private file storage, realtime, and email integrations. The README documents the broad capabilities and deployment choices; sampled source confirms API routing, pipeline stage changes, storage drivers, and interview endpoints. Some feature-to-feature links are documented capabilities rather than inspected call chains.

Main entry points: [`src/app/router.tsx`](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/app/router.tsx) (Web application), [`server/modules/pipeline/pipeline.service.ts`](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/pipeline/pipeline.service.ts) (Pipeline stage rules), [`server/routes.ts`](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/routes.ts) (Feature routing), [`server/modules/interviews/interviews.service.ts`](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/interviews/interviews.service.ts) (Interview services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_web["Web application<br/>[router.tsx]"]
  node_careers["Careers and applications<br/>[ApplyPage.tsx]"]
  node_pipeline_ui["Candidate pipeline<br/>[PipelinePage.tsx]"]
  node_interview_ui["Interviews and room"]
  node_jobs_ui["Job management<br/>[JobsPage.tsx]"]
  node_people_ui["People and attendance<br/>[EmployeesPage.tsx]"]
  node_insights_ui["Analytics and reports<br/>[AnalyticsPage.tsx]"]
  node_admin_ui["Administration<br/>[SettingsPage.tsx]"]
end

subgraph group_recruiting["Recruiting workflow"]
  node_public_api["Applicant and public API<br/>[public.service.ts]"]
  node_candidate_api["Candidate management"]
  node_pipeline_api["Pipeline stage rules"]
  node_jobs_api["Jobs and approvals<br/>[jobs.service.ts]"]
  node_parsing["CV and job parsing<br/>[resume-parser.ts]"]
  node_interviews_api["Interview services"]
  node_room_realtime["Room realtime<br/>[publisher.ts]"]
end

subgraph group_talent["Talent operations"]
  node_people_api["Employee operations<br/>[people.service.ts]"]
  node_insights_api["Analytics services"]
  node_admin_api["Admin and audit<br/>[admin.service.ts]"]
  node_assistant["Acme Assist"]
end

subgraph group_platform["API platform"]
  node_api["Express API<br/>[app.ts]"]
  node_routes["Feature routing<br/>[routes.ts]"]
  node_auth["Authentication and sessions<br/>[auth.service.ts]"]
  node_policy["Authorization and validation<br/>[guards.ts]"]
  node_shared_contracts["Shared API and domain rules<br/>[envelope.ts]"]
end

subgraph group_services["Data and integrations"]
  node_database[("Postgres database<br/>[client.ts]")]
  node_file_storage[("Private file storage<br/>[storage.ts]")]
  node_email["Email delivery<br/>[email.service.ts]"]
  node_notifications["Notifications<br/>[notifications.ts]"]
  node_n8n["Optional n8n<br/>[n8n.client.ts]"]
end

node_applicant(("Applicant"))
node_staff(("Recruiting staff"))

node_applicant -->|"browses and applies"| node_careers
node_staff -->|"uses"| node_web
node_web -->|"routes to"| node_pipeline_ui
node_web -->|"routes to"| node_interview_ui
node_web -->|"routes to"| node_jobs_ui
node_web -->|"routes to"| node_people_ui
node_web -->|"routes to"| node_insights_ui
node_web -->|"routes to"| node_admin_ui
node_careers -->|"submits applications"| node_public_api
node_pipeline_ui -->|"moves candidates"| node_pipeline_api
node_jobs_ui -->|"manages postings"| node_jobs_api
node_interview_ui -->|"schedules and reviews"| node_interviews_api
node_interviews_api -->|"supports live rooms"| node_room_realtime
node_people_ui -->|"manages employees"| node_people_api
node_insights_ui -->|"requests reports"| node_insights_api
node_admin_ui -->|"administers system"| node_admin_api
node_api -->|"mounts routes"| node_routes
node_routes -->|"registers"| node_pipeline_api
node_routes -->|"registers"| node_public_api
node_routes -->|"registers"| node_jobs_api
node_routes -->|"registers"| node_interviews_api
node_pipeline_api -->|"reads and writes"| node_database
node_pipeline_api -->|"notifies staff"| node_notifications
node_pipeline_api -->|"emails applicants"| node_email
node_pipeline_api -->|"emits events"| node_n8n
node_interviews_api -.->|"persists interview data"| node_database
node_file_storage -.->|"stores file metadata"| node_database
node_auth -->|"uses sessions"| node_database
node_api -->|"serves authentication"| node_auth
node_api -->|"protects routes"| node_policy
node_candidate_api -->|"supports CV autofill"| node_parsing
node_jobs_api -->|"imports job PDFs"| node_parsing
node_interviews_api -.->|"offers AI notes"| node_assistant
node_staff -.->|"uses interview assistance"| node_assistant

click node_web "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/app/router.tsx"
click node_careers "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/careers/ApplyPage.tsx"
click node_pipeline_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/pipeline/PipelinePage.tsx"
click node_interview_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/interviews/InterviewReviewPage.tsx"
click node_jobs_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/jobs/JobsPage.tsx"
click node_people_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/people/EmployeesPage.tsx"
click node_insights_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/insights/AnalyticsPage.tsx"
click node_admin_ui "https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/admin/SettingsPage.tsx"
click node_public_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/public/public.service.ts"
click node_candidate_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/candidates/candidates.service.ts"
click node_pipeline_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/pipeline/pipeline.service.ts"
click node_jobs_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/jobs/jobs.service.ts"
click node_parsing "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/parsers/resume-parser.ts"
click node_interviews_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/interviews/interviews.service.ts"
click node_room_realtime "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/realtime/publisher.ts"
click node_people_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/people/people.service.ts"
click node_insights_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/insights/insights.service.ts"
click node_admin_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/admin/admin.service.ts"
click node_assistant "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/assistant/assistant.service.ts"
click node_api "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/app.ts"
click node_routes "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/routes.ts"
click node_auth "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/auth/auth.service.ts"
click node_policy "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/middleware/guards.ts"
click node_shared_contracts "https://github.com/trillionempirenow-beep/ats-system/blob/main/shared/api/envelope.ts"
click node_database "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/db/client.ts"
click node_file_storage "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/storage/storage.ts"
click node_email "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/email/email.service.ts"
click node_notifications "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/core/notifications.ts"
click node_n8n "https://github.com/trillionempirenow-beep/ats-system/blob/main/server/integrations/n8n/n8n.client.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_careers,node_pipeline_ui,node_interview_ui,node_jobs_ui,node_people_ui,node_insights_ui,node_admin_ui toneBlue
class node_public_api,node_candidate_api,node_pipeline_api,node_jobs_api,node_parsing,node_interviews_api,node_room_realtime toneAmber
class node_people_api,node_insights_api,node_admin_api,node_assistant toneMint
class node_api,node_routes,node_auth,node_policy,node_shared_contracts toneRose
class node_database,node_file_storage,node_email,node_notifications,node_n8n,node_applicant,node_staff toneIndigo
```

## Components

### Web experience

- [Web application](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/app/router.tsx): `src/app/router.tsx`
- [Careers and applications](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/careers/ApplyPage.tsx): `src/features/careers/ApplyPage.tsx`
- [Candidate pipeline](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/pipeline/PipelinePage.tsx): `src/features/pipeline/PipelinePage.tsx`
- [Interviews and room](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/interviews/InterviewReviewPage.tsx): `src/features/interviews/InterviewReviewPage.tsx`
- [Job management](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/jobs/JobsPage.tsx): `src/features/jobs/JobsPage.tsx`
- [People and attendance](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/people/EmployeesPage.tsx): `src/features/people/EmployeesPage.tsx`
- [Analytics and reports](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/insights/AnalyticsPage.tsx): `src/features/insights/AnalyticsPage.tsx`
- [Administration](https://github.com/trillionempirenow-beep/ats-system/blob/main/src/features/admin/SettingsPage.tsx): `src/features/admin/SettingsPage.tsx`

### Recruiting workflow

- [Applicant and public API](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/public/public.service.ts): `server/modules/public/public.service.ts`
- [Candidate management](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/candidates/candidates.service.ts): `server/modules/candidates/candidates.service.ts`
- [Pipeline stage rules](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/pipeline/pipeline.service.ts): `server/modules/pipeline/pipeline.service.ts`
- [Jobs and approvals](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/jobs/jobs.service.ts): `server/modules/jobs/jobs.service.ts`
- [CV and job parsing](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/parsers/resume-parser.ts): `server/parsers/resume-parser.ts`
- [Interview services](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/interviews/interviews.service.ts): `server/modules/interviews/interviews.service.ts`
- [Room realtime](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/realtime/publisher.ts): `server/realtime/publisher.ts`

### Talent operations

- [Employee operations](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/people/people.service.ts): `server/modules/people/people.service.ts`
- [Analytics services](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/insights/insights.service.ts): `server/modules/insights/insights.service.ts`
- [Admin and audit](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/admin/admin.service.ts): `server/modules/admin/admin.service.ts`
- [Acme Assist](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/assistant/assistant.service.ts): `server/modules/assistant/assistant.service.ts`

### API platform

- [Express API](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/app.ts): `server/app.ts`
- [Feature routing](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/routes.ts): `server/routes.ts`
- [Authentication and sessions](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/modules/auth/auth.service.ts): `server/modules/auth/auth.service.ts`
- [Authorization and validation](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/middleware/guards.ts): `server/middleware/guards.ts`
- [Shared API and domain rules](https://github.com/trillionempirenow-beep/ats-system/blob/main/shared/api/envelope.ts): `shared/api/envelope.ts`

### Data and integrations

- [Postgres database](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/db/client.ts): `server/db/client.ts`
- [Private file storage](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/storage/storage.ts): `server/storage/storage.ts`
- [Email delivery](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/email/email.service.ts): `server/email/email.service.ts`
- [Notifications](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/core/notifications.ts): `server/core/notifications.ts`
- [Optional n8n](https://github.com/trillionempirenow-beep/ats-system/blob/main/server/integrations/n8n/n8n.client.ts): `server/integrations/n8n/n8n.client.ts`

### Other components

- **Applicant**
- **Recruiting staff**

## Connections

- Applicant → Careers and applications: browses and applies (evidence: `README.md`)
- Recruiting staff → Web application: uses (evidence: `README.md`)
- Web application → Candidate pipeline: routes to
- Web application → Interviews and room: routes to
- Web application → Job management: routes to
- Web application → People and attendance: routes to
- Web application → Analytics and reports: routes to
- Web application → Administration: routes to
- Careers and applications → Applicant and public API: submits applications (evidence: `README.md`)
- Candidate pipeline → Pipeline stage rules: moves candidates (evidence: `README.md`)
- Job management → Jobs and approvals: manages postings (evidence: `README.md`)
- Interviews and room → Interview services: schedules and reviews (evidence: `README.md`)
- Interview services → Room realtime: supports live rooms (evidence: `README.md`)
- People and attendance → Employee operations: manages employees (evidence: `README.md`)
- Analytics and reports → Analytics services: requests reports (evidence: `README.md`)
- Administration → Admin and audit: administers system (evidence: `README.md`)
- Express API → Feature routing: mounts routes (evidence: `server/app.ts`)
- Feature routing → Pipeline stage rules: registers (evidence: `server/routes.ts`)
- Feature routing → Applicant and public API: registers (evidence: `server/routes.ts`)
- Feature routing → Jobs and approvals: registers (evidence: `server/routes.ts`)
- Feature routing → Interview services: registers (evidence: `server/routes.ts`)
- Pipeline stage rules → Postgres database: reads and writes (evidence: `server/modules/pipeline/pipeline.service.ts`)
- Pipeline stage rules → Notifications: notifies staff (evidence: `server/modules/pipeline/pipeline.service.ts`)
- Pipeline stage rules → Email delivery: emails applicants (evidence: `server/modules/pipeline/pipeline.service.ts`)
- Pipeline stage rules → Optional n8n: emits events (evidence: `server/modules/pipeline/pipeline.service.ts`)
- Interview services → Postgres database: persists interview data
- Private file storage → Postgres database: stores file metadata
- Authentication and sessions → Postgres database: uses sessions (evidence: `server/modules/auth/auth.service.ts`)
- Express API → Authentication and sessions: serves authentication (evidence: `server/app.ts`)
- Express API → Authorization and validation: protects routes (evidence: `server/app.ts`)
- Candidate management → CV and job parsing: supports CV autofill (evidence: `README.md`)
- Jobs and approvals → CV and job parsing: imports job PDFs (evidence: `README.md`)
- Interview services → Acme Assist: offers AI notes (evidence: `README.md`)
- Recruiting staff → Acme Assist: uses interview assistance (evidence: `README.md`)
