Skip to content
rudraparmar76Public

About

An all-in-one AI-powered hackathon management platform to discover hackathons, generate project ideas, track progress, collaborate with teams, and never miss a deadline.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackTrack - Hackathon Command Center

Status Demo

HackTrack is your all-in-one hackathon command center. From finding the perfect hackathon to building your idea, tracking progress, and bringing home the trophy, we've got you covered.

Technology stack

Core Features

Feature Description
Smart Link Scraper Paste an event link (Devfolio, DevPost, Unstop) and our AI-powered scraper extracts all crucial details: deadlines, prize pools, tracks, teams, and more.
Live Hackathon Discovery Browse open hackathons scraped directly from the web—no hunting required. Real-time updates ensure you never miss an opportunity.
Visual Dashboard & Kanban Board Track your hackathon lifecycle across stages: Interested -> Building -> Submitted -> Won. Drag-and-drop workflow keeps progress organized.
Live Countdown Timers Never miss a registration or submission deadline. Smart alerts notify you of approaching cutoffs.
Team Collaboration Invite teammates via email. Shared workspace visibility ensures everyone stays aligned.
Rich Notes System Capture brainstormed ideas, API keys, tech stack decisions, and mentor feedback in one centralized place.
AI Idea Generator Stuck on a problem statement? Generate targeted, winnable project ideas powered by LLaMA via Groq.
Public Profiles Showcase your hackathon wins and participation stats. Share your public profile at hack-track.tech/u/[username].

Architecture Overview

flowchart LR
    subgraph Frontend
        FE[Next.js 14<br/>React/TypeScript]
    end
    
    subgraph Backend
        BE[Express<br/>TypeScript]
    end
    
    subgraph Scraper
        SC[FastAPI<br/>Playwright]
    end
    
    subgraph Database
        DB[Supabase<br/>PostgreSQL]
    end
    
    FE <--> |REST API| BE
    BE <--> |Admin Client| DB
    SC <--> |HTTP API| BE
    BE <--> |HTTP API| DB
Loading

Data Flow

  1. Discovery: Scraper crawls Devfolio, DevPost, and Unstop -> populates public_hackathons table
  2. User Tracking: Users track hackathons via API -> stored in hackathons table
  3. Collaboration: Team invites via team_invites table, membership in team_members table
  4. AI Features: Problem statements + Groq API -> generate ideas stored in hackathon_ideas

Project Structure

d:\Hacktrack/
├─ backend/                    # Node.js/Express API server
│  ├─ src/                    # Main API implementation (index.ts)
│  ├─ api/                    # Vercel serverless entry point
│  ├─ supabase/               # SQL migrations (cron_setup.sql, team_invites_setup.sql)
│  ├─ .env                    # Environment variables
│  ├─ package.json            # Dependencies: express, groq-sdk, @supabase/supabase-js, resend
│  ├─ tsconfig.json
│  └─ vercel.json             # API rewrites configuration
│
├─ frontend/                   # Next.js 14 application
│  ├─ src/
│  │  ├─ app/                 # App Router pages (pages, dashboard, discover, etc.)
│  │  │  ├─ landing/         # Landing page components
│  │  │  ├─ dashboard/         # User dashboard
│  │  │  ├─ hackathon/         # Hackathon workspace
│  │  │  ├─ discover/        # Public hackathon discovery
│  │  │  ├─ auth/            # Authentication callbacks
│  │  │  ├─ u/[username]/    # Public profiles
│  │  │  └─ api/             # API routes (OG images)
│  │  ├─ components/          # Reusable UI components (shadcn/ui)
│  │  │  ├─ ui/              # Base components (button, input, dialog, etc.)
│  │  │  └─ landing/         # Landing page sections
│  │  └─ ...                 
│  ├─ tailwind.config.js      # Design system with custom colors and animations
│  ├─ next.config.mjs
│  └─ .env.local              # Supabase keys
│
├─ scraper/                   # Python/FastAPI web scraper
│  ├─ app.py                  # Main scraper with Playwright automation
│  ├─ Dockerfile              # Production container
│  ├─ requirements.txt        # Dependencies: fastapi, playwright, pydantic, groq
│  └─ .env                    # Groq API key
│
├─ supabase/                  # (Database migrations & SQL)
│
├─ .gitignore
├─ CLAUDE.md
└─ README.md                  # This file

Technology Stack

Frontend

Technology Purpose
Next.js 14 App Router, Server Components, SSR
React 18 UI library with hooks and context
TypeScript Type safety throughout
Tailwind CSS Utility-first styling
Framer Motion Page and component animations
shadcn/ui Accessible React components
Dndkit Kanban drag-and-drop ordering
Supabase SSR Client-side authentication hydration

Backend

