Development · GitHub repo

nextjs-sessionauth-template

Next.js starter template featuring Lucia session auth and Stripe billing

Visit github.com ↗

An open-source full-stack boilerplate for Next.js focused on flexible session authentication using Lucia instead of NextAuth. It comes pre-configured with credential auth, email verification, password resets, Stripe subscription billing, Drizzle ORM, tRPC, and shadcn/ui.

What it's for

  • Bootstrap a SaaS application with credential auth and OAuth support
  • Set up recurring subscription tiers using Stripe checkout and customer portals
  • Build type-safe CRUD operations using tRPC and Drizzle ORM with PostgreSQL

Features

  • Credential and OAuth authentication using Lucia
  • Email verification and password reset workflows via React Email
  • Stripe integration for recurring customer subscriptions
  • Drizzle ORM configured with PostgreSQL and migration scripts
  • Type-safe APIs using tRPC integrated with Lucia session data
  • Pre-styled UI components using Tailwind CSS and shadcn/ui
  • End-to-end testing setup with Playwright

Pricing

Open source

Details

Type
GitHub repo
Category
Development
Topic
Boilerplates & Starters
Open source
Yes
Platforms
Web, Self-hosted
For
Next.js and TypeScript developers building full-stack SaaS projects
Alternative to
NextAuth.js, create-t3-app, Supabase Auth
Tags
nextjs, lucia auth, trpc, drizzle orm, stripe, boilerplate

Why it was saved

  • @iamtouha, 12 February 2024: Ready-made full-stack SaaS scaffold: credential auth with password reset, email validation and oAuth via Lucia, plus posts CRUD, Free/Pro plans with Stripe checkout and a customer billing portal. Includes Drizzle, tRPC, Stripe, tailwindcss, shadcn-ui and react-email.

Related

All 6 in Boilerplates & Starters →

Updated