Where every point counts, every victory matters
Scorebrawl is the ultimate battleground for tracking and amplifying your competitive edge! Whether you're conquering video games or dominating office games like pool and darts, Scorebrawl is your go-to arena for registering and settling scores with friends, colleagues, or in real competitions. Fuel the fun, ignite the rivalry, and show off your victories! Bragging rights are just a score away with Scorebrawl!
🌐 Live App: https://scorebrawl.com
- Create Leagues: Set up competitive leagues for any game or sport
- Track Matches: Record scores and match results with detailed statistics
- Player Rankings: Automatic ELO-based ranking system
- Team Competition: Support for both individual and team-based competitions
- Real-time Updates: Live score tracking and leaderboards
- Achievement System: Unlock achievements and celebrate milestones
- Profile Management: Customize your player profile with avatars
This is a Turborepo monorepo managed with Bun, featuring a modern full-stack TypeScript application built with cutting-edge web technologies.
- 🏃♂️ Runtime: Bun - Fast JavaScript runtime and package manager
- ⚛️ Frontend: React 19 SPA with TanStack Router for type-safe routing
- 🔧 Backend: Cloudflare Workers with Hono framework
- 📡 API: tRPC for end-to-end typesafe APIs
- 🗄️ Database: Cloudflare D1 (SQLite) with Drizzle ORM
- 🔐 Authentication: Better-Auth for comprehensive auth
- 🎨 UI: Tailwind CSS v4 + shadcn/ui
- 📦 Monorepo: Turborepo for efficient builds and caching
- 🚀 Deployment: Cloudflare edge deployment
- Bun (latest version)
-
Clone and install dependencies:
git clone <repository-url> cd scorebrawl bun install
-
Database Setup:
# Generate migrations bun db:generate # Apply migrations locally bun db:migrate
-
Start Development:
bun run dev
The app uses portless for stable local URLs. Once running, access the app at
https://scorebrawl.localhost:1355.
# Development
bun run dev # Start development servers
bun run build # Build for production
bun oxc # Format and lint code with auto-fix
bun check # Run typecheck, lint, and format checks
# Database
bun db:studio # Open Drizzle Studio
bun db:generate # Generate migrations
bun db:migrate # Run local migrations
bun db:migrate:prod # Deploy migrations to production
bun db:reset # Clean and reapply migrations
# Testing
bun run test # Run all tests- Follow the existing code style and use
bun oxcfor formatting - Create database migrations with
bun db:generate - Add tests for new features in
apps/worker/src/test/ - Update documentation as needed
This project is licensed under the MIT License.
Built with ❤️ using modern web technologies. Ready to settle some scores? 🏆
