Self-Hosted SaaS Boilerplate

Ship your SaaS in hours, not weeks.

Auth, payments, email, admin panel, and one-command deploy — all wired up and ready to go. Clone the repo, replace the dashboard, and launch.

No Firebase. No Auth0. No vendor lock-in. Full ownership on any VPS.

Everything you need to launch

Production-grade infrastructure that would take weeks to build from scratch. Every feature is tested, documented, and ready for your customers.

Authentication

  • JWT sessions with httpOnly cookies
  • Email verification (SHA-256 tokens)
  • Password reset flow
  • OAuth login (Google, GitHub)
  • Rate limiting on all auth endpoints

Payments

  • Stripe checkout + subscriptions
  • PayPal one-time payments
  • Webhook handlers with signature verification
  • Billing history and receipts
  • Customer portal for subscription management

One-Command Deploy

  • Full VPS provisioning from scratch
  • Docker + Nginx + Caddy (auto HTTPS)
  • PostgreSQL bound to localhost
  • PM2 process management
  • Works on any Ubuntu VPS

Security

  • bcrypt password hashing (cost 12)
  • CSRF protection (SameSite cookies)
  • Rate limiting (login, signup, reset)
  • DKIM email signing + SPF/DMARC
  • Timing-attack resistant login

Admin Panel

  • User management dashboard
  • Funnel analytics (signup to paid)
  • Audit logging for sensitive actions
  • Webhook event store with idempotency
  • In-app notification system

Teams & API Keys

  • Multi-tenancy with organizations
  • Role-based membership (owner, admin, member)
  • Email invite flow
  • API key management with scopes
  • Data isolation per organization

Built with

Next.js 16 React 19 TypeScript PostgreSQL Prisma Tailwind CSS Docker Stripe PayPal

How it works

01

Clone the repo

Get the full source code. Run bash hatch.sh local to start developing immediately with Postgres and Mailpit running locally.

02

Build your product

Replace the example dashboard with your application logic. Auth, payments, email, and admin are already wired up.

03

Deploy to any VPS

Run bash hatch.sh deploy and provide your VPS IP and domain. Full provisioning happens automatically.

Pricing

One-time purchase. No subscriptions. Full source code ownership.

Hatch

$149 one-time
  • Full source code
  • Auth, payments, email, admin
  • One-command deploy
  • Teams, API keys, audit logging
Get Hatch
Recommended

Hatch + Updates

$249 one-time
  • Everything in Hatch
  • 12 months of repo updates
  • New features and improvements
  • Security patches and dependency updates
Get Hatch + Updates

Delivery via private GitHub repo access. Stripe and PayPal accepted.