# sepuri-sai-krishna/hackathon-radar architecture

> Architecture diagram of the GitHub repository sepuri-sai-krishna/hackathon-radar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sepuri-sai-krishna/hackathon-radar
- Repository: https://github.com/sepuri-sai-krishna/hackathon-radar

## Overview

Hackathon Radar aggregates listings from five platforms into a searchable, normalized dataset, then lets visitors discover events, open shareable event pages, inspect source health, and track participation. The scrape workflow runs registered source adapters through fetching, enrichment and deduplication before publishing data. In the web app, App coordinates routing, filtering and views; tracker state can remain in localStorage or sync through the API to Cloudflare D1. README documents major capabilities and deployment relationships; some function and scraper internals were not excerpted, so those links use documented evidence rather than claims of source inspection.

Main entry points: [`src/App.tsx`](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/App.tsx) (App coordinator), [`scrapers/index.ts`](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/index.ts) (Scrape runner), [`scrapers/sources`](https://github.com/sepuri-sai-krishna/hackathon-radar/tree/master/scrapers/sources) (Source adapters), [`src/components/HackathonDetail.tsx`](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/HackathonDetail.tsx) (Event detail view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and publishing"]
  node_runner["Scrape runner<br/>[index.ts]"]
  node_adapters["Source adapters"]
  node_fetch["HTTP and pagination<br/>[http.ts]"]
  node_enrich["Normalize and enrich<br/>[enrich.ts]"]
  node_dedupe["Event deduplication<br/>[dedupe.ts]"]
  node_schema["Schema.org parsing<br/>[schemaorg.ts]"]
  node_contract["Shared event model<br/>[types.ts]"]
  node_dataset["Published dataset<br/>[hackathons.json]"]
  node_sitemap["Event sitemap<br/>[sitemap.xml]"]
end

subgraph group_experience["Discovery and tracking"]
  node_app["App coordinator<br/>[App.tsx]"]
  node_routing["Client routing<br/>[router.ts]"]
  node_filters["Discovery filters<br/>[Filters.tsx]"]
  node_filterlogic["Filter logic<br/>[filters.ts]"]
  node_cards["Hackathon cards<br/>[HackathonCard.tsx]"]
  node_detail["Event detail view"]
  node_sourcehealth["Source health view<br/>[SourceHealth.tsx]"]
  node_format["Display formatting<br/>[format.ts]"]
  node_trackerclient["Tracker client<br/>[tracker.ts]"]
  node_browserstorage[("Browser localStorage")]
end

subgraph group_platform["Pages and persistence"]
  node_eventpage["Shareable event renderer<br/>[&#91;slug&#93;.ts]"]
  node_imageproxy["Image proxy<br/>[image.ts]"]
  node_trackerapi["Tracker API<br/>[tracker.ts]"]
  node_d1[("Cloudflare D1<br/>[schema.sql]")]
end

node_visitor(("Hackathon seeker"))
node_platforms(("Hackathon platforms"))
node_imagecdn(("External image hosts"))

node_runner -->|"runs concurrently"| node_adapters
node_adapters -->|"fetches through"| node_fetch
node_adapters -->|"parses markup"| node_schema
node_platforms -->|"provides listings"| node_adapters
node_adapters -->|"maps event data"| node_enrich
node_runner -->|"derives fields"| node_enrich
node_runner -->|"deduplicates events"| node_dedupe
node_runner -->|"writes dataset"| node_dataset
node_runner -->|"writes sitemap"| node_sitemap
node_adapters -->|"returns raw events"| node_contract
node_runner -->|"produces dataset shape"| node_contract
node_visitor -->|"browses"| node_app
node_app -->|"loads dataset"| node_dataset
node_app -->|"reads route"| node_routing
node_app -->|"renders filters"| node_filters
node_filters -->|"applies criteria"| node_filterlogic
node_app -->|"filters listings"| node_filterlogic
node_app -->|"renders results"| node_cards
node_app -->|"renders selected event"| node_detail
node_app -->|"renders health report"| node_sourcehealth
node_detail -->|"formats event fields"| node_format
node_app -->|"loads and saves tracking"| node_trackerclient
node_trackerclient -->|"mirrors tracker state"| node_browserstorage
node_trackerclient -->|"syncs over HTTP"| node_trackerapi
node_trackerapi -->|"reads and writes"| node_d1
node_visitor -->|"opens event URL"| node_eventpage
node_eventpage -->|"loads event data"| node_dataset
node_cards -->|"requests event image"| node_imageproxy
node_detail -->|"requests event image"| node_imageproxy
node_imageproxy -->|"fetches approved images"| node_imagecdn

click node_runner "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/index.ts"
click node_adapters "https://github.com/sepuri-sai-krishna/hackathon-radar/tree/master/scrapers/sources"
click node_fetch "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/http.ts"
click node_enrich "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/enrich.ts"
click node_dedupe "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/dedupe.ts"
click node_schema "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/schemaorg.ts"
click node_contract "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/shared/types.ts"
click node_dataset "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/public/data/hackathons.json"
click node_sitemap "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/public/sitemap.xml"
click node_app "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/App.tsx"
click node_routing "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/router.ts"
click node_filters "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/Filters.tsx"
click node_filterlogic "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/filters.ts"
click node_cards "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/HackathonCard.tsx"
click node_detail "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/HackathonDetail.tsx"
click node_sourcehealth "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/SourceHealth.tsx"
click node_format "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/format.ts"
click node_trackerclient "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/tracker.ts"
click node_eventpage "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/h/%5Bslug%5D.ts"
click node_imageproxy "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/api/image.ts"
click node_trackerapi "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/api/tracker.ts"
click node_d1 "https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/schema.sql"

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_runner,node_adapters,node_fetch,node_enrich,node_dedupe,node_schema,node_contract,node_dataset,node_sitemap toneBlue
class node_app,node_routing,node_filters,node_filterlogic,node_cards,node_detail,node_sourcehealth,node_format,node_trackerclient,node_browserstorage toneAmber
class node_eventpage,node_imageproxy,node_trackerapi,node_d1 toneMint
class node_visitor,node_platforms,node_imagecdn toneIndigo
```

## Components

### Collection and publishing

- [Scrape runner](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/index.ts): `scrapers/index.ts`
- [Source adapters](https://github.com/sepuri-sai-krishna/hackathon-radar/tree/master/scrapers/sources): `scrapers/sources`
- [HTTP and pagination](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/http.ts): `scrapers/lib/http.ts`
- [Normalize and enrich](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/enrich.ts): `scrapers/lib/enrich.ts`
- [Event deduplication](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/dedupe.ts): `scrapers/lib/dedupe.ts`
- [Schema.org parsing](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/scrapers/lib/schemaorg.ts): `scrapers/lib/schemaorg.ts`
- [Shared event model](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/shared/types.ts): `shared/types.ts`
- [Published dataset](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/public/data/hackathons.json): `public/data/hackathons.json`
- [Event sitemap](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/public/sitemap.xml): `public/sitemap.xml`

### Discovery and tracking

- [App coordinator](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/App.tsx): `src/App.tsx`
- [Client routing](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/router.ts): `src/lib/router.ts`
- [Discovery filters](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/Filters.tsx): `src/components/Filters.tsx`
- [Filter logic](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/filters.ts): `src/lib/filters.ts`
- [Hackathon cards](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/HackathonCard.tsx): `src/components/HackathonCard.tsx`
- [Event detail view](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/HackathonDetail.tsx): `src/components/HackathonDetail.tsx`
- [Source health view](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/components/SourceHealth.tsx): `src/components/SourceHealth.tsx`
- [Display formatting](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/format.ts): `src/lib/format.ts`
- [Tracker client](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/src/lib/tracker.ts): `src/lib/tracker.ts`
- **Browser localStorage**

### Pages and persistence

- [Shareable event renderer](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/h/%5Bslug%5D.ts): `functions/h/[slug].ts`
- [Image proxy](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/api/image.ts): `functions/api/image.ts`
- [Tracker API](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/functions/api/tracker.ts): `functions/api/tracker.ts`
- [Cloudflare D1](https://github.com/sepuri-sai-krishna/hackathon-radar/blob/master/schema.sql): `schema.sql`

### Other components

- **Hackathon seeker**
- **Hackathon platforms**
- **External image hosts**

## Connections

- Scrape runner → Source adapters: runs concurrently (evidence: `README.md`)
- Source adapters → HTTP and pagination: fetches through (evidence: `scrapers/sources/devpost.ts`)
- Source adapters → Schema.org parsing: parses markup (evidence: `scrapers/sources/generic.ts`)
- Hackathon platforms → Source adapters: provides listings (evidence: `README.md`)
- Source adapters → Normalize and enrich: maps event data (evidence: `scrapers/sources/devpost.ts`)
- Scrape runner → Normalize and enrich: derives fields (evidence: `README.md`)
- Scrape runner → Event deduplication: deduplicates events (evidence: `scrapers/index.ts`)
- Scrape runner → Published dataset: writes dataset (evidence: `README.md`)
- Scrape runner → Event sitemap: writes sitemap (evidence: `scrapers/index.ts`)
- Source adapters → Shared event model: returns raw events (evidence: `scrapers/sources/devpost.ts`)
- Scrape runner → Shared event model: produces dataset shape (evidence: `README.md`)
- Hackathon seeker → App coordinator: browses (evidence: `README.md`)
- App coordinator → Published dataset: loads dataset (evidence: `src/App.tsx`)
- App coordinator → Client routing: reads route (evidence: `src/App.tsx`)
- App coordinator → Discovery filters: renders filters (evidence: `src/App.tsx`)
- Discovery filters → Filter logic: applies criteria (evidence: `src/components/Filters.tsx`)
- App coordinator → Filter logic: filters listings (evidence: `src/App.tsx`)
- App coordinator → Hackathon cards: renders results (evidence: `src/App.tsx`)
- App coordinator → Event detail view: renders selected event (evidence: `src/App.tsx`)
- App coordinator → Source health view: renders health report (evidence: `src/App.tsx`)
- Event detail view → Display formatting: formats event fields (evidence: `src/components/HackathonDetail.tsx`)
- App coordinator → Tracker client: loads and saves tracking (evidence: `src/App.tsx`)
- Tracker client → Browser localStorage: mirrors tracker state (evidence: `src/lib/tracker.ts`)
- Tracker client → Tracker API: syncs over HTTP (evidence: `src/lib/tracker.ts`)
- Tracker API → Cloudflare D1: reads and writes (evidence: `README.md`)
- Hackathon seeker → Shareable event renderer: opens event URL (evidence: `README.md`)
- Shareable event renderer → Published dataset: loads event data (evidence: `README.md`)
- Hackathon cards → Image proxy: requests event image
- Event detail view → Image proxy: requests event image
- Image proxy → External image hosts: fetches approved images (evidence: `README.md`)
