Vue 3 + Vite + Supabase Auth SPA with an authenticated AI chat page from @open-templates. Pairs with cf-hono-supabase-gemini-api-template.
- Use this template on GitHub, then clone your repo.
- Personalize from
templates/:
./scripts/init-from-template.sh- Install and run:
bun install
cp .env.example .env.local
bun run dev- Start the paired API worker (cf-hono-supabase-gemini-api-template) on port
8787.
See templates/ABOUT_TEMPLATES.md and docs/INIT_TEMPLATE.md.
| Feature | Description |
|---|---|
| Google OAuth + email auth | Sign in, sign up, password recovery |
| API health indicator | Header polls GET /health |
Home (/) |
GET /me JWT verification + session debug |
AI chat (/chat) |
Chat UI → POST /chat with Bearer JWT |
| Session + token refresh | apiFetch attaches JWT and retries on 401 |
See index.md.
| Variable | Purpose |
|---|---|
VITE_SUPABASE_URL |
Supabase project URL |
VITE_SUPABASE_PUBLISHABLE_KEY |
Supabase anon / publishable key |
VITE_API_BASE_URL |
Worker URL (default http://localhost:8787) |
MIT