Next.js 16 auth, finally in its place.
Better-Auth, Drizzle ORM, and PostgreSQL, composed for the Next.js App Router. Email/password, Google and GitHub OAuth, sessions, and type-safe migrations are ready for your first commit.
Built for teams who care about the details
The foundation
Everything wired. Nothing in your way.
Identity layer
Better-Auth Core
Email/password auth plus Google and GitHub OAuth, with sessions wired through the catch-all route handler and authClient.
Data layer
Drizzle + Postgres
Docker-ready Postgres, generated auth schemas, and explicit drizzle-kit migrations you can review in git.
Routing layer
Protected by default
Server-side session validation and layout redirects keep public and authenticated flows clearly separated.
Developer layer
Type-safe fullstack
A focused App Router foundation with end-to-end TypeScript, so your next feature starts with useful boundaries.
Start in seconds
Clone the stack, then make it yours.
$
pnpm create next-app@latest && pnpm add better-auth drizzle-orm pg