Development · GitHub repo
nextjs-sessionauth-template
Next.js starter template featuring Lucia session auth and Stripe billing
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: 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
Full-stack SaaS starter with Next.js 15, Convex, and Clerk Billing
Next.js AI boilerplate with pre-built apps, auth, and payments.
Next.js SaaS starter template with Supabase and Polar subscription billing
Open-source Next.js boilerplate showcasing ElevenLabs audio and voice features
A full-stack Next.js tech stack for fast project prototyping and deployment.
Full-stack Next.js 15 starter with Better-Auth, Drizzle, and Tailwind v4
Updated