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

github.com/TheOrcDev/better-auth-starter @main

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

Better Auth Starter

ChatGPT Image Jun 9, 2025, 07_09_10 PM

Overview

The Better Auth Starter is simple starter pack using Next.js, Better Auth, Shadcn, Drizzle, and Neon

Getting Started

Installation

To begin, install the required dependencies using the following command:

pnpm i

Configuration

Create a copy of the provided env.example file and name it .env. Fill in the required OpenAI API Key in the newly created .env file, and Better Auth variables if you're going to use authentication:

cp env.example .env

BETTER_AUTH_SECRET="your-better-auth-secret"
BETTER_AUTH_URL="http://localhost:3000"

DATABASE_URL="your-database-url"

GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"

Make sure to replace placeholder values with your actual API keys, and keep them safe!

Development Server

After installing the dependencies, and adding configuration variables run the development server:

pnpm dev

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

Extension points exported contracts — how you extend this code

AllUsersProps (Interface)
(no doc)
components/all-users.tsx
MembersTableProps (Interface)
(no doc)
components/members-table.tsx
OrganizationSwitcherProps (Interface)
(no doc)
components/organization-switcher.tsx
OrganizationInvitationEmailProps (Interface)
(no doc)
components/emails/organization-invitation.tsx
ForgotPasswordEmailProps (Interface)
(no doc)
components/emails/reset-password.tsx
VerifyEmailProps (Interface)
(no doc)
components/emails/verify-email.tsx

Core symbols most depended-on inside this repo

cn
called by 41
lib/utils.ts
useFormField
called by 4
components/ui/form.tsx
getOrganizations
called by 2
server/organizations.ts
handleInviteMember
called by 1
components/all-users.tsx
OrganizationInvitationEmail
called by 1
components/emails/organization-invitation.tsx
ForgotPasswordEmail
called by 1
components/emails/reset-password.tsx
VerifyEmail
called by 1
components/emails/verify-email.tsx
getCurrentUser
called by 1
server/users.ts

Shape

Function 96
Interface 6

Languages

TypeScript100%

Modules by API surface

components/ui/select.tsx10 symbols
components/ui/dialog.tsx10 symbols
components/ui/table.tsx8 symbols
components/ui/form.tsx7 symbols
components/ui/card.tsx7 symbols
server/users.ts4 symbols
server/organizations.ts3 symbols
components/organization-switcher.tsx3 symbols
components/forms/signup-form.tsx3 symbols
components/forms/login-form.tsx3 symbols
components/all-users.tsx3 symbols
server/members.ts2 symbols

For agents

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

⬇ download graph artifact