Skip to content

A lean, production-ready open-source SaaS boilerplate that lets you launch your idea in days, not weeks built with modern tools, minimal overhead, and real-world priorities in mind.

Notifications You must be signed in to change notification settings

hasnainXdev/saasjet

Repository files navigation

SaaSJet 🚀

A lean, production-ready open-source SaaS boilerplate that lets you launch your idea in days, not weeks built with modern tools, minimal overhead, and real-world priorities in mind.

We built SaaSJet because most boilerplates either drown you in unnecessary complexity (like forced multi-tenancy or enterprise-scale features) or leave critical pieces missing. This one focuses on what actually matters for indie hackers and solo founders shipping a paid product: secure auth, reliable billing, a polished dashboard, and a solid foundation you can deploy today. No upsell to a "pro" version everything here is free and open-source under MIT.

saasjet home

Why SaaSJet Stands Out

After researching dozens of open-source Next.js SaaS boilerplates, we found many great options, but SaaSJet differentiates by staying intentionally minimal while being fully functional. Here's how it compares to popular alternatives:

  1. Vs. ixartz/SaaS-Boilerplate: Robust with multi-tenancy and advanced features, but can feel heavy. SaaSJet keeps it lightweight no forced extras, pure Prisma, and native Stripe without premium lock-in.

  2. Vs. mickasmt/next-saas-stripe-starter: Great with roles and emails, but includes more opinionated additions. SaaSJet strips down to essentials for faster customization.

  3. Vs. Official Next.js SaaS Starter: Solid basics, but often pairs with Drizzle/Supabase. SaaSJet uses Prisma + PostgreSQL for maximum flexibility and type-safety.

If you're tired of over-engineered starters that slow you down, SaaSJet gets you to MVP without the fluff.

Key Features✨

  • Authentication

    Ready-to-go social login with Google and GitHub, plus magic-link/email-password support (powered by NextAuth.js)

  • Database

    Prisma ORM with PostgreSQL full schema, migrations, and type-safe queries out of the box

  • UI & Dashboard

    Beautiful, responsive admin dashboard built with Tailwind CSS and shadcn/ui components no need to start from a blank page

  • Billing & Subscriptions

    Stripe integration pre-configured: checkout sessions, customer portal, webhooks, and subscription management

  • API Layer

    Organized API routes (Next.js App Router) with examples for protected endpoints, rate limiting, and error handling

  • Production-Ready from Day 1

    Environment configuration, TypeScript strict mode, ESLint + Prettier, even Docker support (coming soon), and easy deployment to Vercel, Railway, or any Node.js host

Features Guides

Dive deeper into SaaSJet's core features with these step-by-step guides. Each one walks you through setup, code examples, and best practices straight from the boilerplate's real implementation.

More guides coming soon check out the full Docs & Blog for updates.

Quick Start

1. Clone the repository

git clone https://github.com/yourusername/saasjet.git
cd saasjet

2. Install dependencies

bun install

# or
npm install

# or
pnpm install

3. Copy the example environment file and fill in your values

cp .env.example .env.local
  • Required variables
# base Urls & secrets
BETTER_AUTH_SECRET=...
BETTER_AUTH_URL=...
NEXT_PUBLIC_APP_URL=...

# Database
DATABASE_URL=postgresql...

# Auth
GITHUB_ID=...
GITHUB_SECRET=...
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...

# stripe
STRIPE_PUBLISHABLE_KEY=...
STRIPE_SECRET_KEY=...
STRIPE_PRICE_PRO=...
STRIPE_PRICE_LIFETIME=...
STRIPE_WEBHOOK_SECRET=...

4. Run database migrations

npx prisma migrate dev

5. Start the development server

npm run dev

Contributing🌟

SaaSJet is open-source because we believe the best tools grow through community feedback.

  • Found a bug or have a suggestion? Open an issue.

  • Want to add a feature or improve something? Fork the repo and submit a pull request.

  • Every contribution helps other founders ship faster thank you!

Built with ❤️ for indie hackers, solo founders, and small teams who want to move fast and ship real products.

Launch your SaaS. Solve real problems. Win.

Follow me on X -> hasnainXdev

About

A lean, production-ready open-source SaaS boilerplate that lets you launch your idea in days, not weeks built with modern tools, minimal overhead, and real-world priorities in mind.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •