better-auth

Provides a self-hosted authentication framework for TypeScript applications on Cloudflare Workers and D1.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill better-auth-brendadeeznuts1111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/brendadeeznuts1111/tier-1380-omega/tree/main/skills/better-auth
Command: npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill better-auth-brendadeeznuts1111

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a robust, self-hosted authentication solution for TypeScript applications, specifically targeting Cloudflare Workers and D1 databases, offering a powerful alternative to managed services like Clerk or Auth.js.

Core Features & Use Cases

  • Cloudflare D1 Integration: Seamlessly integrates with D1 databases using Drizzle ORM or Kysely, addressing common adapter misconfigurations.
  • Advanced Auth Features: Supports social logins (Google, GitHub, etc.), two-factor authentication (2FA), passkeys, organizations, role-based access control (RBAC), and more via an extensive plugin system.
  • Use Case: You're building a SaaS application on Cloudflare Workers and need a secure, scalable, and cost-effective authentication system. This Skill allows you to implement features like team management, user roles, and secure social logins without vendor lock-in.

Quick Start

Use the better-auth skill to set up authentication for your Cloudflare Worker with D1 using Drizzle ORM.

Frequently Asked Questions about better-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up self-hosted authentication for Cloudflare Workers using D1?

To set up self-hosted authentication for Cloudflare Workers, this framework integrates directly with D1 databases using Drizzle ORM or Kysely, providing a secure alternative to managed services without vendor lock-in.

Can I use Drizzle ORM for auth in a TypeScript SaaS application on Cloudflare?

Yes, you can use Drizzle ORM for TypeScript SaaS authentication on Cloudflare. This framework specifically supports D1 database integration via Drizzle ORM or Kysely to resolve common adapter misconfigurations.

What is the best way to implement two-factor authentication and passkeys in a TypeScript app?

The best way to implement two-factor authentication and passkeys in a TypeScript app is using a self-hosted framework with an extensive plugin system, which also supports social logins, organizations, and role-based access control.

Does this self-hosted TypeScript auth framework support team management and RBAC?

Yes, this self-hosted TypeScript auth framework supports team management and RBAC. It includes built-in organizations features and role-based access control via its extensive plugin system for SaaS applications.

Why choose self-hosted authentication over managed services like Clerk or Auth.js for Cloudflare Workers?

You should choose self-hosted authentication over managed services to avoid vendor lock-in and achieve a cost-effective, scalable solution tailored for Cloudflare Workers and D1 databases in your TypeScript SaaS application.