How starrlikeringo22/vipclub works
VIP Club is a salon-focused loyalty and retention app. Customers join a business, receive a QR-linked VIP pass, and earn rewards through staff-logged visits; owners manage members, appointments, campaigns, and rebooking reminders, while admins review cross-shop analytics. The API routes coordinate these workflows and the data layer supports in-memory or Supabase-backed persistence. Major capabilities and some links are based on README descriptions and the SOURCE INDEX; unsampled implementation details are not asserted beyond that evidence.
Main entry points: bookings/route.ts Booking API · db.ts Member Data · signup/route.ts Signup API · sms.ts SMS Service
Components 26
Customer Loyalty
- Join Page
app/join/[businessId]/page.tsx - Signup API
app/api/signup/route.ts - VIP Pass
app/pass/[customerId]/page.tsx - Staff Check-in
app/checkin/[customerId]/CheckinClient.tsx - Visit API
app/api/customers/[id]/visit/route.ts
Shop Operations
- Owner Workspace
app/owner/OwnerApp.tsx - Client Profile
app/owner/client/[id]/ClientProfile.tsx - Business Settings
app/owner/settings/SettingsClient.tsx - Admin Analytics
app/admin/page.tsx
Messaging and Scheduling
- Booking API
app/api/bookings/route.ts - Booking Actions
lib/booking-actions.ts - Calendar Assets
lib/calendar.ts - Email Delivery
lib/email.ts - Reminder Runner
app/api/reminders/run/route.ts - Campaigns API
app/api/campaigns/route.ts - SMS Service
lib/sms.ts
Platform Services
- Member Data
lib/db.ts - Client Management
lib/clients.ts - Authentication
lib/auth.ts - Session Guards
lib/session.ts - User Accounts
lib/users.ts
Other components
- Customer
- Staff
- Supabase
- Twilio
- Resend
Connections 27
- Customer → Join Page: opens
- Join Page → Signup API: submits signup
- Signup API → Member Data: creates member
app/api/signup/route.ts - Signup API → Client Management: checks referral
app/api/signup/route.ts - Signup API → SMS Service: sends welcome
app/api/signup/route.ts - Member Data → VIP Pass: loads member
app/pass/[customerId]/page.tsx - Customer → VIP Pass: views pass
- Staff → Staff Check-in: scans pass
- Staff Check-in → Visit API: records visit
app/checkin/[customerId]/CheckinClient.tsx - Visit API → Member Data: updates rewards
- Owner Workspace → Booking API: manages bookings
- Booking API → Booking Actions: creates booking
app/api/bookings/route.ts - Booking API → Member Data: loads business data
app/api/bookings/route.ts - Booking API → Calendar Assets: builds calendar links
app/api/bookings/route.ts - Booking API → Email Delivery: sends invite
app/api/bookings/route.ts - Email Delivery → Resend: delivers email
- Owner Workspace → Client Profile: manages clients
- Owner Workspace → Business Settings: configures shop
- Reminder Runner → Client Management: finds due members
app/api/reminders/run/route.ts - Reminder Runner → SMS Service: sends reminders
app/api/reminders/run/route.ts - Campaigns API → SMS Service: sends campaign
app/api/campaigns/route.ts - SMS Service → Twilio: delivers texts
- Admin Analytics → Member Data: reports metrics
- Session Guards → Authentication: verifies session
lib/session.ts - User Accounts → Authentication: checks passwords
lib/users.ts - Booking API → Session Guards: checks role
app/api/bookings/route.ts - Member Data → Supabase: persists records