MCPcopy Index your code
hub / github.com/daveyplate/better-auth-nextjs-starter

github.com/daveyplate/better-auth-nextjs-starter @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
31 symbols 82 edges 24 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Better Auth Next.js Starter (App Router)

Demo

Installation

First, create a PostgreSQL Database then configure your environment variables.

You can generate a BETTER_AUTH_SECRET here.

BETTER_AUTH_SECRET=""
DATABASE_URL=""

Then generate your schema and perform migrations with drizzle-kit.

npx @better-auth/cli generate
npx drizzle-kit generate
npx drizzle-kit migrate

☕️ Buy me a coffee

Features:

Better Auth

Better Auth UI

shadcn/ui

TailwindCSS

Drizzle ORM

PostgreSQL

Biome

Next.js

Turborepo

Next.js

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Core symbols most depended-on inside this repo

cn
called by 10
src/lib/utils.ts
middleware
called by 0
src/middleware.ts
Header
called by 0
src/components/header.tsx
ModeToggle
called by 0
src/components/mode-toggle.tsx
DropdownMenu
called by 0
src/components/ui/dropdown-menu.tsx
DropdownMenuPortal
called by 0
src/components/ui/dropdown-menu.tsx
DropdownMenuTrigger
called by 0
src/components/ui/dropdown-menu.tsx
DropdownMenuContent
called by 0
src/components/ui/dropdown-menu.tsx

Shape

Function 31

Languages

TypeScript100%

Modules by API surface

src/components/ui/dropdown-menu.tsx15 symbols
src/app/auth/[path]/page.tsx2 symbols
src/app/account/[path]/page.tsx2 symbols
src/middleware.ts1 symbols
src/lib/utils.ts1 symbols
src/components/ui/sonner.tsx1 symbols
src/components/ui/button.tsx1 symbols
src/components/mode-toggle.tsx1 symbols
src/components/header.tsx1 symbols
src/app/terms/page.tsx1 symbols
src/app/providers.tsx1 symbols
src/app/privacy/page.tsx1 symbols

For agents

$ claude mcp add better-auth-nextjs-starter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact