first-commit
KitsStacksBrandsDocsChangelog
GitHub1
first-commit

Projects ready for your agent from the first commit.

Skills come from skills.sh

Made with by Marlon Chaviano

Explore

  • Kits
  • Stacks
  • Brands
  • Changelog

Docs

  • Introduction
  • CLI
  • Create a kit
  • API
  • FAQ

Project

  • About
  • Contact
  • Privacy
  • Terms
  • Content policy
  • GitHub

comparar · Authentication

Better Auth vs Clerk

Both work with Next.js. In a kit you pick one, and your agent gets the rule to use only that one.

Better AuthClerk
What it isAuth in your own database: email, OAuth, 2FA, organizations.Managed auth with ready-made login components.
FrameworksNext.jsNext.js
Paquetesbetter-auth @better-auth/drizzle-adapter@clerk/nextjs
Skill oficialbetter-auth/skills@better-auth-best-practices, better-auth/skills@better-auth-security-best-practicesclerk/skills@clerk-nextjs-patterns
How your agent uses itRead the session on the server with `auth.api.getSession({ headers: await headers() })` (from `@/lib/auth`) and on the client with `authClient.useSession()` (from `@/lib/auth-client`). Add providers and plugins in `src/lib/auth.ts`.Protect routes in `src/proxy.ts` with `clerkMiddleware` and read the user with `auth()` / `currentUser()` from `@clerk/nextjs/server`. Use its components (`<SignInButton>`, `<UserButton>`) instead of building login forms.
Kits that offer itsaas-ai-next, saas-next-better-auth, saas-next-supabasesaas-ai-next, saas-next-better-auth, saas-next-supabase
Chosen in0 installs0 installs