finds.dev

saasykits/nextjs-sessionauth-template

Next.js starter template featuring session-based auth, drizzle-orm, tailwind, shadcn ui, stripe, react-email etc.

View on GitHubHomepage ↗

★ 540TypeScriptMITupdated Jan 2025

// the take

A Next.js starter template wiring together Lucia auth, tRPC, Drizzle ORM, Stripe subscriptions, and React Email into a single deployable base. Aimed at developers who need email/password auth in Next.js without NextAuth's deliberate friction around credentials. Saves a week of plumbing; ships with E2E tests via Playwright.

Lucia is a sensible choice here — it gives you real control over session management without the magic-box problems of NextAuth. The Drizzle schema is typed end-to-end, so you're not guessing what columns exist. E2E tests actually run against a built production bundle, not just dev mode, which catches a real class of SSR bugs. The devcontainer setup with a pre-configured Postgres means zero environment fighting to get started.

Lucia v3 deprecated itself in early 2025 — the maintainer archived the project and recommends migrating away, so this template is already building on a dead foundation. Last commit was January 2025 and the roadmap items (update password, admin dashboard, RBAC) are still open checkboxes, meaning you'll be writing that code yourself. The 'posts' CRUD domain in the dashboard is just placeholder scaffolding that you'll rip out, but the tRPC router and schema are tangled into it, so untangling adds friction before you can build your actual feature. No rate limiting on auth endpoints by default — the README mentions an old Upstash branch but it's commented out.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
540
Forks
65
Language
TypeScript
License
MIT
Last commit
23 Jan 2025

// nearby

If nextjs-sessionauth-template isn't quite it.

All repos →