A GitHub template for vibe-coding a real app with confidence — auth, per-user data, realtime, and file storage on day one, plus an in-app board where the app builds its own next feature.
Support this project by visiting the sponsor below and learning more about the Zapier SDK! 🚀 Sponsored by Zapier SDK · 📺 Watch the video · 📖 Read the Substack
Instead of the built-in "for real" prompting Lovable/Replit bake in, this repo
carries your own opinions — in CLAUDE.md and the
vibe-coding-with-confidence skill
— so an AI coding agent builds the same secure way every time. It's not a
hello-world: sign in, upload a document, and watch it sync live — that already
proves the whole stack.
| Area | What you get |
|---|---|
| 🔐 Auth | Supabase Auth, gated app (no anonymous phase) — email+password and magic link, open sign-up, no email verification required. |
| 🗂️ Per-user data (RLS) | A documents table, default-deny RLS with four owner-gated policies (select/insert/update/delete on auth.uid() = user_id), and an updated_at trigger. |
| 📌 Document workspace | Grid/list views, search by name or file type, per-document editable notes, and pin-to-top for the documents you care about most. |
| 📦 Private file storage | A private documents Storage bucket, objects scoped to {user_id}/…, served to the owner only via short-lived signed URLs. |
| ⚡ Realtime | The dashboard subscribes to Postgres changes filtered to the current user — a change in one tab shows up in another instantly. |
| 🧩 Tabbed app shell | History-API-backed tabs (/ Documents, /features Feature requests) — linkable, bookmarkable, back-button friendly, no router dependency. |
| 🛠️ AI Feature Pipeline | An in-app kanban (Idea → Approved for work → Approved to merge → Shipped). Anyone files an idea (with screenshots); an admin drags to approve; Claude Code builds it on a branch and opens a PR; dragging again squash-merges — merge is deploy. |
| 👤 Admin roles | A minimal profiles.is_admin trust boundary — first signup becomes admin; only admins can approve/merge feature cards or move lanes. |
| 🧪 AI Quality foundation | Versioned prompts (prompts → prompt_versions), eval suites/cases, a server-side run-eval engine that grades answers with Claude, and a promote-only-if-green gate (promote_prompt_version) — the schema + engine an AI-quality workbench builds on. |
| ✅ CI/CD | GitHub Actions: typecheck + lint + test + build on every push/PR, automatic Supabase migrations and edge-function deploys on merge, and this README auto-refreshing itself on every merge to main. |
| 🔒 HTTPS everywhere | Railway serves the built app over HTTPS by default; every push to main redeploys. |
Dragging a card between lanes is the approval — a human always stays on the two levers that matter: spend AI effort and ship to production.
flowchart LR
A["💡 Idea<br/>anyone files, screenshots welcome"] -->|admin approves| B["🛠️ Approved for work<br/>GitHub issue opened (approved-for-work label)"]
B -->|Claude Code builds on a branch| C["🔀 Pull request<br/>CI: typecheck · lint · test · build"]
C -->|admin drags the card| D["✅ Approved to merge<br/>squash-merge"]
D --> E["🚀 Shipped<br/>merge = deploy on Railway"]
The AI never touches main — it only ever opens a PR. See the
ai-feature-pipeline skill for the full
mechanics (the edge function, the GitHub Action, the trust boundary).
- Frontend: Vite + React + TypeScript, plain CSS (no UI framework, no router).
- Backend: Supabase — Postgres + RLS, Auth, Realtime, Storage, Edge Functions.
- AI: Claude Code (via
anthropics/claude-code-action) builds approved features; the Anthropic API grades AI-quality evals server-side. - Hosting: Railway, deploying from GitHub on every push, HTTPS by default.
Deploying end to end?
DEPLOY.mdis the ordered, click-by-click runbook (GitHub → Supabase → Railway) with a verification checklist and common snags.
- Use this template → Create a new repository (or clone this repo).
- Create a Supabase project, enable Email auth (confirm-email off), and add your local + deployed origins to Redirect URLs.
- Apply
supabase/migrations/(via the "Apply Supabase migrations" GitHub Action orsupabase db pushlocally) to create the tables, RLS policies, and the private Storage bucket. - Copy
.env.exampleto.envand fill in the two publicVITE_values from Supabase → Project Settings → API.
npm install
npm run dev # http://localhost:5173Other scripts:
npm run typecheck # tsc --noEmit
npm run lint # eslint
npm test # vitest
npm run build # typecheck + production build into dist/
npm start # serve the built dist/ on $PORT (used by Railway)Then point Railway at the repo (it reads railway.json) and set the same two
VITE_ vars in the service. Every push to main redeploys over HTTPS.
CLAUDE.md— retitle and describe your actual app.- The domain —
documentsis a live smoke-test of the stack. Rename or replace it with your real entities, keeping the same shape (RLS, realtime, storage) — thevibe-coding-with-confidenceskill has copy-paste patterns. - The Features board — is a capstone; only wire it up once you have real accounts, an admin role, and a GitHub repo whose merges deploy.
.claude/skills/vibe-coding-with-confidence/
encodes the security rules, the phased build, and reusable patterns (auth,
data model + RLS, realtime, storage, Railway deploy). It loads automatically in
Claude Code — prefer the simplest thing that is still secure, and keep RLS
on for every user-data table.
.claude/skills/ai-feature-pipeline/
encodes the "idea → shipped code" board above: the concept, the exact GitHub
mechanics, and a build spec adapted to this starter's conventions.