Lobbe
Lobbe is a sports venue booking and competitive gaming platform — a lobby management system for organizing futsal/football/basketball games with built-in payments, engagement loops, and competitive features.
Overview
| Field | Value |
|---|---|
| Project | Lobbe — Sports Lobby Management Platform |
| Primary Market | Singapore → SEA expansion |
| Core Sports | Football, Basketball (Tennis, Badminton, Pickleball planned) |
| Status | Pre-launch — core features complete, payment integration in progress |
Tech Stack
Mobile App — LobbeM/
- React Native / Expo ~54 (TypeScript)
- React Navigation (tabs + stack)
- TanStack Query for data fetching & caching
- Better Auth (Expo client) for authentication
- Pusher.js → Soketi for real-time events
- REST API client →
server.lobbe.in
Admin Dashboard — lobbe-admin/
- Next.js 15.4+ (TypeScript)
- Tailwind CSS + Radix UI
- Better Auth (PostgreSQL) for auth
- Direct PostgreSQL access via
pgpool - APL (Additional Password Layer) security for sensitive routes
Backend API — apps/api/
- Hono REST framework (Node.js)
- PostgreSQL + Drizzle ORM
- Better Auth for authentication
- Pusher SDK → Soketi for real-time events
- Self-hosted on Coolify (Docker Compose)
Infrastructure
- PostgreSQL 16 — primary database
- Soketi — self-hosted Pusher-compatible WebSocket server
- Docker Compose — orchestration
- Coolify — deployment platform
- Airwallex — payment processing (Singapore-first)
Legacy (Removed)
- Convex → fully migrated to PostgreSQL + Hono
- bun-sse-server → replaced by Soketi WebSockets
Current Status (Feb 2026)
✅ Completed Features
- Core Platform: User auth, discovery screen, lobby system (create/join/commit/leave), credit system, squad system, host QR verification, leaderboards, duels (1v1), home dashboard
- Engagement System: Post-game stats (consensus-based), XP & leveling (levels 1–50), daily challenges (11 templates), player reviews (fraud prevention), achievements (14+, 5 tiers)
- Phase 3 Competition: Head-to-head records, rivalry system, King of Court (venue kings), dynamic ELO MMR, game orchestration
- Inventory & Loot Box System: Inventory schema, loot box logic (6 box types with rarity tiers), merge workshop (3→1), full API + UI
- Referee System: Referee profiles, reviews, bookings, discovery screen, admin management
- Admin Panel: User/venue management, analytics, PostgreSQL migration complete, APL security
- Payment Backend: Airwallex API integration, webhook handlers, transaction history, credit purchase UI
- Tournaments: Schema, CRUD, bracket generation, team registration, trophy system
- Slot Reselling & Host Vouch: Schema + backend + frontend
🟡 In Progress / Remaining
- Airwallex React Native SDK: Awaiting production credentials
- Refund Flow: Not yet implemented
- Squad Territory Map: Last remaining Phase 3 screen
- Real Device Testing: Needed with 2 phones (Expo Go)
❌ Not Started
- Tournament bracket UI (visual component)
- Referral program
- Loyalty rewards redemption
Architecture Overview
┌─────────────────────────────────────────────────────────┐
│ LOBBE PLATFORM │
├─────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ LobbeM │ │ lobbe-admin │ │ apps/api │ │
│ │ React Native│ │ Next.js │ │ Hono │ │
│ │ (Expo) │ │ │ │ │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ └─────────────────┼─────────────────┘ │
│ │ │
│ ┌──────▼──────┐ │
│ │ PostgreSQL │ │
│ │ + Drizzle │ │
│ │ + Better Auth│ │
│ └─────────────┘ │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Soketi │ │ Airwallex │ │ Coolify │ │
│ │ (WebSocket) │ │ (Payments) │ │ (Deploy) │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────┘
Production URLs:
- API:
server.lobbe.in - WebSocket:
ws.lobbe.in - Admin:
admin.lobbe.in
Key Features
1. Lobby System
Two-phase booking: Join (soft reservation) → Commit (credit lock). Auto-lobby creation when 3+ interests gathered. Concurrency caps (Free: 3 active, Pro: 10). Overlap detection, SELECT FOR UPDATE for race prevention.
2. Credit System (Real Money)
- 1 LC = 1 SGD (no welcome bonus)
- Lock/unlock/consume with full transaction audit trail
- Tiered pricing: Free (1.5 LC) → Pro (1.0 LC) → with squad discount (0.5–1.0 LC)
- Purchase via Airwallex; credits are non-withdrawable
3. Squad System
Create squads per sport (football/basketball). Roles: Captain, Vice-Captain, Core, Member, Trial. Squad financials (credit pool), squad boost (temporary discounts), max 30 members.
4. Engagement & Progression
- XP & Leveling: Levels 1–50, progressive thresholds (500–2000 XP/level), permanent aura unlocks
- Stars (⭐): Reward currency earned from games/activities, spent on cosmetics & loot boxes
- Achievements: 14+ achievements across 5 tiers (Bronze → Diamond)
- Daily Challenges: 11 auto-generated templates
- Player Reviews: 1–5 stars in 4 categories with fraud prevention
5. Competition Features
- Head-to-Head: Track W/L/D vs every player, win streaks
- Rivalries: Create/accept rivalries, bonus XP/credits for wins
- King of Court: Monthly venue leaderboards, crown + 10% discount
- Dynamic MMR: ELO-based, sport-specific, K-factor tiers, decay system
- Duels (1v1): Wager-based challenges with credit escrow
- Tournaments: Single elimination brackets, team registration, trophy system
6. Inventory & Loot Boxes
6 loot box types (Review → Premium) with rarity-weighted drops (Common → Mythic). Merge system: 3× same item → next rarity tier. Avatar cosmetics: jerseys, boots, accessories, auras, hairstyles.
7. Host System
QR verification with GPS validation (200m radius). Trust score progression (NEW_HOST → ELITE_HOST). Pre/post-game check-ins. Device fingerprinting.
8. Referee System
Referee discovery, booking, reviews. Admin verification/suspension. Integrated into 11v11 lobby detail.
9. Admin Panel
User management, venue management, analytics, tournament management, APL security layer for critical routes (database, assets, user management).
Next Steps
Immediate (Pre-Launch)
- Configure Airwallex production credentials — get API keys, switch from demo to prod
- Install Airwallex React Native SDK — complete mobile payment flow
- Implement refund flow — handle failed/cancelled payments
- Real device testing — 2 phones, full game flow end-to-end
- Squad territory map — last Phase 3 screen
Launch Week
- Security audit (auth, payments)
- Load testing (100 concurrent users)
- Set production environment variables
- Configure monitoring/alerting
- Run go-live runbook checklist
Post-Launch (Month 2+)
- Skill tier matchmaking enforcement
- Auto team balancing (MMR-based)
- Loyalty rewards redemption
- Referral program
- Tournament bracket UI (visual)
- Advanced matchmaking (MMR filtering)
Revenue Model
| Stream | Status | Details |
|---|---|---|
| Credit purchases | ✅ Implemented | Primary — 1 LC = 1 SGD via Airwallex |
| Pro tier subscriptions | ✅ Implemented | Feature gating (higher limits, discounts) |
| Tournament entry fees | Schema exists | Not yet monetized |
| Venue partnerships | Future | Commission on bookings |
| Premium avatar items | Future | Via Stars or direct purchase |
Project Structure
Lobbe/
├── LobbeM/ # React Native mobile app (Expo)
│ ├── screens/ # All app screens
│ ├── components/ # Reusable components
│ ├── src/hooks/ # TanStack Query hooks
│ ├── src/components/ # Feature-specific components
│ ├── lib/ # API client, auth, pusher, query client
│ └── navigation/ # Tab + stack navigation
├── lobbe-admin/ # Next.js admin dashboard
│ ├── src/app/ # App router pages
│ ├── src/components/ # UI components (Radix + Tailwind)
│ ├── src/hooks/ # Data hooks
│ └── src/lib/ # Auth, DB, API client, APL
├── apps/api/ # Hono REST API
│ ├── src/db/schema/ # Drizzle schema (20+ files)
│ ├── src/routes/ # API route handlers
│ ├── src/lib/ # Auth, pusher, airwallex, rewards config
│ └── src/middleware/ # Auth middleware
├── infrastructure/ # Docker Compose configs
├── docs/ # Documentation
└── CLAUDE.md # Architecture & dev guidelines
Key Documentation
- CLAUDE.md — Full architecture, dev commands, file locations
- prd.md — Product Requirements Document (v3.2 — launch PRD)
- featureprd.md — Detailed feature requirements with implementation status
- starpoints.md — Rewards, XP, Stars, loot box values (single source of truth)
- go-live-runbook.md — Launch checklist (preflight → launch day → hypercare)
- apl.md — Additional Password Layer security documentation
Success Metrics (3 Months Post-Launch)
| Metric | Target |
|---|---|
| MAU | 500+ |
| Payment Success Rate | >99% |
| Games Hosted/Week | 50+ |
| DAU/MAU Ratio | >40% |
| Pro Conversion | >15% |
| No-Show Rate | <5% |
Last updated: April 2026. See prd.md for the canonical launch checklist.