# kruthikpranavtr/moas_new architecture

> Architecture diagram of the GitHub repository kruthikpranavtr/moas_new, 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/kruthikpranavtr/moas_new
- Repository: https://github.com/kruthikpranavtr/moas_new

## Overview

MOAS is a multilingual job marketplace for candidates and employers, with job discovery, applications, employer recruiting tools, messaging, and AI-assisted job matching. The primary user workflow is entering through the application shell, navigating role-specific marketplace views, and using job or application features; the server exposes API routes backed by database helpers and AI engines. The graph preserves the major UI domains and backend AI/storage layers. Source excerpts do not establish which UI actions call which API routes, so those connections are omitted.

Main entry points: [`src/App.tsx`](https://github.com/kruthikpranavtr/moas_new/blob/main/src/App.tsx) (App Shell), [`server/db.ts`](https://github.com/kruthikpranavtr/moas_new/blob/main/server/db.ts) (Persistence Adapter), [`server.ts`](https://github.com/kruthikpranavtr/moas_new/blob/main/server.ts) (HTTP API), [`src/components/Navbar.tsx`](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/Navbar.tsx) (Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_marketplace["Marketplace UI"]
  node_app["App Shell<br/>[App.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_logo["Brand Mark<br/>[MoasLogo.tsx]"]
  node_language["Language Provider"]
  node_home["Home<br/>[HomeView.tsx]"]
  node_companies["Companies<br/>[CompaniesView.tsx]"]
end

subgraph group_candidate["Candidate Tools"]
  node_findjobs["Job Search<br/>[FindJobsView.tsx]"]
  node_dashboard["Candidate Dashboard<br/>[DashboardView.tsx]"]
  node_applications["Applications"]
  node_savedjobs["Saved Jobs<br/>[SavedJobsView.tsx]"]
  node_alerts["Job Alerts<br/>[JobAlertsView.tsx]"]
  node_profile["Candidate Profile<br/>[ProfileView.tsx]"]
  node_resume["Resume &amp; CV<br/>[ResumeCvView.tsx]"]
  node_messages["Messages &amp; AI<br/>[MessagesView.tsx]"]
end

subgraph group_employer["Employer Tools"]
  node_employerdash["Employer Dashboard"]
  node_postjob["Job Posting<br/>[PostJobView.tsx]"]
end

subgraph group_platform["Platform Services"]
  node_mockdata["Marketplace Seed Data<br/>[mockData.ts]"]
  node_api["HTTP API<br/>[server.ts]"]
  node_rag["Job Retrieval &amp; Matching<br/>[ragEngine.ts]"]
  node_agent["Agentic Job Assistant<br/>[agenticEngine.ts]"]
  node_db["Persistence Adapter<br/>[db.ts]"]
  node_firestore[("Firestore")]
  node_postgres[("Local PostgreSQL<br/>[postgres.ts]")]
end

node_user(("Candidate / Employer"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_navbar
node_navbar -->|"renders"| node_logo
node_app -->|"provides"| node_language
node_app -->|"renders"| node_home
node_app -->|"renders"| node_findjobs
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_applications
node_app -->|"renders"| node_savedjobs
node_app -->|"renders"| node_alerts
node_app -->|"renders"| node_profile
node_app -->|"renders"| node_resume
node_app -->|"renders"| node_messages
node_app -->|"renders"| node_employerdash
node_app -->|"renders"| node_postjob
node_app -->|"renders"| node_companies
node_db -->|"reads / writes"| node_firestore
node_db -->|"syncs jobs"| node_postgres
node_api -->|"routes data calls"| node_db
node_api -->|"runs search"| node_rag
node_agent -->|"retrieves job chunks"| node_rag

click node_app "https://github.com/kruthikpranavtr/moas_new/blob/main/src/App.tsx"
click node_navbar "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/Navbar.tsx"
click node_logo "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/MoasLogo.tsx"
click node_language "https://github.com/kruthikpranavtr/moas_new/blob/main/src/context/LanguageContext.tsx"
click node_home "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/HomeView.tsx"
click node_findjobs "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/FindJobsView.tsx"
click node_dashboard "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/DashboardView.tsx"
click node_applications "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/MyApplicationsView.tsx"
click node_savedjobs "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/SavedJobsView.tsx"
click node_alerts "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/JobAlertsView.tsx"
click node_profile "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/ProfileView.tsx"
click node_resume "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/ResumeCvView.tsx"
click node_messages "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/MessagesView.tsx"
click node_employerdash "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/EmployerDashboardView.tsx"
click node_postjob "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/PostJobView.tsx"
click node_companies "https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/CompaniesView.tsx"
click node_mockdata "https://github.com/kruthikpranavtr/moas_new/blob/main/src/data/mockData.ts"
click node_api "https://github.com/kruthikpranavtr/moas_new/blob/main/server.ts"
click node_rag "https://github.com/kruthikpranavtr/moas_new/blob/main/server/ragEngine.ts"
click node_agent "https://github.com/kruthikpranavtr/moas_new/blob/main/server/agenticEngine.ts"
click node_db "https://github.com/kruthikpranavtr/moas_new/blob/main/server/db.ts"
click node_postgres "https://github.com/kruthikpranavtr/moas_new/blob/main/server/postgres.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_app,node_navbar,node_logo,node_language,node_home,node_companies toneBlue
class node_findjobs,node_dashboard,node_applications,node_savedjobs,node_alerts,node_profile,node_resume,node_messages toneAmber
class node_employerdash,node_postjob toneMint
class node_mockdata,node_api,node_rag,node_agent,node_db,node_firestore,node_postgres toneRose
class node_user toneIndigo
```

## Components

### Marketplace UI

- [App Shell](https://github.com/kruthikpranavtr/moas_new/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Brand Mark](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/MoasLogo.tsx): `src/components/MoasLogo.tsx`
- [Language Provider](https://github.com/kruthikpranavtr/moas_new/blob/main/src/context/LanguageContext.tsx): `src/context/LanguageContext.tsx`
- [Home](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/HomeView.tsx): `src/components/views/HomeView.tsx`
- [Companies](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/CompaniesView.tsx): `src/components/views/CompaniesView.tsx`

### Candidate Tools

- [Job Search](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/FindJobsView.tsx): `src/components/views/FindJobsView.tsx`
- [Candidate Dashboard](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/DashboardView.tsx): `src/components/views/DashboardView.tsx`
- [Applications](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/MyApplicationsView.tsx): `src/components/views/MyApplicationsView.tsx`
- [Saved Jobs](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/SavedJobsView.tsx): `src/components/views/SavedJobsView.tsx`
- [Job Alerts](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/JobAlertsView.tsx): `src/components/views/JobAlertsView.tsx`
- [Candidate Profile](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/ProfileView.tsx): `src/components/views/ProfileView.tsx`
- [Resume & CV](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/ResumeCvView.tsx): `src/components/views/ResumeCvView.tsx`
- [Messages & AI](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/MessagesView.tsx): `src/components/views/MessagesView.tsx`

### Employer Tools

- [Employer Dashboard](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/EmployerDashboardView.tsx): `src/components/views/EmployerDashboardView.tsx`
- [Job Posting](https://github.com/kruthikpranavtr/moas_new/blob/main/src/components/views/PostJobView.tsx): `src/components/views/PostJobView.tsx`

### Platform Services

- [Marketplace Seed Data](https://github.com/kruthikpranavtr/moas_new/blob/main/src/data/mockData.ts): `src/data/mockData.ts`
- [HTTP API](https://github.com/kruthikpranavtr/moas_new/blob/main/server.ts): `server.ts`
- [Job Retrieval & Matching](https://github.com/kruthikpranavtr/moas_new/blob/main/server/ragEngine.ts): `server/ragEngine.ts`
- [Agentic Job Assistant](https://github.com/kruthikpranavtr/moas_new/blob/main/server/agenticEngine.ts): `server/agenticEngine.ts`
- [Persistence Adapter](https://github.com/kruthikpranavtr/moas_new/blob/main/server/db.ts): `server/db.ts`
- **Firestore**
- [Local PostgreSQL](https://github.com/kruthikpranavtr/moas_new/blob/main/server/postgres.ts): `server/postgres.ts`

### Other components

- **Candidate / Employer**

## Connections

- Candidate / Employer → App Shell: uses (evidence: `src/App.tsx`)
- App Shell → Navigation: renders (evidence: `src/App.tsx`)
- Navigation → Brand Mark: renders (evidence: `src/components/Navbar.tsx`)
- App Shell → Language Provider: provides (evidence: `src/App.tsx`)
- App Shell → Home: renders (evidence: `src/App.tsx`)
- App Shell → Job Search: renders (evidence: `src/App.tsx`)
- App Shell → Candidate Dashboard: renders (evidence: `src/App.tsx`)
- App Shell → Applications: renders (evidence: `src/App.tsx`)
- App Shell → Saved Jobs: renders (evidence: `src/App.tsx`)
- App Shell → Job Alerts: renders (evidence: `src/App.tsx`)
- App Shell → Candidate Profile: renders (evidence: `src/App.tsx`)
- App Shell → Resume & CV: renders (evidence: `src/App.tsx`)
- App Shell → Messages & AI: renders (evidence: `src/App.tsx`)
- App Shell → Employer Dashboard: renders (evidence: `src/App.tsx`)
- App Shell → Job Posting: renders (evidence: `src/App.tsx`)
- App Shell → Companies: renders (evidence: `src/App.tsx`)
- Persistence Adapter → Firestore: reads / writes (evidence: `server/db.ts`)
- Persistence Adapter → Local PostgreSQL: syncs jobs (evidence: `server/db.ts`)
- HTTP API → Persistence Adapter: routes data calls (evidence: `server.ts`)
- HTTP API → Job Retrieval & Matching: runs search (evidence: `server.ts`)
- Agentic Job Assistant → Job Retrieval & Matching: retrieves job chunks (evidence: `server/agenticEngine.ts`)
