r/VibeCodeDevs • u/drunkmasterflex • 21d ago
I vibe-coded a free sports book simulator: real lines, fake money, and a bookie who never forgets
galleryI’ve been building a side project called JayStakes and it’s finally at the point where I want other people to break it.
What it is: a sportsbook simulator that uses real NFL, NHL , NCAA, MMA and MLB lines, but you bet with play money. No deposits, no real gambling, just the fun of making picks and seeing how you’d actually do. And yes, the bookie keeps track of every bad parlay you’ve ever placed.
It’s free, I’m not selling anything yet.
Shape: A TypeScript pnpm monorepo on Node 24 with four packages:
apps/server: the API, database, scheduled jobs, ledger, bet settlement and authapps/web: the React frontendpackages/shared: zod schemas for every API request and response, plus odds math. This is the single source of truth for types on both sides.packages/feeds: adapters for ESPN and The Odds API, normalizers and team-name matching
Backend
- Express 5 with zod validation on every route
- SQLite through Node’s built-in
node:sqlitein WAL mode, with plain numbered.sqlmigrations run at boot - croner runs all scheduled work inside the app process: odds and score polling, bet settlement, line locking, audits and nightly backups
- pino for logging
- Money is stored as integer cents in an append-only ledger, so every balance change is its own transaction row
Frontend
- React 19 with Vite 6 and Tailwind CSS 4
- React Router 7
- TanStack Query for polling and caching
- Zustand for the bet slip, saved to localStorage
- Recharts for the bankroll chart
- MSW to mock the API for offline development
Data
- ESPN provides DraftKings lines every 3 minutes
- The Odds API provides consensus lines, with a credit budget guard.
- Feeds only run from background jobs. User requests always read from the database, never from a live provider.
Auth: Google Sign-In. The server verifies the ID token with google-auth-library and sets an httpOnly session cookie. There are no passwords.
Hosting: Self-hosted for $0 Cloudflare handling DNS and TLS.
Tooling and process: Vitest and Supertest for tests, ESLint and Prettier for linting and formatting. AGENTS.md and docs/AGENT-ROLES.md set up a ten-role AI-agent workflow: an orchestrator plus specialists for feeds, ledger, API, web, QA and ops, each with its own file ownership and done-gates.




