All Projectslive
PROJECT FILE / LARPCHAT AI
LarpChat AI
Tier-based AI chat and image platform with full auth and rate limiting
ReactTypeScriptExpressSupabaseOpenAI APIVercel
01
What it is
LarpChat AI is a full-stack AI chat and image generation platform with tiered access. Users can chat with AI models and generate images, with different capabilities depending on whether they're a guest, free user, or Plus subscriber.
02
Role
Founder and developer — sole engineer. Built the full stack: React frontend, Express backend, Supabase auth, OpenAI integration, rate limiting, usage tracking, and Vercel deployment pipeline.
03
Tech Stack
- React + TypeScript — frontend SPA
- Express + TypeScript — backend server with serverless Vercel function entrypoints
- Supabase — email/password auth, user profiles, subscriptions, usage tracking
- OpenAI API — chat completions and image generation, server-side only
- Vercel — deployment with serverless API routes
04
Tier System
- Guest: basic model access, strict IP-based rate limits, no account required
- Free: smarter model, higher daily limits, requires sign-in
- Plus: frontier model, highest limits, requires active subscription
- Plan enforcement happens entirely server-side — the client cannot spoof a tier
05
Key Features
- Chat and image generation with tier-based model routing
- Supabase auth with session persistence across visits
- IP-based guest limits and user-based signed-in limits
- Daily usage tracking in a usage_events table
- Structured server-side logging for blocked requests and model usage
- PDF upload parsing (attachments gated to signed-in users)
- AI-generated chat titles using a lightweight model
- Public landing page, pricing page, and /app workspace
06
Security
- OpenAI API key is server-only — never exposed to the browser
- Supabase service role key is server-only
- Row Level Security on all Supabase tables
- All plan enforcement and model selection happens on the backend
- Upload requests are minute-rate-limited server-side
- Structured logs capture abuse patterns without storing user content
07
Current Status
Live at larpchatai.vercel.app. Active development — Stripe billing for Plus tier is the next planned milestone.