How 0xarchit/hackathon-api works
Hackathons API gathers events from nine platforms and serves a unified, filtered, deduplicated, sorted response. The principal workflow is an HTTP request through the router and handler to the aggregator, which concurrently dispatches fetches, caches combined results, and returns them for JSON encoding. The source excerpts show the server wiring and aggregation behavior; platform coverage and the health endpoint are also documented or visible. The README describes caching as hourly, while the sampled service configures a 15-minute expiration, so the graph does not assert a cache duration.
Main entry points: service.go Aggregator Service · handler.go API Handler · main.go HTTP Server · devfolio.go Devfolio Fetcher
Components 23
HTTP API
- HTTP Server
cmd/server/main.go - API Handler
pkg/api/handler.go
Aggregation
- Aggregator Service
pkg/aggregator/service.go - In-memory Cache
pkg/aggregator/service.go
Platform Fetchers
- Devfolio Fetcher
pkg/fetcher/devfolio.go - Unstop Fetcher
pkg/fetcher/unstop.go - Devpost Fetcher
pkg/fetcher/devpost.go - MLH Fetcher
pkg/fetcher/mlh.go - HackerEarth Fetcher
pkg/fetcher/hackerearth.go - Hack2Skill Fetcher
pkg/fetcher/hack2skill.go - ReSkill Fetcher
pkg/fetcher/reskill.go - WhereUElevate Fetcher
pkg/fetcher/whereuelevate.go - Devnovate Fetcher
pkg/fetcher/devnovate.go
Other components
- API Client
- Devfolio
- Unstop
- Devpost
- MLH
- HackerEarth
- Hack2Skill
- ReSkill
- WhereUElevate
- Devnovate
Connections 23
- API Client → HTTP Server: requests
cmd/server/main.go - HTTP Server → API Handler: routes to
cmd/server/main.go - API Handler → Aggregator Service: requests events
pkg/api/handler.go - Aggregator Service → API Handler: returns results
pkg/api/handler.go - Aggregator Service → In-memory Cache: reads and writes
pkg/aggregator/service.go - Aggregator Service → Devfolio Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → Unstop Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → Devpost Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → MLH Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → HackerEarth Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → Hack2Skill Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → ReSkill Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → WhereUElevate Fetcher: dispatches fetch
pkg/aggregator/service.go - Aggregator Service → Devnovate Fetcher: dispatches fetch
pkg/aggregator/service.go - Devfolio Fetcher → Devfolio: fetches events
README.md - Unstop Fetcher → Unstop: fetches events
README.md - Devpost Fetcher → Devpost: fetches events
README.md - MLH Fetcher → MLH: fetches events
README.md - HackerEarth Fetcher → HackerEarth: fetches events
README.md - Hack2Skill Fetcher → Hack2Skill: fetches events
README.md - ReSkill Fetcher → ReSkill: fetches events
README.md - WhereUElevate Fetcher → WhereUElevate: fetches events
README.md - Devnovate Fetcher → Devnovate: fetches events
README.md