Skip to content

viftode4/haxbet

Repository files navigation

HaxBet

Stock market for hackathon ideas. Pitch an idea, bet virtual HaxCoins on which ones win. Prices move on a bonding curve, early buyers earn dividends from later buys.

Built at HackEurope Dublin 2026 as a side project. Hit 130 concurrent users during the event, patched live to fix botting and add features on the fly.

Live: haxbet.vercel.app

How it works

  1. Register with a username and table number
  2. Get 100 HaxCoins to start
  3. Pitch your idea (one per person, 280 chars)
  4. Trade ideas like stocks — buy low, sell high
  5. Every buy distributes 5% as dividends to existing holders
  6. Highest portfolio value wins

Prices follow a constant-product bonding curve (x * y = k). Early bets are cheap, price accelerates with demand.

Tech

  • React 18 + TypeScript + Vite
  • Convex for real-time backend (zero polling, instant updates across all clients)
  • Tailwind v4 + Framer Motion
  • TanStack Router with lazy-loaded routes
  • Vercel deploy

Features

  • Real-time leaderboard and trade feed
  • Bonding curve pricing with automatic dividends
  • Price charts per idea (TradingView Lightweight Charts)
  • Global chat + idea comments + profile walls
  • Admin panel (ban users, seed ideas, announcements)
  • 4 hackathon tracks: Security, Sustainability, FinTech, Agentic AI
  • Mobile-first dark UI

Running locally

bun install
bunx convex dev    # Terminal 1
bun run dev        # Terminal 2 → localhost:5173

About

HaxBet - Real-time betting platform built at HackEurope Dublin 2026. Hit 130 live users, patched on the fly to fix botting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors