AI-powered surf trip planning assistant. Users input a destination prompt, the app calls OpenAI, and streams a real-time response with swell forecasts, wind, tides, and travel logistics.
Live demo: https://www.surftrip.fun
- Next.js 16 (App Router) + React 19
- OpenAI gpt-4o-mini via Vercel AI SDK
- TypeScript (strict)
- Supabase auth + PostgreSQL — optional, app works without it
git clone https://github.com/masonomara/surftrip.git
cd surftrip
npm installcp .env.example .env.localAdd your OpenAI key to .env.local — get one at platform.openai.com/api-keys.
No database needed. The app works immediately out of the box.
npm run devOpen http://localhost:3000.
Without Supabase, conversation history lives in localStorage. To enable user accounts and cross-device history:
- Add to
.env.local:
NEXT_PUBLIC_SUPABASE_URL=your_project_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_anon_key
- Run
lib/supabase/schema.sqlin the Supabase SQL editor.
npm run test