# m4xx1k/metahunt_solo architecture

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

- Interactive diagram: https://gitdiagram.com/m4xx1k/metahunt_solo
- Repository: https://github.com/m4xx1k/metahunt_solo

## Overview

MetaHunt is a candidate-first job radar for the Ukrainian IT market. Its principal workflow collects vacancies from job-board feeds, extracts and loads structured records, deduplicates copies, then exposes a searchable, CV-ranked feed and sends matching alerts through Telegram. Other documented product surfaces include CV matching, market and role discovery, account and subscription management, and operator tools. The README establishes the high-level workflow; source excerpts and the SOURCE INDEX support selected internal links. Several listed capabilities are unsampled, so their internal wiring is not inferred.

Main entry points: [`libs/database/src/database.module.ts`](https://github.com/m4xx1k/metahunt_solo/blob/main/libs/database/src/database.module.ts) (Application database), [`apps/etl/src/01-ingest/rss/rss-ingest.service.ts`](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/01-ingest/rss/rss-ingest.service.ts) (RSS ingestion), [`apps/etl/src/02-enrich/dedup/dedup.service.ts`](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/dedup/dedup.service.ts) (Deduplication), [`apps/etl/src/03-discovery/feed/feed.service.ts`](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/feed/feed.service.ts) (Vacancy feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Vacancy ingestion"]
  node_rss["RSS ingestion"]
end

subgraph group_enrich["Enrichment"]
  node_extract["Vacancy extraction"]
  node_loader["Vacancy loading"]
  node_dedup["Deduplication<br/>[dedup.service.ts]"]
  node_embeddings["Embedding service"]
end

subgraph group_discovery["Candidate discovery"]
  node_cv["CV matching"]
  node_ranking["Scoring and ranking<br/>[scorer.port.ts]"]
  node_feed["Vacancy feed<br/>[feed.service.ts]"]
  node_market["Market discovery<br/>[market.service.ts]"]
  node_recommendations["Role recommendations"]
  node_tracks["Career tracks<br/>[tracks.service.ts]"]
end

subgraph group_notify["Alerts and accounts"]
  node_alerts["Alert selection<br/>[alerts.service.ts]"]
  node_telegram["Telegram delivery"]
  node_users["Account management<br/>[me.service.ts]"]
  node_subscriptions["Subscriptions"]
  node_auth["Authentication<br/>[auth.service.ts]"]
end

subgraph group_ops["Operations"]
  node_operator["Operator tools"]
  node_analytics["Product analytics"]
end

node_boards(("Job boards"))
node_db[("Application database<br/>[database.module.ts]")]
node_openai["OpenAI embeddings"]
node_telegram_service["Telegram"]

node_boards -->|"provides feeds"| node_rss
node_rss -->|"reads sources"| node_db
node_rss -->|"starts workflows"| node_extract
node_extract -.->|"structures vacancies"| node_loader
node_loader -.->|"loads records"| node_db
node_dedup -->|"reads and updates"| node_db
node_dedup -->|"requests vectors"| node_embeddings
node_embeddings -->|"calls embeddings API"| node_openai
node_cv -.->|"loads candidate data"| node_db
node_ranking -->|"scores vacancies"| node_db
node_feed -->|"requests scoring"| node_ranking
node_feed -->|"queries vacancies"| node_db
node_market -.->|"queries market data"| node_db
node_recommendations -.->|"derives suggestions"| node_db
node_tracks -.->|"reads track data"| node_db
node_alerts -.->|"matches subscribers"| node_subscriptions
node_alerts -.->|"delivers matches"| node_telegram
node_telegram -.->|"sends messages"| node_telegram_service
node_users -->|"manages account data"| node_db
node_users -->|"records events"| node_analytics
node_subscriptions -.->|"manages subscriptions"| node_db
node_auth -->|"stores identities"| node_db
node_auth -->|"records events"| node_analytics
node_operator -->|"checks vacancy coverage"| node_db

click node_rss "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/01-ingest/rss/rss-ingest.service.ts"
click node_extract "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/extraction/vacancy-extractor.ts"
click node_loader "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/loader/services/vacancy-loader.service.ts"
click node_dedup "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/dedup/dedup.service.ts"
click node_embeddings "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/dedup/openai-embeddings.client.ts"
click node_db "https://github.com/m4xx1k/metahunt_solo/blob/main/libs/database/src/database.module.ts"
click node_cv "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/cv/candidate-match.service.ts"
click node_ranking "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/score/scorer.port.ts"
click node_feed "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/feed/feed.service.ts"
click node_market "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/market/market.service.ts"
click node_recommendations "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/ranking/recommendation.service.ts"
click node_tracks "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/tracks/tracks.service.ts"
click node_alerts "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/alerts/alerts.service.ts"
click node_telegram "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/telegram/telegram.service.ts"
click node_users "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/account/me.service.ts"
click node_subscriptions "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/telegram/subscriptions.service.ts"
click node_auth "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/platform/auth/auth.service.ts"
click node_operator "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/admin/coverage/coverage.service.ts"
click node_analytics "https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/platform/analytics/analytics.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_rss toneBlue
class node_extract,node_loader,node_dedup,node_embeddings,node_db toneAmber
class node_cv,node_ranking,node_feed,node_market,node_recommendations,node_tracks toneMint
class node_alerts,node_telegram,node_users,node_subscriptions,node_auth toneRose
class node_operator,node_analytics,node_boards,node_openai,node_telegram_service toneIndigo
```

## Components

### Vacancy ingestion

- [RSS ingestion](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/01-ingest/rss/rss-ingest.service.ts): `apps/etl/src/01-ingest/rss/rss-ingest.service.ts`

### Enrichment

- [Vacancy extraction](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/extraction/vacancy-extractor.ts): `apps/etl/src/02-enrich/extraction/vacancy-extractor.ts`
- [Vacancy loading](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/loader/services/vacancy-loader.service.ts): `apps/etl/src/02-enrich/loader/services/vacancy-loader.service.ts`
- [Deduplication](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/dedup/dedup.service.ts): `apps/etl/src/02-enrich/dedup/dedup.service.ts`
- [Embedding service](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/02-enrich/dedup/openai-embeddings.client.ts): `apps/etl/src/02-enrich/dedup/openai-embeddings.client.ts`

### Candidate discovery

- [CV matching](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/cv/candidate-match.service.ts): `apps/etl/src/03-discovery/cv/candidate-match.service.ts`
- [Scoring and ranking](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/score/scorer.port.ts): `apps/etl/src/03-discovery/score/scorer.port.ts`
- [Vacancy feed](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/feed/feed.service.ts): `apps/etl/src/03-discovery/feed/feed.service.ts`
- [Market discovery](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/market/market.service.ts): `apps/etl/src/03-discovery/market/market.service.ts`
- [Role recommendations](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/ranking/recommendation.service.ts): `apps/etl/src/03-discovery/ranking/recommendation.service.ts`
- [Career tracks](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/03-discovery/tracks/tracks.service.ts): `apps/etl/src/03-discovery/tracks/tracks.service.ts`

### Alerts and accounts

- [Alert selection](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/alerts/alerts.service.ts): `apps/etl/src/04-notify/alerts/alerts.service.ts`
- [Telegram delivery](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/telegram/telegram.service.ts): `apps/etl/src/04-notify/telegram/telegram.service.ts`
- [Account management](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/account/me.service.ts): `apps/etl/src/account/me.service.ts`
- [Subscriptions](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/04-notify/telegram/subscriptions.service.ts): `apps/etl/src/04-notify/telegram/subscriptions.service.ts`
- [Authentication](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/platform/auth/auth.service.ts): `apps/etl/src/platform/auth/auth.service.ts`

### Operations

- [Operator tools](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/admin/coverage/coverage.service.ts): `apps/etl/src/admin/coverage/coverage.service.ts`
- [Product analytics](https://github.com/m4xx1k/metahunt_solo/blob/main/apps/etl/src/platform/analytics/analytics.service.ts): `apps/etl/src/platform/analytics/analytics.service.ts`

### Other components

- **Job boards**
- [Application database](https://github.com/m4xx1k/metahunt_solo/blob/main/libs/database/src/database.module.ts): `libs/database/src/database.module.ts`
- **OpenAI embeddings**
- **Telegram**

## Connections

- Job boards → RSS ingestion: provides feeds (evidence: `README.md`)
- RSS ingestion → Application database: reads sources (evidence: `apps/etl/src/01-ingest/rss/rss-ingest.service.ts`)
- RSS ingestion → Vacancy extraction: starts workflows (evidence: `apps/etl/src/01-ingest/rss/rss-ingest.service.ts`)
- Vacancy extraction → Vacancy loading: structures vacancies (evidence: `README.md`)
- Vacancy loading → Application database: loads records
- Deduplication → Application database: reads and updates (evidence: `apps/etl/src/02-enrich/dedup/dedup.service.ts`)
- Deduplication → Embedding service: requests vectors (evidence: `apps/etl/src/02-enrich/dedup/dedup.service.ts`)
- Embedding service → OpenAI embeddings: calls embeddings API (evidence: `apps/etl/src/02-enrich/dedup/openai-embeddings.client.ts`)
- CV matching → Application database: loads candidate data (evidence: `README.md`)
- Scoring and ranking → Application database: scores vacancies (evidence: `apps/etl/src/03-discovery/score/scorer.port.ts`)
- Vacancy feed → Scoring and ranking: requests scoring (evidence: `apps/etl/src/03-discovery/feed/feed.service.ts`)
- Vacancy feed → Application database: queries vacancies (evidence: `apps/etl/src/03-discovery/feed/feed.service.ts`)
- Market discovery → Application database: queries market data (evidence: `README.md`)
- Role recommendations → Application database: derives suggestions (evidence: `README.md`)
- Career tracks → Application database: reads track data (evidence: `README.md`)
- Alert selection → Subscriptions: matches subscribers (evidence: `README.md`)
- Alert selection → Telegram delivery: delivers matches (evidence: `README.md`)
- Telegram delivery → Telegram: sends messages (evidence: `README.md`)
- Account management → Application database: manages account data (evidence: `apps/etl/src/account/me.service.ts`)
- Account management → Product analytics: records events (evidence: `apps/etl/src/account/me.service.ts`)
- Subscriptions → Application database: manages subscriptions (evidence: `README.md`)
- Authentication → Application database: stores identities (evidence: `apps/etl/src/platform/auth/auth.service.ts`)
- Authentication → Product analytics: records events (evidence: `apps/etl/src/platform/auth/auth.service.ts`)
- Operator tools → Application database: checks vacancy coverage (evidence: `apps/etl/src/admin/coverage/coverage.service.ts`)
