#1313th of 102 in Backends, databases and hosting

better-auth

Framework-agnostic authentication and authorization library for TypeScript with plugins

Stars
30.7k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
TypeScript
Stars, last 29 weeks+3,138
21 Apr 2026: 27,573 stars28 Apr 2026: 27,704 stars5 May 2026: 27,799 stars12 May 2026: 27,961 stars19 May 2026: 28,058 stars26 May 2026: 28,164 stars2 Jun 2026: 28,295 stars9 Jun 2026: 28,381 stars16 Jun 2026: 28,485 stars23 Jun 2026: 28,574 stars30 Jun 2026: 28,667 stars7 Jul 2026: 28,825 stars14 Jul 2026: 28,973 stars21 Jul 2026: 29,079 stars28 Jul 2026: 29,187 stars4 Aug 2026: 29,286 stars11 Aug 2026: 29,353 stars18 Aug 2026: 29,438 stars25 Aug 2026: 29,550 stars1 Sept 2026: 29,669 stars8 Sept 2026: 29,762 stars15 Sept 2026: 29,856 stars22 Sept 2026: 29,960 stars29 Sept 2026: 30,039 stars6 Oct 2026: 30,130 stars13 Oct 2026: 30,235 stars20 Oct 2026: 30,358 stars27 Oct 2026: 30,468 stars3 Nov 2026: 30,574 stars10 Nov 2026: 30,711 stars

27,573 on 21 Apr 202630,711 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Better Auth is a TypeScript authentication and authorization library that works across frameworks. It ships core auth features and a plugin system for additions such as 2FA and multi-tenant support. It is a library you add to an existing app, not a hosted service.

Who it is for: TypeScript developers who want self-hosted auth inside their own app

Strengths

  • Framework-agnostic TypeScript library, not tied to one web stack
  • Plugin system for 2FA, multi-tenant and other advanced features
  • MIT licensed, with a release published on the latest commit date
  • Self-hosted in your own app, no third-party auth service required

Weaknesses

  • README lists no supported frameworks, databases or auth providers
  • Library only: no standalone auth server or admin UI described
  • README has no install steps, code examples or docs link
  • TypeScript only, so non-JS backends cannot use it directly

What it needs

  • no GPU
  • Compose
  • Compose runs MongoDB, Redis, PostgreSQL, MySQL

Quick answers

Is better-auth open source?

Yes. Its code is on GitHub under the MIT license.

Can you run better-auth with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in Backends, databases and hosting

See all 102
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k starscustom license93 out of 100
2strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k stars+245 (+0.3%) in 30 dayscustom license92 out of 100
3traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.5k stars+446 (+0.7%) in 30 daysMIT92 out of 100
#4appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58k stars+463 (+0.8%) in 30 daysBSD-3-Clause92 out of 100
#5medusaNode.js commerce platform with modular products, carts, orders and payments37.2k starscustom license92 out of 100