This is a fork of Better Auth that includes the @btst packages—a focused extraction of Better Auth's database layer.
This fork enables Better Stack, a composable full-stack plugin system for modern React frameworks. Better Stack uses the @btst packages for database schema definition, multi-ORM support, and CLI-driven migrations.
The @btst packages provide Better Auth's proven adapter pattern and CLI tools, focused purely on database management without the auth domain:
@btst/db— Schema definition withdefineDb()@btst/cli— Generate Prisma, Drizzle, and Kysely schemas@btst/adapter-prisma— Prisma adapter@btst/adapter-drizzle— Drizzle adapter@btst/adapter-kysely— Kysely adapter@btst/adapter-mongodb— MongoDB adapter@btst/adapter-memory— In-memory adapter (testing)
This fork stays aligned with Better Auth updates. The core better-auth package remains unchanged.
MIT © Better Auth