next-auth-starter
FeaturesStackThemes
Production-ready · Open source · v0.1.0

Skip the boring setup.
Start building.

A Next.js 15 App Router starter with full auth flow, RBAC, token refresh queueing, TanStack Query, Shadcn UI, and everything else you'd spend days configuring — already done.

Clone on GitHubBrowse themes

16+

Libraries

12

Themes

∞

Pages ready to fill

~/next-auth-starter
❯ tree src/
src/
├─ app/
│ ├─ (auth)/# login · forgot-password
│ └─ (protected)/# dashboard · settings
├─ features/
│ ├─ auth/# components · hooks
│ └─ dashboards/
├─ components/
│ ├─ layout/# sidebar · header
│ ├─ providers/# query · theme
│ └─ ui/# shadcn primitives
├─ lib/
│ └─ api/# axios · interceptors
└─ stores/
❯ _

What's included

Everything except
your features.

Full Auth Flow

Login, logout, and token refresh with Axios interceptors and retry queuing.

Route Protection

AuthGuard, role-based access control, and access-denied page handling.

Token Refresh

Seamless refresh with request queueing — no dropped API calls mid-flight.

TanStack Query

Server state, caching, and async data fetching built into the foundation.

Feature Architecture

Scalable feature-based folder structure that grows gracefully with your app.

12 Themes

6 colour families × light/dark each. Beautiful UI system powered by Shadcn.

Data Table

TanStack Table with sorting, pagination, and column filtering — ready to plug in.

DX Optimised

Husky, lint-staged, Prettier, Zod, and TypeScript fully configured out of the box.

RBAC Sidebar

Role-based sidebar nav that conditionally renders items based on user roles.

Built with

Next.js 15React 19TypeScriptApp RouterZustandTanStack QueryTanStack TableAxiosTailwindCSS v4Shadcn UIFramer Motionnext-themesnuqsZodRechartsSonner
Free & open source · MIT license

Clone it.
Make it yours.

No licensing hassle. No setup maze. Fork it, rename it, and start shipping the product you actually care about.

Clone on GitHub
next-auth-starter

Built by Akinur Rahman · MIT License

ThemesGitHub