# adwaitbytes/hackathon-launchboard architecture

> Architecture diagram of the GitHub repository adwaitbytes/hackathon-launchboard, 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/adwaitbytes/hackathon-launchboard
- Repository: https://github.com/adwaitbytes/hackathon-launchboard

## Overview

Hackathon Launchboard aggregates live listings into a normalized feed and presents them alongside a curated directory. Users browse, search, filter, and sort hackathons; they can refresh live data, watch events for deadline notifications, or export calendar files. The graph preserves the documented curated-directory capability and the Devpost, Devfolio, and MLH adapter branches. Relationships are limited to those shown in excerpts or the README; unsampled UI and source details are not inferred.

Main entry points: [`lib/feeds.ts`](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/feeds.ts) (Feed aggregator), [`components/Board.tsx`](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/components/Board.tsx) (Interactive board), [`app/page.tsx`](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/app/page.tsx) (Home page), [`lib/types.ts`](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/types.ts) (Hack data contract)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application and board"]
  node_home["Home page<br/>[page.tsx]"]
  node_board["Interactive board<br/>[Board.tsx]"]
  node_refresh_api["Refresh endpoint<br/>[route.ts]"]
end

subgraph group_feeds["Live feed aggregation"]
  node_live_feed["Feed aggregator<br/>[feeds.ts]"]
  node_devpost_adapter["Devpost adapter<br/>[devpost.ts]"]
  node_devfolio_adapter["Devfolio adapter<br/>[devfolio.ts]"]
  node_mlh_adapter["MLH adapter<br/>[mlh.ts]"]
  node_hack_contract["Hack data contract<br/>[types.ts]"]
end

subgraph group_directory["Curated discovery"]
  node_source_directory["Curated sources<br/>[sources.ts]"]
end

subgraph group_tools["Watchlist and utilities"]
  node_deadline_tools["Deadline utilities<br/>[deadline.ts]"]
  node_watchlist["Watchlist alerts<br/>[useWatchlist.ts]"]
  node_calendar_export["Calendar export<br/>[ics.ts]"]
end

node_visitor(("Hackathon seeker"))
node_devpost_service{{"Devpost API"}}
node_devfolio_service{{"Devfolio API"}}
node_mlh_service{{"MLH season site"}}

node_visitor -->|"opens"| node_home
node_home -->|"fetches feed"| node_live_feed
node_home -->|"loads listings"| node_source_directory
node_home -->|"renders with data"| node_board
node_board -->|"requests refresh"| node_refresh_api
node_refresh_api -->|"fetches feed"| node_live_feed
node_live_feed -->|"runs adapter"| node_devpost_adapter
node_live_feed -->|"runs adapter"| node_devfolio_adapter
node_live_feed -->|"runs adapter"| node_mlh_adapter
node_devpost_adapter -->|"fetches listings"| node_devpost_service
node_devfolio_adapter -->|"fetches listings"| node_devfolio_service
node_mlh_adapter -->|"fetches events"| node_mlh_service
node_devpost_adapter -->|"normalizes to"| node_hack_contract
node_devfolio_adapter -->|"normalizes to"| node_hack_contract
node_mlh_adapter -->|"normalizes to"| node_hack_contract
node_live_feed -->|"returns feed"| node_hack_contract
node_board -->|"uses countdowns"| node_deadline_tools
node_board -->|"tracks events"| node_watchlist
node_watchlist -->|"checks deadlines"| node_deadline_tools
node_board -->|"downloads calendar"| node_calendar_export

click node_home "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/app/page.tsx"
click node_board "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/components/Board.tsx"
click node_refresh_api "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/app/api/hackathons/route.ts"
click node_live_feed "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/feeds.ts"
click node_devpost_adapter "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/devpost.ts"
click node_devfolio_adapter "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/devfolio.ts"
click node_mlh_adapter "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/mlh.ts"
click node_hack_contract "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/types.ts"
click node_source_directory "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/sources.ts"
click node_deadline_tools "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/deadline.ts"
click node_watchlist "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/components/useWatchlist.ts"
click node_calendar_export "https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/ics.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_home,node_board,node_refresh_api toneBlue
class node_live_feed,node_devpost_adapter,node_devfolio_adapter,node_mlh_adapter,node_hack_contract toneAmber
class node_source_directory,node_devpost_service,node_devfolio_service toneMint
class node_deadline_tools,node_watchlist,node_calendar_export toneRose
class node_visitor,node_mlh_service toneIndigo
```

## Components

### Application and board

- [Home page](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/app/page.tsx): `app/page.tsx`
- [Interactive board](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/components/Board.tsx): `components/Board.tsx`
- [Refresh endpoint](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/app/api/hackathons/route.ts): `app/api/hackathons/route.ts`

### Live feed aggregation

- [Feed aggregator](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/feeds.ts): `lib/feeds.ts`
- [Devpost adapter](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/devpost.ts): `lib/devpost.ts`
- [Devfolio adapter](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/devfolio.ts): `lib/devfolio.ts`
- [MLH adapter](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/mlh.ts): `lib/mlh.ts`
- [Hack data contract](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/types.ts): `lib/types.ts`

### Curated discovery

- [Curated sources](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/sources.ts): `lib/sources.ts`

### Watchlist and utilities

- [Deadline utilities](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/deadline.ts): `lib/deadline.ts`
- [Watchlist alerts](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/components/useWatchlist.ts): `components/useWatchlist.ts`
- [Calendar export](https://github.com/adwaitbytes/hackathon-launchboard/blob/main/lib/ics.ts): `lib/ics.ts`

### Other components

- **Hackathon seeker**
- **Devpost API**
- **Devfolio API**
- **MLH season site**

## Connections

- Hackathon seeker → Home page: opens (evidence: `app/page.tsx`)
- Home page → Feed aggregator: fetches feed (evidence: `app/page.tsx`)
- Home page → Curated sources: loads listings (evidence: `app/page.tsx`)
- Home page → Interactive board: renders with data (evidence: `app/page.tsx`)
- Interactive board → Refresh endpoint: requests refresh (evidence: `components/Board.tsx`)
- Refresh endpoint → Feed aggregator: fetches feed (evidence: `app/api/hackathons/route.ts`)
- Feed aggregator → Devpost adapter: runs adapter (evidence: `lib/feeds.ts`)
- Feed aggregator → Devfolio adapter: runs adapter (evidence: `lib/feeds.ts`)
- Feed aggregator → MLH adapter: runs adapter (evidence: `lib/feeds.ts`)
- Devpost adapter → Devpost API: fetches listings (evidence: `lib/devpost.ts`)
- Devfolio adapter → Devfolio API: fetches listings (evidence: `lib/devfolio.ts`)
- MLH adapter → MLH season site: fetches events (evidence: `lib/mlh.ts`)
- Devpost adapter → Hack data contract: normalizes to (evidence: `lib/devpost.ts`)
- Devfolio adapter → Hack data contract: normalizes to (evidence: `lib/devfolio.ts`)
- MLH adapter → Hack data contract: normalizes to (evidence: `lib/mlh.ts`)
- Feed aggregator → Hack data contract: returns feed (evidence: `lib/feeds.ts`)
- Interactive board → Deadline utilities: uses countdowns (evidence: `components/Board.tsx`)
- Interactive board → Watchlist alerts: tracks events (evidence: `components/Board.tsx`)
- Watchlist alerts → Deadline utilities: checks deadlines (evidence: `components/useWatchlist.ts`)
- Interactive board → Calendar export: downloads calendar (evidence: `components/Board.tsx`)
