~
Free & Open Source

Production-Ready Next.js SaaS Boilerplate

Skip weeks of setup. Authentication, admin dashboard, user management, and 50+ UI components ready to go. Built with Next.js 16, Better Auth, Drizzle, and Shadcn UI.

Next.js 16React 19Better AuthDrizzle ORMoRPCShadcn UI

Everything You Need to Ship Fast

Production-ready features that would take weeks to build from scratch. All integrated and working out of the box.

Complete Authentication

Email/password, OAuth (GitHub, Google), email verification, password reset, and session management.

Two-Factor Authentication

TOTP-based 2FA with QR code setup, backup codes, and secure verification flow.

Role-Based Access Control

Granular permissions system with admin and user roles. Control access at page and action level.

User Management

Admin dashboard for users with filtering, sorting, ban management, and impersonation.

Admin Dashboard

Pre-built admin panel with user listing, session tracking, role assignment, and bulk actions.

Advanced Data Tables

Sortable, filterable tables with faceted filters, date ranges, pagination, and row selection.

Database Ready

Drizzle ORM with PostgreSQL, type-safe queries, migrations, and pre-built schemas included.

Type-Safe APIs

End-to-end typesafe RPC with oRPC. Auto-generated types from Zod schemas.

What's Included

A complete list of features ready to use. No additional setup required.

Authentication

  • Email/password sign up & sign in
  • OAuth providers (GitHub, Google)
  • Email verification flow
  • Password reset with email
  • Two-factor authentication (TOTP)
  • Session management
  • Multi-device support

Admin Panel

  • User listing with filters
  • User creation & editing
  • Role assignment
  • Ban/unban users
  • Session tracking
  • User impersonation
  • Bulk actions

User Dashboard

  • Profile management
  • Email change with verification
  • Password update
  • Profile image upload
  • Active sessions view
  • 2FA enable/disable
  • Account deletion

UI Components

  • 50+ Shadcn components
  • Advanced data tables
  • Form components with validation
  • Modal & drawer dialogs
  • Command palette
  • Toast notifications
  • Dark mode support

Modern Tech Stack

Built with the latest stable technologies. No experimental features, no breaking changes.

Next.js 16

Latest React framework with Turbopack, Server Components, and Server Actions.

React 19

Latest React with concurrent features, transitions, and improved performance.

Better Auth

Modern auth library with sessions, OAuth, 2FA, and admin plugins built-in.

Drizzle ORM

Type-safe ORM with automatic migrations, schema generation, and PostgreSQL support.

oRPC

End-to-end typesafe RPC with TanStack Query integration and OpenAPI generation.

Shadcn UI

50+ accessible components built with Radix UI primitives and Tailwind CSS.

TanStack Query

Powerful data synchronization with caching, background updates, and optimistic UI.

Tailwind CSS

Utility-first CSS framework with dark mode support and custom design system.

TypeScript

Full type safety from database to UI with strict mode and Zod validation.

Get Started in Minutes

Clone, configure, and deploy. Three steps to your next project.

1

Clone the repository

git clone https://github.com/htmujahid/next-bard.git
2

Install dependencies & configure

npm installcp example.env .env

Update .env with your database URL and OAuth credentials.

3

Run migrations & start

npm run db:pushnpm run dev

Open http://localhost:3000 and start building.

Ready to Start Building?

Clone the repository and have your project running in minutes. Free forever, no strings attached.