Skip to content

ianalloway/ai-advantage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

140 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Advantage Sports

AI Advantage Sports

Live Site React TypeScript Tailwind CSS

ML-driven sports betting product: predictions, Kelly-based bet sizing, live odds, and a real subscription surface. Live at aiadvantagesports.com.

AI Advantage Sports Screenshot

Why this exists

Most "AI betting" projects stop at a notebook. This one ships.

AI Advantage turns model output into a decision a user can actually act on:

  • Predict — model-driven picks across NBA, NFL, and MLB
  • Size — Kelly-based stake recommendations that protect bankroll
  • Time — live odds and line-movement views to catch value before the market adjusts
  • Monetize — premium tier with real Stripe checkout, not a fake paywall

It's the product layer of a larger sports-analytics stack — the modeling lives in adjacent repos, this is where it meets a user.

Feature tour

Area What it does
Game analyzer Enter a matchup, get an analysis and a recommendation
Live odds Track lines and movement across the slate
Kelly sizing Translate edge + bankroll into a stake
Multi-sport NBA, NFL, MLB workflows
Premium Stripe subscription + one-time checkout
Newsletter Notion-backed capture wired into Substack

Stack

React · TypeScript · Vite · Tailwind CSS · shadcn/ui

Serverless API routes handle Stripe checkout and newsletter capture so previews and production stay fully functional.

Run it locally

git clone https://github.com/ianalloway/ai-advantage.git
cd ai-advantage
npm install
npm run dev

Open http://localhost:5173.

Deployment

  • netlify.toml — Netlify SPA deploy
  • vercel.json — SPA rewrites for Vercel preview deploys
  • api/create-checkout-session.ts + api/checkout-session.ts — server-side Stripe checkout

Stripe (server flow)

STRIPE_SECRET_KEY=***
STRIPE_PREMIUM_PRICE_ID=price_...
STRIPE_ONE_TIME_PRICE_ID=price_...
PUBLIC_APP_URL=https://your-domain

If unset, the app falls back to static Stripe Payment Links via VITE_STRIPE_CHECKOUT_URL and VITE_STRIPE_ONE_TIME_CHECKOUT_URL.

Newsletter capture

The homepage form posts to /api/newsletter-subscribe, which creates a Notion entry, emails a notification, and redirects into the Substack subscribe flow.

NOTION_API_KEY=***
NOTION_PARENT_PAGE_ID=...
RESEND_API_KEY=re_...
RESEND_FROM_EMAIL="AI Advantage <onboarding@yourdomain.com>"
NOTIFY_EMAIL=ian@allowayllc.com
SUBSTACK_PUBLICATION_URL=https://allowayai.substack.com

Where the modeling lives

Repo Role
sports-betting-ml Models — logistic regression, XGBoost, ensembles
nba-ratings Ratings + win-probability library
kelly-js Kelly / odds / bankroll math (TS)

Author

Ian AllowayPortfolio · LinkedIn · Writing

License

Proprietary. All rights reserved.

About

Sports betting platform with ML predictions, Kelly Criterion bet sizing, live odds ticker, and daily AI picks. NBA, NFL, MLB.

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages