AI-Powered RAPID Brainstorming Platform for Hackathon Teams
HackMatch guides hackathon teams through the proven RAPID framework, helping them go from idea chaos to clear MVP in 30 minutes instead of 3-5 hours of unstructured brainstorming.
Option 1 - Just use the deployed link (EASIEST): ✅https://main.hackmatch.pages.dev/
Option 2 - Run locally (REQUIRES CLOUDFLARE ACCOUNT):
wrangler login # ← MISSING from instructions! npm install npm run dev npx serve public -p 8080
# 1. Install dependencies
npm install
# 2. Start backend (in Terminal 1)
npm run dev
# 3. Start frontend (in Terminal 2)
npx serve public -p 8080Then open http://localhost:8080 in your browser!
- Node.js 18+
- npm
- Cloudflare account (for deployment)
-
Clone and Install:
git clone <your-repo-url> cd cf_ai_hackmatch npm install
-
Run Backend (Terminal 1):
npm run dev
Backend will be available at
http://localhost:8788 -
Run Frontend (Terminal 2):
Option A - Using Python (Mac/Linux):
cd public python3 -m http.server 8080Option B - Using npx (Works on all platforms):
npx serve public -p 8080
Frontend will be available at
http://localhost:8080 -
Test with Multiple Users: Open multiple browser windows/tabs to simulate a team collaborating in real-time.
How it works: The frontend automatically detects localhost and connects to the correct backend:
- Local:
http://localhost:8788(HTTP) andws://localhost:8788(WebSocket) - Production:
https://cf_ai_hackmatch.aadhavmanimurugan.workers.dev
Troubleshooting:
- If port 8080 is in use:
npx serve public -p 3000(use different port) - If port 8788 is in use: wrangler will automatically choose another port
- Make sure both backend and frontend servers are running
cf_ai_hackmatch/
├── src/
│ ├── index.ts # Worker entry point
│ ├── HackMatchAgent.ts # Main Durable Object (1,551 lines)
│ ├── schema.sql # SQLite database schema (13 tables)
│ ├── ai/
│ │ ├── client.ts # Workers AI integration
│ │ └── prompts.ts # AI prompt templates
│ └── types/
│ ├── rapid.ts # RAPID workflow types
│ └── room.ts # Room state types
├── public/
│ └── index.html # Frontend (standalone HTML/JS, 1,269 lines)
├── wrangler.toml # Cloudflare Workers config
├── package.json
├── README.md # This file
└── PROMPTS.md # AI prompts documentation
The application is currently deployed and accessible at:
- Frontend: https://main.hackmatch.pages.dev
- Backend API: https://cf_ai_hackmatch.aadhavmanimurugan.workers.dev
Visit the frontend URL to start a brainstorming session!
npm run deployThis will deploy:
- The HackMatch Worker (handles HTTP/WebSocket routing)
- The HackMatchAgent Durable Object (manages room state and AI)
- SQLite database (automatic with Durable Objects)
- Workers AI integration (automatic)
Option 1 - Using Wrangler:
npx wrangler pages deploy publicOption 2 - Via Cloudflare Dashboard:
- Go to Cloudflare Dashboard → Pages
- Create new project
- Upload the
public/directory - Deploy
The frontend at public/index.html is a complete interactive demo that connects to the deployed Worker.
Terminal 1 - Start the Worker:
npm run devTerminal 2 - Serve the frontend:
cd public
python3 -m http.server 8080
# or: npx serveThen open http://localhost:8080 in your browser.
Note: When testing locally, the WebSocket will connect to localhost:8788 (the wrangler dev server).
- Review (3 min): Select hackathon challenges to focus on
- All Ideas (10 min): Silent brainstorming → group sharing with AI combinations
- Prioritize (5 min): Score ideas on feasibility with AI-powered objective scoring
- PRD (7 min): AI-guided 6-question Product Requirements Document creation
- Identify MVP (5 min): Drag features into Must/Nice/Out of Scope, AI suggests tech stack
- Decide (2 min): Final vote and export project summary
- Backend: Cloudflare Workers + Durable Objects
- AI: Workers AI (Llama 3.1-8b-instruct)
- Frontend: Standalone HTML/JavaScript (no framework)
- Database: SQLite in Durable Objects (13 tables)
- Real-time: WebSocket (via Durable Objects API)
This project was built for the Cloudflare AI assignment. See PROMPTS.md for all AI prompts used in development.