Technology Purpose
Node.js Runtime environment
Express REST API server
TypeScript Type safety
Supabase JS Database client with Row Level Security
Groq SDK LLaMA API integration for AI features
Resend Transactional email service
CORS Cross-origin request handling

Scraper

Technology Purpose
Python 3.11 Scripting language
FastAPI Async API server
Playwright Browser automation for JS-rendered content
Pydantic Request/response validation
Uvicorn ASGI server

Database & Infrastructure

Technology Purpose
Supabase (PostgreSQL) Auth, database, real-time subscriptions
Groq API LLaMA inference for idea generation
Vercel Frontend deployment
Docker Container deployment

Development Setup

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • Git
  • Supabase account (database and auth)
  • Groq API key (for AI features)
  • Resend API key (for emails)

1. Clone the repository

git clone https://github.com/rudraparmar76/hacktrack.git
cd hacktrack

2. Set up environment variables

Create .env files for each service:

Backend (backend/.env):

SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
SCRAPER_URL=http://localhost:8000
PORT=4000
RESEND_API_KEY=re_your_key_here
GROQ_API_KEY=gsk_your_key_here
CRON_SECRET=your-cron-secret-here
FRONTEND_URL=http://localhost:3000

Frontend (frontend/.env.local):

NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
FRONTEND_URL=http://localhost:3000

Scraper (scraper/.env):

GROQ_API_KEY=gsk_your_key_here

3. Install dependencies

# Backend
cd backend
npm install

# Frontend
cd ../frontend
npm install

# Scraper
cd ../scraper
pip install -r requirements.txt
playwright install chromium

4. Run locally

# Terminal 1: Start Scraper
cd scraper
python app.py

# Terminal 2: Start Backend
cd ../backend
npm run dev

# Terminal 3: Start Frontend
cd ../frontend
npm run dev

The application will be available at:

Available Scripts

Command Description
npm run dev Start development server
npm run build Compile TypeScript or build for production
npm run start Run production server
npm run lint Run Next.js ESLint

API Reference

Authentication

All protected endpoints require a Bearer token in the Authorization header.

Authorization: Bearer your-supabase-jwt

Hackathons

Endpoint Method Description
/api/hackathons GET List user's hackathons (owned + shared)
/api/hackathons POST Create new hackathon tracking
/api/hackathons/:id GET Get specific hackathon details
/api/hackathons/:id PUT Update hackathon details
/api/hackathons/:id DELETE Delete hackathon (owner only)

Team Management

Endpoint Method Description
/api/hackathons/:id/team GET List team members
/api/hackathons/:id/team POST Add team member
/api/hackathons/:id/invites POST Create team invite
/api/team-invites/:token GET Get invite details
/api/team-invites/accept POST Accept team invite

Checklist & Tasks

Endpoint Method Description
/api/hackathons/:id/checklist GET Get user's checklist
/api/hackathons/:id/tasks GET Get tasks
/api/hackathons/:id/tasks POST Create task
/api/tasks/:id PUT Update task

AI Features

Endpoint Method Description
/api/hackathons/:id/generate-ideas POST Generate AI project ideas
/api/hackathons/:id/ideas GET Get saved ideas

Scraper Proxy

Endpoint Method Description
/api/scrape POST Scrape hackathon from URL (body: {url: string})

Public Discovery

Endpoint Method Description
/api/public/hackathons GET Browse open hackathons (filtered, paginated)
/api/public/profile/:username GET Get public profile data

Cron Jobs

Endpoint Method Description
/api/cron/scrape-hackathons POST Crawl all platforms (auth required)
/api/cron/reminder-dispatch POST Send due reminder emails
/api/cron/daily-deadlines POST Send daily digest emails

Deployment

Production Setup

  1. Database: Run SQL migrations from backend/supabase/ in Supabase SQL editor
  2. Backend: Deploy to Vercel with the project root set to /backend
  3. Frontend: Deploy to Vercel (connected to project)
  4. Scraper: Deploy as Docker container or to a cloud service supporting Python

Cron Configuration (Supabase pg_cron)

The project includes automated cron jobs for:

  • 06:00 UTC: Reminder dispatch (due reminders + deadline alerts)
  • 07:00 UTC: Daily deadline digest emails

Update URLs and secrets in backend/supabase/cron_setup.sql before applying.

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature-name
  3. Install dependencies and set up your local environment
  4. Make your changes, ensuring tests pass
  5. Commit with a clear message
  6. Push and open a Pull Request

Local Development Guidelines

  • Use TypeScript for type safety
  • Follow the existing code style (prettier configured)
  • Write meaningful commit messages
  • Update documentation for new features

About

An all-in-one AI-powered hackathon management platform to discover hackathons, generate project ideas, track progress, collaborate with teams, and never miss a deadline.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages