Development · GitHub repo

Better Auth

Open-source TypeScript authentication framework for modern web applications.

Visit github.com ↗

Better Auth is a comprehensive, open-source authentication framework designed for TypeScript web apps. It supports common identity standards like OAuth2 and OIDC alongside modern ecosystem adapters like Drizzle, Kysely, and SvelteKit. Developers turn to it as a flexible, self-hosted alternative to proprietary auth services or complex legacy libraries.

What it's for

  • Implement OAuth and OIDC authentication in TypeScript web apps
  • Manage user sessions and identity without paying for hosted auth providers
  • Integrate authentication with ORMs like Drizzle or Kysely across various JavaScript runtimes

Features

  • TypeScript-first design with built-in type inference
  • Support for OAuth, OAuth2, and OIDC protocols
  • Database adapters including Drizzle, Kysely, and Cloudflare D1
  • Pluggable architecture with community plugin ecosystem
  • Framework support across Next.js, SvelteKit, and other JS environments

Pricing

Open source. Free and open source under the MIT license

Details

Type
GitHub repo
Category
Development
Topic
Authentication
Open source
Yes
Platforms
Code library, Self-hosted
For
TypeScript and full-stack web developers building authentication into modern web applications.
Alternative to
NextAuth.js, Auth.js, Clerk, Supabase Auth, Lucia
Tags
authentication, typescript, oauth, oidc, security, open source

Why it was saved

  • @mazeincoding, 14 August 2025: An authentication solution to consider or reuse when building products; the author singles it out as worth betting on.

Related

  • 2023 JavaScript Rising Stars

    Annual overview of the fastest-growing JavaScript GitHub repositories in 2023.

  • Cross-Subdomain Cookies in Better Auth

    Share authentication sessions across multiple subdomains using Better Auth configuration.

  • Prismer Cloud

    Runtime and SDK harness for persistent, evolving AI agent memory

  • Social SDK

    Typed TypeScript SDK for publishing, analytics, and interactions across social platforms

  • x-algorithm

    The open-source code powering the For You recommendation feed on X.

  • awesome-llm-apps

    Open-source collection of runnable AI agent, skill, and RAG templates

Updated