# aymenjeddou/hireshere architecture

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

- Interactive diagram: https://gitdiagram.com/aymenjeddou/hireshere
- Repository: https://github.com/aymenjeddou/hireshere

## Overview

HiresHere ingests public job feeds, extracts posting constraints, computes country-specific eligibility verdicts, and publishes searchable job data and application details. Its user-facing branches include multilingual job discovery, employer and location APIs, email subscriptions and alerts, and Telegram updates. Several site capabilities are documented but their implementation was not sampled, so those links are supported by the README; source-level evidence is cited where available.

Main entry points: [`pipeline/run.py`](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/run.py) (Pipeline runner), [`pipeline/connectors`](https://github.com/aymenjeddou/hireshere/tree/main/pipeline/connectors) (Feed connectors), [`site/functions/api`](https://github.com/aymenjeddou/hireshere/tree/main/site/functions/api) (Site API), [`pipeline/export.py`](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/export.py) (Search data export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Job ingestion"]
  node_connectors["Feed connectors"]
  node_http["HTTP client<br/>[http.py]"]
  node_jobmodel["Job records<br/>[models.py]"]
  node_text["Text and dates<br/>[text.py]"]
  node_runner["Pipeline runner<br/>[run.py]"]
  node_database[("Job database<br/>[db.py]")]
end

subgraph group_decision["Eligibility pipeline"]
  node_config["Pipeline config<br/>[config.py]"]
  node_filter["Remote prefilter<br/>[prompt.py]"]
  node_extract["Posting extraction<br/>[schema.py]"]
  node_gemini["Gemini classifier<br/>[gemini.py]"]
  node_classrun["Classification runner<br/>[runner.py]"]
  node_verdict["Country verdicts<br/>[verdict.py]"]
end

subgraph group_publish["Publishing and alerts"]
  node_export["Search data export<br/>[export.py]"]
  node_alerts["Email alerts<br/>[alerts.py]"]
  node_telegram["Telegram updates<br/>[telegram.py]"]
end

subgraph group_web["Job seeker site"]
  node_search["Job search UI<br/>[search.ts]"]
  node_cards["Job cards<br/>[cards.ts]"]
  node_jobpage["Job detail UI<br/>[jobpage.ts]"]
  node_translations["Translations<br/>[i18n.ts]"]
  node_jobrender["Job page rendering<br/>[_job.js]"]
end

subgraph group_services["Site services"]
  node_siteapi["Site API"]
  node_sharedapi["Shared API helpers<br/>[_shared.js]"]
end

node_boards(("Hiring boards"))
node_resend["Resend"]
node_d1[("Cloudflare D1")]
node_subscriber(("Job seeker"))
node_employer(("Employer"))

node_boards -->|"provide feeds"| node_connectors
node_runner -->|"fetches boards"| node_connectors
node_connectors -->|"requests feeds"| node_http
node_connectors -->|"builds records"| node_jobmodel
node_connectors -->|"normalizes text"| node_text
node_runner -->|"stores and diffs"| node_database
node_runner -->|"runs classification"| node_classrun
node_classrun -->|"filters postings"| node_filter
node_classrun -->|"submits extraction"| node_gemini
node_gemini -->|"fills schema"| node_extract
node_runner -->|"exports listings"| node_export
node_export -->|"reads jobs"| node_database
node_export -->|"computes country verdicts"| node_verdict
node_runner -->|"sends digests"| node_alerts
node_alerts -->|"reads subscribers"| node_d1
node_alerts -->|"sends email"| node_resend
node_runner -->|"publishes updates"| node_telegram
node_export -->|"supplies job data"| node_search
node_subscriber -->|"searches jobs"| node_search
node_search -.->|"renders results"| node_cards
node_cards -->|"uses translations"| node_translations
node_jobrender -->|"renders details"| node_jobpage
node_jobpage -->|"uses translations"| node_translations
node_subscriber -->|"opens job"| node_jobrender
node_subscriber -->|"uses site services"| node_siteapi
node_siteapi -->|"uses helpers"| node_sharedapi
node_siteapi -->|"manages subscriptions"| node_d1
node_employer -.->|"contacts employer API"| node_siteapi
node_siteapi -->|"stores sign-ups"| node_d1

click node_connectors "https://github.com/aymenjeddou/hireshere/tree/main/pipeline/connectors"
click node_http "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/http.py"
click node_jobmodel "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/models.py"
click node_text "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/text.py"
click node_runner "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/run.py"
click node_database "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/db.py"
click node_config "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/config.py"
click node_filter "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/prompt.py"
click node_extract "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/schema.py"
click node_gemini "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/gemini.py"
click node_classrun "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/runner.py"
click node_verdict "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/verdict.py"
click node_export "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/export.py"
click node_alerts "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/alerts.py"
click node_telegram "https://github.com/aymenjeddou/hireshere/blob/main/pipeline/telegram.py"
click node_search "https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/search.ts"
click node_cards "https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/cards.ts"
click node_jobpage "https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/jobpage.ts"
click node_translations "https://github.com/aymenjeddou/hireshere/blob/main/site/src/i18n.ts"
click node_jobrender "https://github.com/aymenjeddou/hireshere/blob/main/site/functions/_job.js"
click node_siteapi "https://github.com/aymenjeddou/hireshere/tree/main/site/functions/api"
click node_sharedapi "https://github.com/aymenjeddou/hireshere/blob/main/site/functions/api/_shared.js"

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_connectors,node_http,node_jobmodel,node_text,node_runner,node_database toneBlue
class node_config,node_filter,node_extract,node_gemini,node_classrun,node_verdict,node_d1 toneAmber
class node_export,node_alerts,node_telegram toneMint
class node_search,node_cards,node_jobpage,node_translations,node_jobrender toneRose
class node_siteapi,node_sharedapi,node_boards,node_resend,node_subscriber,node_employer toneIndigo
```

## Components

### Job ingestion

- [Feed connectors](https://github.com/aymenjeddou/hireshere/tree/main/pipeline/connectors): `pipeline/connectors`
- [HTTP client](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/http.py): `pipeline/http.py`
- [Job records](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/models.py): `pipeline/models.py`
- [Text and dates](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/text.py): `pipeline/text.py`
- [Pipeline runner](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/run.py): `pipeline/run.py`
- [Job database](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/db.py): `pipeline/db.py`

### Eligibility pipeline

- [Pipeline config](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/config.py): `pipeline/config.py`
- [Remote prefilter](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/prompt.py): `pipeline/classify/prompt.py`
- [Posting extraction](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/schema.py): `pipeline/classify/schema.py`
- [Gemini classifier](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/gemini.py): `pipeline/classify/gemini.py`
- [Classification runner](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/runner.py): `pipeline/classify/runner.py`
- [Country verdicts](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/classify/verdict.py): `pipeline/classify/verdict.py`

### Publishing and alerts

- [Search data export](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/export.py): `pipeline/export.py`
- [Email alerts](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/alerts.py): `pipeline/alerts.py`
- [Telegram updates](https://github.com/aymenjeddou/hireshere/blob/main/pipeline/telegram.py): `pipeline/telegram.py`

### Job seeker site

- [Job search UI](https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/search.ts): `site/src/scripts/search.ts`
- [Job cards](https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/cards.ts): `site/src/scripts/cards.ts`
- [Job detail UI](https://github.com/aymenjeddou/hireshere/blob/main/site/src/scripts/jobpage.ts): `site/src/scripts/jobpage.ts`
- [Translations](https://github.com/aymenjeddou/hireshere/blob/main/site/src/i18n.ts): `site/src/i18n.ts`
- [Job page rendering](https://github.com/aymenjeddou/hireshere/blob/main/site/functions/_job.js): `site/functions/_job.js`

### Site services

- [Site API](https://github.com/aymenjeddou/hireshere/tree/main/site/functions/api): `site/functions/api`
- [Shared API helpers](https://github.com/aymenjeddou/hireshere/blob/main/site/functions/api/_shared.js): `site/functions/api/_shared.js`

### Other components

- **Hiring boards**
- **Resend**
- **Cloudflare D1**
- **Job seeker**
- **Employer**

## Connections

- Hiring boards → Feed connectors: provide feeds
- Pipeline runner → Feed connectors: fetches boards (evidence: `pipeline/run.py`)
- Feed connectors → HTTP client: requests feeds (evidence: `pipeline/connectors/jobicy.py`)
- Feed connectors → Job records: builds records (evidence: `pipeline/connectors/jobicy.py`)
- Feed connectors → Text and dates: normalizes text (evidence: `pipeline/connectors/jobicy.py`)
- Pipeline runner → Job database: stores and diffs (evidence: `pipeline/run.py`)
- Pipeline runner → Classification runner: runs classification (evidence: `pipeline/run.py`)
- Classification runner → Remote prefilter: filters postings (evidence: `pipeline/classify/runner.py`)
- Classification runner → Gemini classifier: submits extraction (evidence: `pipeline/classify/runner.py`)
- Gemini classifier → Posting extraction: fills schema (evidence: `pipeline/classify/gemini.py`)
- Pipeline runner → Search data export: exports listings (evidence: `pipeline/run.py`)
- Search data export → Job database: reads jobs (evidence: `pipeline/export.py`)
- Search data export → Country verdicts: computes country verdicts (evidence: `pipeline/export.py`)
- Pipeline runner → Email alerts: sends digests (evidence: `pipeline/run.py`)
- Email alerts → Cloudflare D1: reads subscribers (evidence: `pipeline/alerts.py`)
- Email alerts → Resend: sends email (evidence: `pipeline/alerts.py`)
- Pipeline runner → Telegram updates: publishes updates (evidence: `pipeline/run.py`)
- Search data export → Job search UI: supplies job data
- Job seeker → Job search UI: searches jobs
- Job search UI → Job cards: renders results
- Job cards → Translations: uses translations (evidence: `site/src/scripts/cards.ts`)
- Job page rendering → Job detail UI: renders details (evidence: `site/functions/_job.js`)
- Job detail UI → Translations: uses translations (evidence: `site/src/scripts/jobpage.ts`)
- Job seeker → Job page rendering: opens job
- Job seeker → Site API: uses site services
- Site API → Shared API helpers: uses helpers (evidence: `site/functions/api/subscribe.js`)
- Site API → Cloudflare D1: manages subscriptions
- Employer → Site API: contacts employer API
- Site API → Cloudflare D1: stores sign-ups
