Skip to content

AuthHeroOpen Source User Management

Multi-tenant, scalable, built on modern standards. Support for any JavaScript runtime.

AuthHero

Quick Start

Get up and running with AuthHero in minutes:

bash
npm create authhero@latest my-auth-app
cd my-auth-app
npm run dev
bash
yarn create authhero my-auth-app
cd my-auth-app
yarn dev
bash
pnpm create authhero my-auth-app
cd my-auth-app
pnpm dev

Simple Example

typescript
import { Hono } from "hono";
import { createAuthHero } from "authhero";

const app = new Hono();

// Initialize AuthHero
const auth = createAuthHero({
  database: adapter,
  tenant: "your-tenant",
});

// Add authentication middleware
app.use("*", auth.middleware);

// Protect routes
app.get("/dashboard", auth.requireAuth(), (c) => {
  const user = c.get("user");
  return c.json({ message: `Hello ${user.email}!` });
});

export default app;

Why AuthHero?

AuthHero combines the best of modern authentication with enterprise-grade features:

  • Multi-tenant by Design - Perfect for SaaS applications
  • Edge-First Architecture - Optimized for global deployment
  • Developer Experience - Simple APIs with powerful features
  • Migration Ready - Auth0 compatibility for easy transitions
  • Open Source - Full control over your authentication system

Architecture

AuthHero is built as a modular system:

  • Core Library - Authentication logic and middleware
  • Database Adapters - Support for multiple databases
  • Admin Dashboard - Management interface
  • Auth0 Proxy - Compatibility layer for migration

Learn more about the architecture →

Released under the ISC License.