How ragulkpr29-star/hackthon-hub works
Purpose and Runtime
Hackathon Hub is an AI-assisted student collaboration platform for discovering teammates, building profiles, and evaluating technical evidence. The primary runtime is a Next.js 16 App Router application; a separate Python/FastAPI service performs resume extraction. Supabase supplies Postgres, Auth, and Storage.
Paths: app/layout.tsx, app/page.tsx, resume-analysis/app/main.py
Route and UI Composition
Route groups separate unauthenticated account flows from authenticated product areas. Auth pages cover login, registration, and password recovery; the main shell hosts home, discovery, hackathons, profiles, messaging, teams, notifications, search, settings, and admin. The onboarding route is a distinct profile-completion flow with resume, photo, skills, availability, and social-link UI.
Paths: app/(auth)/layout.tsx, app/(main)/layout.tsx, app/onboarding/page.tsx
Identity, Persistence, and Access Boundary
Supabase client, server, admin, and middleware adapters form the application’s database/auth boundary. Repository classes encapsulate persistence for users, profiles, analyses, jobs, LinkedIn data, and developer vectors; service classes coordinate business workflows above them. Database evolution includes onboarding/profile schema and developer-vector support.
Paths: lib/supabase/server.ts, lib/repositories/ProfileRepository.ts, supabase/migrations/002_developer_vector.sql
Profile Onboarding and Evidence Ingestion
Onboarding accepts profile metadata plus uploaded resumes/photos and invokes an orchestration service. Storage access is abstracted behind StorageService; profile schema/types constrain submitted profile data. Resume analysis is requested through a versioned Next API proxy rather than called directly by the browser.
Paths: lib/services/onboarding.service.ts, lib/storage/StorageService.ts, app/api/v1/analyze-resume/route.ts
Resume ML Pipeline
The isolated FastAPI service accepts resume content, extracts text from PDFs, cleans/parses it, identifies skills with GLiNER, and semantically matches them against the skill taxonomy using Sentence-Transformers. It requires Python 3.10+, downloads Hugging Face models on first use, and is addressed by Next.js through RESUME_ANALYSIS_URL.
Paths: resume-analysis/app/main.py, resume-analysis/app/service.py, resume-analysis/app/matcher.py
AI and GitHub Analysis
GitHub analysis routes call a dedicated GitHub integration layer to retrieve repositories, README content, languages, metrics, and profile data, then analyze/summarize that evidence through AI providers. Gemini and OpenRouter adapters, prompts, scoring, and recommendations are separated from HTTP routes. Analysis results and long-running work are represented through analysis/job repositories and job-processing endpoints.
Paths: app/api/github/analyze/route.ts, lib/github/analyzer.ts, lib/ai/gemini.ts
Application APIs and Background-like Work
Next Route Handlers expose onboarding, GitHub analysis, personal analysis retrieval, and job status/processing endpoints. analysis-runner.service is the core workflow coordinator between API entry points, AI/GitHub services, and persistence. The design permits polling or externally triggered processing through job endpoints; no separate queue runtime is evident in the repository.
Paths: app/api/jobs/process/route.ts, lib/services/analysis-runner.service.ts, lib/repositories/job.repository.ts
Main entry points: analysis-runner.service.ts Analysis runner · server.ts Supabase server adapter · page.tsx Profile onboarding · onboarding.service.ts Onboarding workflow
Components 19
Next.js Product
App Router UI and route handlers.
- Public app entry
app/page.tsx - Account flows · Login, registration, and recovery screens.
app/(auth)/layout.tsx - Authenticated product · Home, discovery, profiles, teams, messaging, and admin areas.
app/(main)/layout.tsx - Profile onboarding · Collects profile details, resume, photo, skills, and links.
app/onboarding/page.tsx - Resume API proxy · Versioned browser-facing resume analysis endpoint.
app/api/v1/analyze-resume/route.ts - Onboarding workflow · Coordinates profile submission and evidence ingestion.
lib/services/onboarding.service.ts
Supabase Boundary
Identity, persistence, and file storage.
- Storage abstraction · Handles resume and photo uploads.
lib/storage/StorageService.ts - Supabase server adapter · Application boundary for Supabase server access.
lib/supabase/server.ts - Profile repository · Encapsulates profile persistence.
lib/repositories/ProfileRepository.ts - Developer vector schema · Schema support for developer-vector matching.
supabase/migrations/002_developer_vector.sql
Resume Analysis Service
Separate Python/FastAPI runtime.
- FastAPI resume service · Accepts resume content for extraction and skill analysis.
resume-analysis/app/main.py - Resume ML pipeline · PDF extraction, parsing, GLiNER skills, and semantic taxonomy matching.
resume-analysis/app/service.py - Skill taxonomy matcher
resume-analysis/app/matcher.py
Technical Evidence Analysis
GitHub, AI, and job workflows.
- GitHub analysis API
app/api/github/analyze/route.ts - Job processing API · Supports polling or external processing triggers.
app/api/jobs/process/route.ts - Analysis runner · Coordinates GitHub/AI analysis and durable job results.
lib/services/analysis-runner.service.ts - GitHub integration · Retrieves repositories, READMEs, languages, metrics, and profile evidence.
lib/github/analyzer.ts - Gemini AI adapter · Produces evidence analysis, scoring, and recommendations.
lib/ai/gemini.ts - Job repository · Persists long-running analysis job state.
lib/repositories/job.repository.ts
Connections 19
- Public app entry → Account flows: unauthenticated access
- Account flows → Authenticated product: authenticated session
- Authenticated product → Profile onboarding: profile completion
- Profile onboarding → Onboarding workflow: submits profile
- Onboarding workflow → Storage abstraction: uploads files
- Storage abstraction → Supabase server adapter: uses storage
- Onboarding workflow → Profile repository: persists profile
- Profile repository → Supabase server adapter: uses Postgres
- Supabase server adapter → Developer vector schema: database schema
- Profile onboarding → Resume API proxy: requests analysis
- Resume API proxy → FastAPI resume service: RESUME_ANALYSIS_URL
- FastAPI resume service → Resume ML pipeline: runs pipeline
- Resume ML pipeline → Skill taxonomy matcher: semantic matches
- GitHub analysis API → Analysis runner: starts analysis
- Job processing API → Analysis runner: processes jobs
- Analysis runner → GitHub integration: collects evidence
- Analysis runner → Gemini AI adapter: analyzes evidence
- Analysis runner → Job repository: updates job state
- Job repository → Supabase server adapter: uses Postgres