# sharath3002/blinkedin architecture

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

- Interactive diagram: https://gitdiagram.com/sharath3002/blinkedin
- Repository: https://github.com/sharath3002/blinkedin

## Overview

BlinkedIn is a job board that discovers openings from company career pages and supports tracked, employee-mediated referrals. The main workflow runs from candidate browsing and applying through the API, while a background agent loop fetches listings, extracts and filters jobs, and stores new postings. The README also describes authentication, payments, employee verification, referrals, and administration. The backend is a single large module; frontend source files were not present in the supplied tree, so frontend capabilities are represented at the directory level and some documented connections are shown without implementation detail.

Main entry points: [`backend/server.py`](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py) (HTTP API), [`frontend`](https://github.com/sharath3002/blinkedin/tree/main/frontend) (Web application), [`backend/data.py`](https://github.com/sharath3002/blinkedin/blob/main/backend/data.py) (Company reference data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Candidate product"]
  node_frontend["Web application"]
end

subgraph group_backend["Backend services"]
  node_api["HTTP API<br/>[server.py]"]
  node_identity["Identity and sessions<br/>[server.py]"]
  node_job_catalog["Job catalog<br/>[server.py]"]
  node_admin["Admin operations<br/>[server.py]"]
  node_payments["Plans and payments<br/>[server.py]"]
end

subgraph group_discovery["Job discovery"]
  node_scheduler["Agent scheduler<br/>[server.py]"]
  node_career_fetch["Career page fetch<br/>[server.py]"]
  node_job_extract["Job extraction<br/>[server.py]"]
  node_job_filter["Filter and dedup<br/>[server.py]"]
  node_reference_data["Company reference data<br/>[data.py]"]
end

subgraph group_referrals["Referral operations"]
  node_referrals["Referral tracking<br/>[server.py]"]
  node_employee["Employee verification<br/>[server.py]"]
  node_leaderboard["Referral leaderboard<br/>[server.py]"]
end

subgraph group_integrations["External services"]
  node_mongo[("MongoDB")]
  node_company_sites["Company career sites"]
  node_anthropic["Anthropic API"]
  node_ats["Greenhouse / Lever"]
  node_identity_providers["Google OAuth"]
  node_payment_provider["Stripe"]
  node_email["Resend email"]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_frontend
node_frontend -->|"HTTP requests"| node_api
node_api -->|"routes auth"| node_identity
node_identity -->|"reads and writes"| node_mongo
node_identity -->|"verifies sign-in"| node_identity_providers
node_identity -.->|"sends verification"| node_email
node_api -->|"routes job access"| node_job_catalog
node_job_catalog -.->|"reads jobs"| node_mongo
node_api -->|"routes submissions"| node_referrals
node_referrals -->|"stores referrals"| node_mongo
node_api -->|"routes verification"| node_employee
node_employee -->|"updates users"| node_mongo
node_referrals -.->|"feeds outcomes"| node_leaderboard
node_api -->|"routes billing"| node_payments
node_payments -->|"processes payments"| node_payment_provider
node_api -->|"routes administration"| node_admin
node_admin -->|"reads and updates"| node_mongo
node_scheduler -->|"runs fetch cycle"| node_career_fetch
node_career_fetch -->|"fetches listings"| node_company_sites
node_career_fetch -->|"provides page content"| node_job_extract
node_career_fetch -.->|"reads public APIs"| node_ats
node_job_extract -->|"extracts jobs"| node_anthropic
node_job_extract -->|"passes extracted jobs"| node_job_filter
node_job_filter -->|"deduplicates and inserts"| node_mongo
node_job_filter -.->|"publishes postings"| node_job_catalog
node_reference_data -.->|"supplies company data"| node_scheduler
node_scheduler -.->|"stores agent state"| node_mongo

click node_frontend "https://github.com/sharath3002/blinkedin/tree/main/frontend"
click node_api "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_identity "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_job_catalog "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_admin "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_scheduler "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_career_fetch "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_job_extract "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_job_filter "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_reference_data "https://github.com/sharath3002/blinkedin/blob/main/backend/data.py"
click node_referrals "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_employee "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_leaderboard "https://github.com/sharath3002/blinkedin/blob/main/backend/server.py"
click node_payments "https://github.com/sharath3002/blinkedin/blob/main/backend/server.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 toneBlue
class node_api,node_identity,node_job_catalog,node_admin,node_payments toneAmber
class node_scheduler,node_career_fetch,node_job_extract,node_job_filter,node_reference_data toneMint
class node_referrals,node_employee,node_leaderboard toneRose
class node_mongo,node_company_sites,node_anthropic,node_ats,node_identity_providers,node_payment_provider,node_email,node_candidate toneIndigo
```

## Components

### Candidate product

- [Web application](https://github.com/sharath3002/blinkedin/tree/main/frontend): `frontend`

### Backend services

- [HTTP API](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Identity and sessions](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Job catalog](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Admin operations](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Plans and payments](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`

### Job discovery

- [Agent scheduler](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Career page fetch](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Job extraction](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Filter and dedup](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Company reference data](https://github.com/sharath3002/blinkedin/blob/main/backend/data.py): `backend/data.py`

### Referral operations

- [Referral tracking](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Employee verification](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`
- [Referral leaderboard](https://github.com/sharath3002/blinkedin/blob/main/backend/server.py): `backend/server.py`

### External services

- **MongoDB**
- **Company career sites**
- **Anthropic API**
- **Greenhouse / Lever**
- **Google OAuth**
- **Stripe**
- **Resend email**

### Other components

- **Candidate**

## Connections

- Candidate → Web application: uses (evidence: `README.md`)
- Web application → HTTP API: HTTP requests (evidence: `README.md`)
- HTTP API → Identity and sessions: routes auth (evidence: `README.md`)
- Identity and sessions → MongoDB: reads and writes (evidence: `backend/server.py`)
- Identity and sessions → Google OAuth: verifies sign-in (evidence: `README.md`)
- Identity and sessions → Resend email: sends verification (evidence: `README.md`)
- HTTP API → Job catalog: routes job access (evidence: `README.md`)
- Job catalog → MongoDB: reads jobs (evidence: `README.md`)
- HTTP API → Referral tracking: routes submissions (evidence: `backend/server.py`)
- Referral tracking → MongoDB: stores referrals (evidence: `backend/server.py`)
- HTTP API → Employee verification: routes verification (evidence: `backend/server.py`)
- Employee verification → MongoDB: updates users (evidence: `backend/server.py`)
- Referral tracking → Referral leaderboard: feeds outcomes (evidence: `README.md`)
- HTTP API → Plans and payments: routes billing (evidence: `README.md`)
- Plans and payments → Stripe: processes payments (evidence: `README.md`)
- HTTP API → Admin operations: routes administration (evidence: `README.md`)
- Admin operations → MongoDB: reads and updates (evidence: `backend/server.py`)
- Agent scheduler → Career page fetch: runs fetch cycle (evidence: `README.md`)
- Career page fetch → Company career sites: fetches listings (evidence: `README.md`)
- Career page fetch → Job extraction: provides page content (evidence: `backend/server.py`)
- Career page fetch → Greenhouse / Lever: reads public APIs (evidence: `README.md`)
- Job extraction → Anthropic API: extracts jobs (evidence: `README.md`)
- Job extraction → Filter and dedup: passes extracted jobs (evidence: `backend/server.py`)
- Filter and dedup → MongoDB: deduplicates and inserts (evidence: `backend/server.py`)
- Filter and dedup → Job catalog: publishes postings (evidence: `README.md`)
- Company reference data → Agent scheduler: supplies company data (evidence: `backend/server.py`)
- Agent scheduler → MongoDB: stores agent state (evidence: `README.md`)
