Hey everyone! 👋
I've been working on Xerv, a free and open-source SaaS starter built with Next.js, Supabase, Stripe, and Vercel.
The idea came from a problem I kept running into: every time you start a new SaaS, you end up spending hours (sometimes days) setting up the same infrastructure before you can actually work on your product.
Authentication, database security, subscriptions, webhooks, emails...
So I built Xerv to bring those pieces together.
What's included
-
Next.js 16 + TypeScript — App Router and a responsive UI.
-
Supabase Auth — Google OAuth, email/password, verification, password recovery, and protected routes.
-
Postgres + RLS — User-owned private data with database-level access control.
-
Stripe subscriptions — Free/Pro plans, monthly and annual billing, Checkout, Customer Portal, and signed webhooks.
-
Resend SMTP — Transactional authentication emails.
-
Working app — Dashboard, account management, billing, and a replaceable example feature.
-
Testing — Unit tests, database security tests, Playwright E2E, and GitHub Actions CI.
What makes it different?
I wanted something focused, not another massive boilerplate.
Xerv connects authentication, private data, and payment-verified access end to end. Stripe webhooks determine paid entitlements, while Supabase RLS enforces data ownership.
The example feature is designed to be replaced with your own product without rebuilding the underlying infrastructure.
No unnecessary abstractions. Just the foundation you need to start building.
Free and open source
Xerv is MIT licensed. You can clone it, fork it, customize it, and build your own SaaS on top.
Live demo: https://xerv.vercel.app
GitHub: https://github.com/pablocampelo/xerv
Built with Next.js and deployed on Vercel.
I'd really appreciate feedback from the community, especially from developers who've built subscription-based SaaS products.
What would you add or improve?
Thanks for checking it out!
[grid]





[/grid]