Auth, billing, dashboard, API, deploy — you've built these five things before. Here they are, wired up, tested, and ready to ship. Next.js 14, Supabase, Stripe, and Coolify included.
Every SaaS needs the same foundations. You rebuild them each time. It's not creative work — it's plumbing. Here's what you're stuck doing instead of shipping.
Sign up, log in, reset password, OAuth, session handling. You've typed this six times.
Webhooks, checkout sessions, customer portal, subscription state. Wiring it all takes a full day.
Layout, nav, user menu, settings page. The same responsive shell every time.
Route handlers, middleware, error responses, rate limiting. Boilerplate with a capital B.
Dockerfile, env vars, CI/CD, domain, SSL. "It works locally" is not a deploy strategy.
What's inside
Every piece is wired end to end. Copy the repo, add your Stripe keys, deploy. You're running a real SaaS, not a TODO app.
Server components, route handlers, middleware. Not the Pages Router — the current one.
// app/dashboard/page.tsx
export default async function Dashboard() {
const user = await getUser()
return <DashboardClient user={user} />
}
Email + password, magic links, Google and GitHub OAuth. JWT-protected API routes. Row Level Security policies ready.
// middleware.ts
export function middleware(req: NextRequest) {
return updateSession(req) // 2 lines
}
Checkout, webhooks, customer portal, subscription guard. Monthly, annual, and one-time payments out of the box.
// Check if user is subscribed
if (!subscription?.active)
redirect('/billing')
Dockerfile included. Deploy to a $5 Hetzner VM with Coolify in under 10 minutes. No Vercel vendor lock-in. Your infra, your rules.
# Just push to Coolify
git remote add coolify ...
git push coolify main
Responsive layout with sidebar nav, user menu, settings, and billing pages. Tailwind CSS. Dark mode included because it's 2024.
Full type coverage. Integration tests for auth and billing flows. ESLint + Prettier configured. CI pipeline that actually runs.
Every other boilerplate assumes Vercel. That's not self-hosting — that's just another platform. We include Coolify config so you deploy to your own server for $5/mo on Hetzner. Real numbers:
Hetzner Cloud CX11 — 1 vCPU, 2 GB RAM. Plenty for a SaaS that's just getting started.
No subscriptions on the kit. Pay once, clone, ship.
$99 one-time
$149 one-time