# abhirajtiwari12/iship-scan architecture

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

- Interactive diagram: https://gitdiagram.com/abhirajtiwari12/iship-scan
- Repository: https://github.com/abhirajtiwari12/iship-scan

## Overview

iship-scan polls company career systems and secondary feeds to identify new U.S. technical internships, filter and rank them, then publishes alerts and digests. Its main runtime path is orchestrated by `scan/main.py`; a separate maintenance path discovers and adds company boards. The README documents additional integrations and outputs that are not fully shown in the excerpts, so those relationships are cited to the README. Unsampled implementation details are represented only where the documented capability supports them.

Main entry points: [`scan/main.py`](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/main.py) (Scan orchestrator), [`tools/refresh_companies.py`](https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/refresh_companies.py) (Company list refresher), [`scan/sources.py`](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/sources.py) (Direct ATS fetchers), [`scan/render.py`](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/render.py) (Digest and site renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scan["Scanning and classification"]
  node_main["Scan orchestrator<br/>[main.py]"]
  node_companies["Company board registry<br/>[companies.json]"]
  node_tiers["Company tiers<br/>[tiers.json]"]
  node_sources["Direct ATS fetchers<br/>[sources.py]"]
  node_http["HTTP transport<br/>[http.py]"]
  node_feedconfig["Secondary feed config<br/>[feeds.json]"]
  node_feeds["Feed parsers<br/>[feeds.py]"]
  node_classify["Internship and eligibility rules<br/>[classify.py]"]
end

subgraph group_state["Tracking and alert outputs"]
  node_statefiles[("Scan state")]
  node_alerts["Alert CSV<br/>[alerts.csv]"]
  node_excluded["Citizenship exclusions"]
  node_render["Digest and site renderer<br/>[render.py]"]
  node_digests["Digest files"]
  node_site["Live alerts page"]
end

subgraph group_discovery["Board discovery"]
  node_refresh["Company list refresher"]
  node_mine["ATS token miner<br/>[mine_tokens.py]"]
  node_discover["Board slug discovery<br/>[discover.py]"]
end

node_operator(("Operator or scheduler"))
node_externalboards["Company hiring systems"]
node_externalfeeds["External job feeds"]
node_github["GitHub issues"]
node_publiclists["Public listing datasets"]
node_publicdirectory["Public ATS directory"]
node_yc["YC hiring list"]

node_operator -->|"starts scan"| node_main
node_main -->|"loads boards"| node_companies
node_main -->|"loads feeds"| node_feedconfig
node_main -->|"fetches boards"| node_sources
node_sources -->|"requests data"| node_http
node_sources -->|"dispatches feeds"| node_feeds
node_feeds -->|"fetches feed data"| node_http
node_sources -->|"polls postings"| node_externalboards
node_feeds -->|"reads listings"| node_externalfeeds
node_main -->|"filters postings"| node_classify
node_main -->|"scores companies"| node_tiers
node_main -->|"checks and updates"| node_statefiles
node_main -->|"appends alerts"| node_alerts
node_main -->|"logs exclusions"| node_excluded
node_main -->|"builds digests"| node_render
node_render -->|"groups by tier"| node_tiers
node_render -->|"writes digests"| node_digests
node_render -->|"writes page data"| node_site
node_main -.->|"notifies issues"| node_github
node_operator -->|"starts refresh"| node_refresh
node_refresh -->|"extracts tokens"| node_mine
node_refresh -->|"probes missing boards"| node_discover
node_refresh -->|"fetches directories"| node_http
node_refresh -->|"updates registry"| node_companies
node_refresh -->|"selects tiered firms"| node_tiers
node_refresh -->|"mines links"| node_publiclists
node_refresh -->|"imports boards"| node_publicdirectory
node_refresh -->|"checks hiring firms"| node_yc
node_discover -->|"probes ATS APIs"| node_http
node_discover -->|"tests board slugs"| node_externalboards

click node_main "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/main.py"
click node_companies "https://github.com/abhirajtiwari12/iship-scan/blob/main/data/companies.json"
click node_tiers "https://github.com/abhirajtiwari12/iship-scan/blob/main/data/tiers.json"
click node_sources "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/sources.py"
click node_http "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/http.py"
click node_feedconfig "https://github.com/abhirajtiwari12/iship-scan/blob/main/data/feeds.json"
click node_feeds "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/feeds.py"
click node_classify "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/classify.py"
click node_statefiles "https://github.com/abhirajtiwari12/iship-scan/tree/main/state"
click node_alerts "https://github.com/abhirajtiwari12/iship-scan/blob/main/alerts.csv"
click node_excluded "https://github.com/abhirajtiwari12/iship-scan/blob/main/excluded_citizenship.csv"
click node_render "https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/render.py"
click node_digests "https://github.com/abhirajtiwari12/iship-scan/tree/main/digests"
click node_site "https://github.com/abhirajtiwari12/iship-scan/tree/main/docs"
click node_refresh "https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/refresh_companies.py"
click node_mine "https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/mine_tokens.py"
click node_discover "https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/discover.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_main,node_companies,node_tiers,node_sources,node_http,node_feedconfig,node_feeds,node_classify toneBlue
class node_statefiles,node_alerts,node_excluded,node_render,node_digests,node_site toneAmber
class node_refresh,node_mine,node_discover toneMint
class node_operator toneRose
class node_externalboards,node_externalfeeds,node_github,node_publiclists,node_publicdirectory,node_yc toneIndigo
```

## Components

### Scanning and classification

- [Scan orchestrator](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/main.py): `scan/main.py`
- [Company board registry](https://github.com/abhirajtiwari12/iship-scan/blob/main/data/companies.json): `data/companies.json`
- [Company tiers](https://github.com/abhirajtiwari12/iship-scan/blob/main/data/tiers.json): `data/tiers.json`
- [Direct ATS fetchers](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/sources.py): `scan/sources.py`
- [HTTP transport](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/http.py): `scan/http.py`
- [Secondary feed config](https://github.com/abhirajtiwari12/iship-scan/blob/main/data/feeds.json): `data/feeds.json`
- [Feed parsers](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/feeds.py): `scan/feeds.py`
- [Internship and eligibility rules](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/classify.py): `scan/classify.py`

### Tracking and alert outputs

- [Scan state](https://github.com/abhirajtiwari12/iship-scan/tree/main/state): `state`
- [Alert CSV](https://github.com/abhirajtiwari12/iship-scan/blob/main/alerts.csv): `alerts.csv`
- [Citizenship exclusions](https://github.com/abhirajtiwari12/iship-scan/blob/main/excluded_citizenship.csv): `excluded_citizenship.csv`
- [Digest and site renderer](https://github.com/abhirajtiwari12/iship-scan/blob/main/scan/render.py): `scan/render.py`
- [Digest files](https://github.com/abhirajtiwari12/iship-scan/tree/main/digests): `digests`
- [Live alerts page](https://github.com/abhirajtiwari12/iship-scan/tree/main/docs): `docs`

### Board discovery

- [Company list refresher](https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/refresh_companies.py): `tools/refresh_companies.py`
- [ATS token miner](https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/mine_tokens.py): `tools/mine_tokens.py`
- [Board slug discovery](https://github.com/abhirajtiwari12/iship-scan/blob/main/tools/discover.py): `tools/discover.py`

### Other components

- **Operator or scheduler**
- **Company hiring systems**
- **External job feeds**
- **GitHub issues**
- **Public listing datasets**
- **Public ATS directory**
- **YC hiring list**

## Connections

- Operator or scheduler → Scan orchestrator: starts scan (evidence: `README.md`)
- Scan orchestrator → Company board registry: loads boards (evidence: `scan/main.py`)
- Scan orchestrator → Secondary feed config: loads feeds (evidence: `scan/main.py`)
- Scan orchestrator → Direct ATS fetchers: fetches boards (evidence: `scan/main.py`)
- Direct ATS fetchers → HTTP transport: requests data (evidence: `scan/sources.py`)
- Direct ATS fetchers → Feed parsers: dispatches feeds (evidence: `scan/sources.py`)
- Feed parsers → HTTP transport: fetches feed data (evidence: `scan/feeds.py`)
- Direct ATS fetchers → Company hiring systems: polls postings (evidence: `README.md`)
- Feed parsers → External job feeds: reads listings (evidence: `README.md`)
- Scan orchestrator → Internship and eligibility rules: filters postings (evidence: `scan/main.py`)
- Scan orchestrator → Company tiers: scores companies (evidence: `scan/main.py`)
- Scan orchestrator → Scan state: checks and updates (evidence: `README.md`)
- Scan orchestrator → Alert CSV: appends alerts (evidence: `README.md`)
- Scan orchestrator → Citizenship exclusions: logs exclusions (evidence: `README.md`)
- Scan orchestrator → Digest and site renderer: builds digests (evidence: `scan/main.py`)
- Digest and site renderer → Company tiers: groups by tier (evidence: `scan/render.py`)
- Digest and site renderer → Digest files: writes digests (evidence: `README.md`)
- Digest and site renderer → Live alerts page: writes page data (evidence: `scan/render.py`)
- Scan orchestrator → GitHub issues: notifies issues (evidence: `README.md`)
- Operator or scheduler → Company list refresher: starts refresh (evidence: `README.md`)
- Company list refresher → ATS token miner: extracts tokens (evidence: `tools/refresh_companies.py`)
- Company list refresher → Board slug discovery: probes missing boards (evidence: `tools/refresh_companies.py`)
- Company list refresher → HTTP transport: fetches directories (evidence: `tools/refresh_companies.py`)
- Company list refresher → Company board registry: updates registry (evidence: `tools/refresh_companies.py`)
- Company list refresher → Company tiers: selects tiered firms (evidence: `tools/refresh_companies.py`)
- Company list refresher → Public listing datasets: mines links (evidence: `tools/refresh_companies.py`)
- Company list refresher → Public ATS directory: imports boards (evidence: `tools/refresh_companies.py`)
- Company list refresher → YC hiring list: checks hiring firms (evidence: `tools/refresh_companies.py`)
- Board slug discovery → HTTP transport: probes ATS APIs (evidence: `tools/discover.py`)
- Board slug discovery → Company hiring systems: tests board slugs (evidence: `tools/discover.py`)
