---
name: better-auth
summary: "better-auth is an open-source TypeScript project with 28.7k GitHub stars. It is associated with authentication, iam, oauth, oauth2. The repository is actively maintained, with recent commits."
language: TypeScript
license: MIT
repo: https://github.com/better-auth/better-auth
source: https://opensources.dev/resource/better-auth
health: 100
---

# better-auth

better-auth is an open-source TypeScript project with 28.7k GitHub stars. It is associated with authentication, iam, oauth, oauth2. The repository is actively maintained, with recent commits.

### Website & Docs

The main website and documentation for [better-auth.com](https://better-auth.com)

[![Website](https://img.shields.io/badge/better--auth.com-000?style=flat&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNDUiIHZpZXdCb3g9IjAgMCA2MCA0NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgMEgxNVYxNUgzMFYzMEgxNVY0NUgwVjMwVjE1VjBaTTQ1IDMwVjE1SDMwVjBINDVINjBWMTVWMzBWNDVINDVIMzBWMzBINDVaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==&logoColor=white)](https://better-auth.com)
[![GitHub Stars](https://img.shields.io/github/stars/better-auth/better-auth?style=flat&logo=github&label=stars&color=24292e)](https://github.com/better-auth/better-auth)
[![License](https://img.shields.io/badge/license-MIT-blue?style=flat)](LICENSE)

---

## Quick Start

```bash
# install
pnpm install

# develop
pnpm dev
```

Open [**localhost:3000**](http://localhost:3000) to preview.

## Stack

- **Framework**: Next.js 16 (App Router, Turbopack)
- **Styling**: Tailwind CSS 4
- **Animation**: Framer Motion
- **Docs**: Fumadocs
- **Icons**: Lucide React
- **Fonts**: Geist Sans & Geist Mono

## Structure

```tsx
├─ app/
│  ├─ page.tsx              # Home — hero + sign-in demo
│  ├─ products/             # Products page
│  ├─ blog/                 # Blog posts
│  └─ docs/[[...slug]]/     # Documentation (MDX)
│
├─ components/
│  ├─ landing/              # Marketing components
│  ├─ docs/                 # Documentation components
│  ├─ ui/                   # Shared primitives
│  └─ icons/                # Brand icons & logo
│
├─ content/                 # MDX documentation files
│
├─ lib/
│  ├─ source.ts             # Fumadocs content source
│  └─ utils.ts              # Utilities
│
└─ public/
   └─ branding/             # Logo assets (SVG + PNG)
```

## Scripts

```bash
pnpm dev          # Start dev server (Turbopack)
pnpm build        # Production build
pnpm start        # Serve production build
pnpm lint:fix     # Lint & auto-fix with Biome
```
