Better AuthComposable TypeScript authentication and authorization framework
HankoPasskey-ready authentication and user management platform
Better Auth vs Hanko
How Better Auth and Hanko compare on popularity, activity, license and platforms: two open-source Identity & Access Management (IAM) projects, both alternatives to Stytch.
At a glance
- Better Auth has more GitHub stars (30.9k vs 9.1k, about 3× as many).
- Both are actively maintained (last commits today and yesterday).
- Better Auth uses MIT (permissive); Hanko uses AGPL-3.0 (copyleft).
- Hanko can be self-hosted; Better Auth is not listed as self-hostable.
- Hanko is the older project (repository started 2022; Better Auth in 2024).
Side by side
| Better Auth | Hanko | |
|---|---|---|
| GitHub stars | ★ 30,910 | ★ 9,078 |
| Forks | 3,119 | 1,059 |
| Last commit | today | yesterday |
| Latest version | v1.7.28 | backend/v3.2.0 |
| Repository started | May 2024 | March 2022 |
| License | MIT · permissive | AGPL-3.0 · copyleft |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | Web, CLI | Docker |
| Main language | TypeScript | Go |
| Alternative to | Stytch | Amazon Cognito, Auth0, Clerk, Firebase Authentication, Stytch, WorkOS |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
Better Auth
Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.
Key features
- TypeScript auth configuration in code
- Email and password sessions
- Social OAuth providers
- Plugin-based feature extensions
- Organizations, roles, invitations
- Enterprise SSO and SCIM plugins
Hanko
Hanko provides authentication and user management with passkeys, MFA, OAuth, and SAML SSO. It integrates via web components, a frontend SDK, or a custom UI against its API.
Key features
- Passkeys and WebAuthn
- Email passcodes and passwords
- OAuth and social sign-in
- SAML enterprise SSO
- TOTP and security-key MFA
- Hanko Elements web components