Dev Resources

This listing is not live yet. It will be published on February 20, 2027.

MailKite SaaS Starter favicon

MailKite SaaS Starter

Template/Open Source/Startup

MIT-licensed Next.js SaaS starter: self-contained auth (OAuth + email/password, no auth vendor), Stripe subscriptions, teams, Postgres/Drizzle, dark-first UI.

MailKite SaaS Starter's website screenshot

About MailKite SaaS Starter

MailKite SaaS Starter is an open-source Next.js template for launching a SaaS product, bundling authentication, payments, team management, and a dashboard UI to skip common boilerplate. Authentication is self-contained within the app rather than relying on an external service: it supports email/password sign-in with PBKDF2 password hashing via WebCrypto, plus Google and GitHub OAuth, with JWT sessions signed using jose. Payments are handled through Stripe, covering Checkout, the Customer Portal, webhooks, and subscription lifecycle management.

The template uses PostgreSQL with Drizzle ORM for a type-safe schema, migrations, and seed scripts, and is built on Next.js 15 with the App Router. The UI is dark-first with animated backgrounds, gradient cards, a light/dark toggle, and a color theme picker, built with Tailwind CSS v4 and shadcn/ui. It includes team functionality for inviting members, managing permissions, and a shared workspace.

The only external service dependency is MailKite, used for sending transactional email such as welcome messages; it is optional, and the app skips the email without an API key rather than failing. The project deploys to Vercel, though the stack is described as deployable elsewhere, and requires environment variables including AUTH_SECRET, POSTGRES_URL, STRIPE_SECRET_KEY, and STRIPE_WEBHOOK_SECRET, with optional variables for enabling Google and GitHub OAuth and MailKite email. It is licensed under MIT.

Key features

  • Self-contained email/password and OAuth (Google, GitHub) authentication with JWT sessions
  • Stripe integration for checkout, customer portal, webhooks, and subscription lifecycle
  • Team management with member invites and shared workspace permissions
  • Dark-first UI with animated backgrounds, gradient cards, and light/dark theme picker
  • PostgreSQL database with Drizzle ORM including type-safe schema, migrations, and seed scripts
  • Automated brand asset generation for icons and logos from a single path definition

Frequently asked questions

Is this free to use?

Yes, it is MIT licensed and free to use for anything, with attribution appreciated.

What framework and language does it use?

It's built with Next.js 15 (App Router) and TypeScript.

Does it require a third-party auth service?

No, authentication runs entirely in your own Next.js server and database with no external auth service required.

What database does it use?

PostgreSQL, accessed via Drizzle ORM, and it can be hosted on Neon, Supabase, or any Postgres provider.

How are payments handled?

Payments use Stripe for Checkout, Customer Portal, and webhook-driven subscription lifecycle management.

Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product