Paste code + an error message, get an AI-generated root cause, fix, and best practices. Fully static frontend — deployable on GitHub Pages — backed by Supabase for auth/database and a Supabase Edge Function for the AI call.
- React 18 + Vite + TypeScript
- Bootstrap 5 + Bootstrap Icons
- Zustand, React Query, React Router, Framer Motion, Monaco Editor
- Supabase (Auth, Postgres, Edge Functions)
- Create a free project at https://supabase.com.
- In the SQL editor, run
supabase/migrations/001_init.sql. - Deploy the AI edge function (needs the Supabase CLI):
supabase login supabase link --project-ref YOUR_PROJECT_REF supabase functions deploy solve-error supabase secrets set OPENAI_API_KEY=sk-... - Copy
.env.exampleto.envand fill in your Supabase URL + anon key (Project Settings → API). - Install and run:
npm install npm run dev
- In
vite.config.ts, setbaseto/your-repo-name/. - Push to GitHub, then in the repo: Settings → Pages → Source → GitHub Actions.
- Add repo secrets Settings → Secrets and variables → Actions:
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEY
- Push to
main—.github/workflows/deploy.ymlbuilds and deploys automatically.