# better-auth

> The most comprehensive authentication framework for TypeScript.

Latest version **1.7.5** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install better-auth
pnpm add better-auth
yarn add better-auth
bun add better-auth
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.7.5 |
| Published | 2026-09-14 |
| First published | 2024-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 17 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 30020 |
| Maintainers | bekacru |
| Keywords | auth, oauth, oidc, 2fa, social, security, typescript, nextjs |

## Links

- npm: https://www.npmjs.com/package/better-auth
- Repository: https://github.com/better-auth/better-auth
- Homepage: https://better-auth.com
- npm.io page: https://npm.io/package/better-auth

## Dependencies (17)

- [zod](https://npm.io/package/zod.md) ^4.5.4
- [defu](https://npm.io/package/defu.md) ^6.1.4
- [jose](https://npm.io/package/jose.md) ^6.2.3
- [kysely](https://npm.io/package/kysely.md) ^0.28.17 || ^0.29.0
- [nanostores](https://npm.io/package/nanostores.md) ^1.3.0
- [better-call](https://npm.io/package/better-call.md) 1.4.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.2.0
- [@noble/ciphers](https://npm.io/package/@noble/ciphers.md) ^2.2.0
- [@better-auth/core](https://npm.io/package/@better-auth/core.md) 1.7.5
- [@better-auth/utils](https://npm.io/package/@better-auth/utils.md) 0.4.2
- [@better-fetch/fetch](https://npm.io/package/@better-fetch/fetch.md) 1.3.2
- [@better-auth/telemetry](https://npm.io/package/@better-auth/telemetry.md) 1.7.5
- [@better-auth/mongo-adapter](https://npm.io/package/@better-auth/mongo-adapter.md) 1.7.5
- [@better-auth/kysely-adapter](https://npm.io/package/@better-auth/kysely-adapter.md) 1.7.5
- [@better-auth/memory-adapter](https://npm.io/package/@better-auth/memory-adapter.md) 1.7.5
- [@better-auth/prisma-adapter](https://npm.io/package/@better-auth/prisma-adapter.md) 1.7.5
- [@better-auth/drizzle-adapter](https://npm.io/package/@better-auth/drizzle-adapter.md) 1.7.5

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.7.5 (latest) — 2026-09-14
- 1.6.33 (release-1.6) — 2026-09-14
- 1.7.0-rc.6 (rc) — 2026-08-14
- 1.7.0-beta.10 (beta) — 2026-06-26
- 1.4.22 (release-1.4) — 2026-03-16
- 1.0.0-canary.14 (canary) — 2024-11-22
- 0.8.7-beta.5 (next) — 2024-11-19
- 0.0.2-alpha.3 (alpha) — 2024-05-21
- 1.6.32 — 2026-09-14
- 1.7.4 — 2026-09-10
- 1.6.31 — 2026-09-10
- 1.7.3 — 2026-09-06
- 1.7.2 — 2026-08-26
- 1.7.1 — 2026-08-18
- 1.7.0 — 2026-08-18
- … 918 more at https://npm.io/package/better-auth/versions

## README

<div align="center">
  <picture>
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-dark.png?raw=true" media="(prefers-color-scheme: dark)"/>
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-light.png?raw=true" media="(prefers-color-scheme: light)"/>
    <img src="https://github.com/better-auth/better-auth/blob/main/banner-light.png?raw=true" alt="Better Auth Logo"/>
  </picture>

  [![npm](https://img.shields.io/npm/dm/better-auth?style=flat&colorA=000000&colorB=000000)](https://npm.chart.dev/better-auth?primary=neutral&gray=neutral&theme=dark)
  [![npm version](https://img.shields.io/npm/v/better-auth.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/better-auth)
  [![GitHub stars](https://img.shields.io/github/stars/better-auth/better-auth?style=flat&colorA=000000&colorB=000000)](https://github.com/better-auth/better-auth/stargazers)

  <p>
    <a href="https://discord.gg/better-auth">Discord</a>
    ·
    <a href="https://better-auth.com">Website</a>
    ·
    <a href="https://github.com/better-auth/better-auth/issues">Issues</a>
  </p>
</div>

## Better Auth

Better Auth is a framework-agnostic authentication (and authorization) framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in a short amount of time. Whether you need 2FA, multi-tenant support, or other complex features, it lets you focus on building your actual application instead of reinventing the wheel.

## Getting Started

```bash
npm i better-auth
```

Read the [Installation Guide](https://better-auth.com/docs/installation) to
learn more.

---
_Source: https://npm.io/package/better-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
