Back to services

Stack Auth

The user infrastructure platform. You choose the frontend, backend, and database. Hexclave handles everything else.

View alternatives to Stack Auth
Suggest edit
Open source
Self-hostable
MIT, AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: The official website for this entry, https://hexclave.com, could not be fetched. The content below is based on what is known about the Stack Auth project, so please refer to the official website for specific details.

Introduction

Stack Auth is an open-source authentication (Auth) and user management platform, positioned as an open-source alternative to commercial authentication services such as Auth0 and Clerk. It offers a managed cloud service and can also be self-hosted, so developers don't have to build login, sign-up, session management and permission systems from scratch.

Key Features

  • Multiple sign-in methods: Supports email and password, magic links (Magic Link), OAuth social login (such as Google and GitHub) and Passkey.
  • Ready-made UI components: Provides components such as sign-in, sign-up and account settings pages, which you can use as they are or restyle.
  • User management dashboard: View and manage users, configure sign-in methods and set project parameters in the web console.
  • Teams and organizations: Built-in multi-tenancy and team features, well suited to B2B SaaS scenarios.
  • Access control: Supports role- and permission-based access control (RBAC).
  • Developer SDKs: Focuses on Next.js and React, and also provides a REST API so other tech stacks can integrate easily.
  • Webhooks: User-related events can be synced to your own backend systems.
  • User impersonation (Impersonation): Admins can sign in as a specific user, which makes troubleshooting easier.

Target Users and Use Cases

  • Indie developers and startup teams who need to add authentication to a web app quickly
  • Teams that want to get away from per-user pricing in commercial authentication services, or avoid vendor lock-in
  • Companies with data sovereignty requirements that want to self-host their authentication system
  • B2B SaaS products that need team/organization features

Core Strengths

  • Open source: The code is hosted on GitHub, so it can be audited, modified and self-hosted.
  • Good developer experience: In a Next.js project, running an initialization command (such as npx @stackframe/init-stack) is usually enough to complete the basic integration.
  • Works out of the box: Authentication flows, UI components and the admin dashboard are all built in.
  • Flexible deployment: You can use the official managed cloud service or deploy on your own servers.

Installation and Deployment

  1. Managed service: Sign up for an account on the official website, create a project and get your API keys, then install the SDK in your project to integrate.
  2. Self-hosting: The server depends on a PostgreSQL database and can be deployed with Docker. Please refer to the official documentation for the specific steps.

Technical Requirements

  • Front-end integration is mainly aimed at Next.js / React projects; other tech stacks can integrate through the REST API
  • Self-hosting requires a Node.js runtime (or Docker) and a PostgreSQL database

Things to Note

  • The project is open source, but the client SDKs and server components may use different open-source licenses, so it's advisable to check the license terms before commercial use.
  • The official website domain given in this entry differs from the commonly seen stack-auth.com for Stack Auth, so please verify the source before use.