Better Auth
Comprehensive authentication framework for TypeScript with multiple strategies.
3. Used by agents' projects
Dependency in 103 public GitHub projects set up for AI coding agents that we scanned (1.6%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Better Auth does
Comprehensive authentication framework for TypeScript with multiple strategies.
Better Auth popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Better Auth is used
- Better Auth is a dependency in 103 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.1% of the 4,867 JavaScript/TypeScript ones), #7 of 141 in auth and security libraries.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 362; those are left out of every share on this page.
- The most used alternative in our scan is NextAuth.js (150 projects).
- Projects that use it most often also use Tailwind Merge (77.7%), clsx (76.7%), Lucide React (76.7%).
By coding agent
Often used with
More about Better Auth
Funding
- GitHub Sponsors: https://github.com/better-auth
- 10 GitHub sponsors
Agent Skills for it
- better-auth-best-practices: Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when
- better-auth: Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework. Features include ema
Head to head
- NextAuth.js vs Better Auth used together in 3 projects
- Better Auth vs Clerk used together in 0 projects
More in Auth and security libraries
Alternatives
Better Auth This page
Complete open-source authentication solution designed for Next.js applications.
Modern authentication and user management SDK for Next.js and React.
Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.
Get started
Install it.
npm install better-authNo step-by-step start for Better Auth yet: we have not written its hand-checked card.