How marbeegit/hackathonscraper works
Hackathon Scraper aggregates listings from four platforms, normalizes and stores them, then exposes them through a REST API and web interface. Its main workflow is scheduled or manually triggered scraping, followed by persistence and browsing/filtering. The graph includes the documented deduplication capability, although its implementation and wiring were not sampled; the UI-to-API connection is likewise documented as a product capability but its HTTP call is not shown in the excerpts.
Main entry points: page.tsx Hackathon listing · server.ts Express server · index.ts Scrape scheduler · scraper-pipeline.ts Scrape pipeline
Components 25
Collection and scheduling
- Scrape scheduler
src/scheduler/index.ts - Devpost scraper
src/scrapers/devpost.ts - Unstop scraper
src/scrapers/unstop.ts - HackerEarth scraper
src/scrapers/hackerearth.ts - Devfolio scraper
src/scrapers/devfolio.ts
Validation and storage
- Scrape pipeline
src/pipeline/scraper-pipeline.ts - Canonical validation
src/schemas/hackathon.schema.ts - Cross-platform deduplication
src/db/deduplication.ts - Data repository
src/db/repository.ts - SQLite database
src/db/index.ts
API service
- Express server
src/api/server.ts - Hackathon routes
src/api/routes/hackathons.ts - Platform routes
src/api/routes/platforms.ts - Admin scrape route
src/api/routes/admin.ts - Health route
src/api/routes/health.ts
Web interface
- Hackathon listing
app/hackathons/page.tsx - Hackathon detail
app/hackathons/[id]/page.tsx - Filter controls
src/components/FilterBar.tsx - Hackathon card
src/components/HackathonCard.tsx - Detail view
src/components/HackathonDetail.tsx - Freshness indicator
src/components/FreshnessIndicator.tsx - Pagination
src/components/Pagination.tsx
Other components
- Hackathon platforms
- Web visitor
- Browser API client
Connections 36
- Scrape scheduler → Devpost scraper: dispatches
src/scheduler/index.ts - Scrape scheduler → Unstop scraper: dispatches
src/scheduler/index.ts - Scrape scheduler → HackerEarth scraper: dispatches
src/scheduler/index.ts - Scrape scheduler → Devfolio scraper: dispatches
src/scheduler/index.ts - Hackathon platforms → Devpost scraper: scrapes
- Hackathon platforms → Unstop scraper: scrapes
- Hackathon platforms → HackerEarth scraper: scrapes
- Hackathon platforms → Devfolio scraper: scrapes
- Scrape scheduler → Scrape pipeline: invokes
src/scheduler/index.ts - Scrape pipeline → Canonical validation: uses validated output
src/pipeline/scraper-pipeline.ts - Devpost scraper → Canonical validation: uses schema
src/scrapers/devpost.ts - Unstop scraper → Canonical validation: uses schema
src/scrapers/unstop.ts - HackerEarth scraper → Canonical validation: uses schema
src/scrapers/hackerearth.ts - Devfolio scraper → Canonical validation: uses schema
src/scrapers/devfolio.ts - Scrape pipeline → Data repository: writes records
src/pipeline/scraper-pipeline.ts - Data repository → SQLite database: queries and writes
src/db/repository.ts - Scrape pipeline → Cross-platform deduplication: deduplicates
- Express server → Hackathon routes: routes requests
src/api/server.ts - Express server → Platform routes: routes requests
src/api/server.ts - Express server → Admin scrape route: routes requests
src/api/server.ts - Express server → Health route: routes requests
src/api/server.ts - Express server → SQLite database: initializes
src/api/server.ts - Hackathon routes → Data repository: queries records
src/api/routes/hackathons.ts - Platform routes → Data repository: reads platforms
src/api/routes/platforms.ts - Admin scrape route → Scrape pipeline: triggers scrape
src/api/routes/admin.ts - Admin scrape route → Devpost scraper: uses scraper
- Web visitor → Hackathon listing: browses
app/hackathons/page.tsx - Web visitor → Hackathon detail: opens detail
app/hackathons/[id]/page.tsx - Hackathon listing → Filter controls: renders
app/hackathons/page.tsx - Hackathon listing → Hackathon card: renders
app/hackathons/page.tsx - Hackathon listing → Freshness indicator: renders
app/hackathons/page.tsx - Hackathon listing → Pagination: renders
app/hackathons/page.tsx - Hackathon detail → Detail view: renders
app/hackathons/[id]/page.tsx - Hackathon listing → Browser API client: fetches data
- Hackathon detail → Browser API client: fetches data
- Browser API client → Express server: requests API