Skip to content

πŸ’ͺ FitPass is an AI-powered fitness class booking platform built with Next.js, Sanity, Clerk billing, and Vercel AI. Find classes near you, get personalized recommendations, book instantly, and manage subscriptions with tier-based access β€” all with real-time maps, filters, and a 3-day free trial.

Notifications You must be signed in to change notification settings

johnsonr84/ai-class-booking-saas-platform

Repository files navigation

πŸ‹οΈ FitPass β€” AI Class Booking SaaS Platform

Next.js React TypeScript Sanity Clerk Vercel Stripe Tailwind CSS Zod


πŸƒ One Membership. Thousands of Classes. Unlimited Possibilities.

FitPass is an AI-powered fitness class booking platform that gives users access to yoga studios, HIIT gyms, cycling centers, boxing clubs, and more β€” all through a single subscription. Discover classes near you, book instantly, and let AI guide your fitness journey.


🎯 Who Is This For?

Perfect for:

  • Gym-hoppers who want variety
  • Travelers who need workouts anywhere
  • Anyone exploring new fitness routines

⚑ What Makes It Different?

  • πŸ€– AI-Powered Discovery β€” Personalized class recommendations
  • πŸ“ Location-First Search β€” Radius-based class filtering
  • 🎟️ Tier-Based Access β€” Basic, Performance, Champion
  • πŸ†“ 3-Day Free Trial β€” No commitment

πŸ› οΈ Technical Highlights

  • Next.js App Router + Server Actions
  • Clerk authentication + subscription billing
  • Sanity CMS with real-time SDK React
  • Vercel AI Gateway + AI SDK 6.0 (ToolLoopAgent)
  • Geographic filtering (Bounding Box + Haversine)
  • Leaflet maps + Mapbox autocomplete
  • Zustand state management
  • TypeScript + Zod validation

πŸ€” What Is This App?

Think of FitPass as your personal fitness passport.
Instead of being locked into a single gym, you gain access to a network of venues β€” all managed through one intelligent platform.

How It Works

  1. Sign up and choose a plan
  2. Set your location and travel radius
  3. Browse nearby classes
  4. Book instantly
  5. Confirm attendance

πŸ’³ Subscription Tiers

Tier Price Classes Access
Basic $29/mo 5 Basic classes
Performance $59/mo 12 Basic + Performance
Champion $99/mo Unlimited All classes

All plans include a 3-day free trial.


✨ Features

For Fitness Enthusiasts

  • πŸ“ Location-based discovery
  • πŸ€– AI fitness assistant
  • πŸ—ΊοΈ Interactive maps
  • πŸ“… Instant booking
  • βœ… Attendance confirmation

Technical Features

  • ⚑ Real-time CMS updates
  • πŸ” Subscription-aware access control
  • 🧠 AI SDK ToolLoopAgent
  • πŸ“± Mobile-responsive UI

πŸ–ΌοΈ Screenshots

Home Features
Classes Pricing
Map View My Bookings
Checkout AI Fitness Assistant
Authentication

🏁 Getting Started

Prerequisites

  • Node.js 18+
  • pnpm
  • Clerk account
  • Sanity account
  • Mapbox account
  • Vercel AI Gateway access

πŸš€ Step-by-Step Setup

1. Clone the Repository

git clone https://github.com/johnsonr84/ai-class-booking-saas-platform
cd ai-class-booking-saas-platform

2. Install Dependencies

pnpm install

3. Environment Variables

cp .env.example .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

NEXT_PUBLIC_SANITY_PROJECT_ID=
NEXT_PUBLIC_SANITY_DATASET=
NEXT_PUBLIC_SANITY_API_VERSION=
SANITY_API_TOKEN=

NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=

AI_GATEWAY_API_KEY=

⚠️ Never commit .env.local.


4. Configure Services

  • Clerk: Create 3 billing tiers + enable trials
  • Sanity: Create project + dataset
  • Mapbox: Enable autocomplete
  • Vercel: Create AI Gateway key

5. Import Data & Generate Types

npx sanity dataset import sample-data.ndjson production
pnpm typegen

6. Run Locally

pnpm dev

πŸš€ Deployment

  1. Push to GitHub
  2. Import repo into Vercel
  3. Add environment variables
  4. Deploy

Post-deploy:

  • Update Clerk allowed origins
  • Configure Sanity CORS
  • Test booking flow

πŸ‘¨β€πŸ’» Author

Robert Johnson
Full-Stack Software Engineer
🌐 https://robertjohnsonportfolio.com

About

πŸ’ͺ FitPass is an AI-powered fitness class booking platform built with Next.js, Sanity, Clerk billing, and Vercel AI. Find classes near you, get personalized recommendations, book instantly, and manage subscriptions with tier-based access β€” all with real-time maps, filters, and a 3-day free trial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •