saas-starter

better-auth: Seamless, Scalable Auth for SaaS Founders

Deploy a battle‑tested TypeScript auth suite—OAuth, OIDC, SSO, Stripe billing—in minutes. Ideal for founders building secure SaaS products. 30k+ GitHub stars.
30,284 stars+102★ this week2,969 forksTypeScriptGuide quality 9/10 · reviewed Oct 9Install verified Sep 21Updated 10/13/2026100% free · open source
What it does

Better-auth provides a comprehensive authentication system for SaaS applications, handling user registration, login, and authorization in a secure and scalable manner.

When to use it
  • •When building a SaaS application that requires secure user authentication and authorization
  • •When needing to integrate multiple authentication providers, such as Google, Facebook, or GitHub
  • •When requiring a customizable and extensible authentication system to fit specific business needs
Ready-to-paste prompt
To authenticate a user with Google, use the following code: `betterAuth.authenticate('google').then((result) => console.log(result))`
Heads up: Make sure to handle errors properly when using the `betterAuth.authenticate()` and `betterAuth.authorize()` methods, as they can throw exceptions if the authentication or authorization process fails, for example: `betterAuth.authenticate('google').catch((error) => console.error(error))`
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup✓ Install verified 9/21/2026

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/better-auth && curl -fsSL https://workflowstacks.com/api/skills/better-auth/claude-skill -o ~/.claude/skills/better-auth/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How better-auth: Seamless, Scalable Auth for SaaS Founders works
Codeflow
Free to inspect

Better-auth: Seamless, Scalable Auth for SaaS Founders is a very large TypeScript project (~301k lines across 1397 code files, plus 168 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, MIT license, has a test suite.

Size
Very large codebase
~301k lines · 1397 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js · Docker
No API keys detected
TypeScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    demo/electron/.gitignore
    A worked example — copy this to get going
What's in each folder
packages/Sub-packages / plugins1160 files
docs/Documentation435 files
demo/Examples you can copy320 files
patches/Patches1 files
e2e/Tests — proof it works177 files
.github/CI / automation (GitHub Actions)30 files
.changeset/Tool / agent settings17 files
test/Tests — proof it works12 files
READMEHas testsDocumentedCI checksDocker readyExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
better-auth
Language
TypeScript
Category
saas-starter
Published
5/19/2024

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/better-auth.svg)](https://workflowstacks.com/skills/better-auth?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.